Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is jQuery.ajax() the right tool?
Message
De
10/06/2014 15:57:05
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01601494
Message ID:
01601605
Vues:
36
>>>Hi,
>>>
>>>I am thinking of adding the following simple feature to one of the pages of ASP.NET application.
>>>
>>>User enters Part No. And the page should populate the textbox of unit price for this part (and maybe some other information, such as quantity, location). I know I can do it by reposting the page on user entering the Part No. and sending back the page with the values.
>>>
>>>But if I want to do it without reposting the page (as often you see today in the internet pages) should I use jQuery.ajax? I am just about to start viewing some courses on this topic on Pluralsight but would like to know that I am on the correct path.
>>>
>>>TIA for any suggestions.
>>
>>If you're working client-side with any sort of data structure that isn't trivial, I would recommend looking at Knockout. It does a lot of the hard work for you and there ton's of good resources on the web.
>
>Mike, everything I do (for me <g>) is not trivial. But I think it would take me quite a lot more time to learn Knockout than I can afford to spend now. So I will try first jQuery.ajax(). All I need is "seek a record in the table, find record, and populate a couple of fields on the page" without reposting the page.
>Thank you for your suggestion.

Quite honestly, I think you'd spend as much time hacking it out with jquery.ajax and appending the results to a div than you would with knockout. The documentation on their site is excellent: http://knockoutjs.com/.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform