|
INTERVIEW QUESTIONS
OPEN SOURCE APPLICATIONS
ECOMMERCE PORTAL
DETAILS
Question: what is Disadvantages, Costs of JavaScript?
Answer: JavaScript provides ecommerce sites a powerful tool to improve their shoppers’ experiences. But it’s not without a cost.
For example, seemingly simple interactions on the frontend can become complex underneath. Say you want your search form to automatically show the first five results. Simple, right? Here’s what is actually involved.
Add JavaScript to wait for a user to start typing in a field. After three characters, make an AJAX request to the server with the search term. On the server, perform your search function with that search term. Format the search results as an HTML snippet or a JSON (a method of exchanging data) structure so it can be returned back to the search form’s JavaScript. Once the search form gets the search results, display them nicely using CSS and make sure they appear on top of the page. Cancel the AJAX requests and any server processing when a user continues to type more characters — four, five, six, and so on — in the search field. Facilitate and communicate instances when there are no search results found on the server. Facilitate and communicate server errors. Add suggestions to the search, so the user can see popular searches. Correct the user’s typos and misspellings.
|
|
|
Category |
ECommerce Portal Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9444 users |
Added on |
7/18/2016 |
Views |
71444 |
Rate it! |
|
|
Question:
what is Disadvantages, Costs of JavaScript?
Answer:
JavaScript provides ecommerce sites a powerful tool to improve their shoppers’ experiences. But it’s not without a cost.
For example, seemingly simple interactions on the frontend can become complex underneath. Say you want your search form to automatically show the first five results. Simple, right? Here’s what is actually involved.
Add JavaScript to wait for a user to start typing in a field. After three characters, make an AJAX request to the server with the search term. On the server, perform your search function with that search term. Format the search results as an HTML snippet or a JSON (a method of exchanging data) structure so it can be returned back to the search form’s JavaScript. Once the search form gets the search results, display them nicely using CSS and make sure they appear on top of the page. Cancel the AJAX requests and any server processing when a user continues to type more characters — four, five, six, and so on — in the search field. Facilitate and communicate instances when there are no search results found on the server. Facilitate and communicate server errors. Add suggestions to the search, so the user can see popular searches. Correct the user’s typos and misspellings. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How Better Backend Integration Using AJAX
|
View Answer
|
|
What JavaScript Means for Ecommerce Merchants
|
View Answer
|
|
Which type of binding does PL/SQL use?
|
View Answer
|
|
What is the output of the following program ?
|
View Answer
|
|
What tests would you perform at which layer?
|
View Answer
|
|
How can you make sure the we b application is fit for release?
|
View Answer
|
|
How would you Test a Service Oriented Architecture Web Application?
|
View Answer
|
|
What are the HTTP response code blocks and what do they mean?
|
View Answer
|
|
How is Web Application Testing different to Desktop Application Testing ?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All ECommerce Portal Interview Questions & Answers - Exam Mode /
Learning Mode
|