Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is jQuery.ajax() the right tool?
Message
From
23/06/2014 04:06:03
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01601494
Message ID:
01602209
Views:
42
yes, and even more with the commented code down this thread
;-)

Some basics:
- function() is an object that can be passed as parameter to another function (call back concept), and can be anonymous (without a name)
- $() is a shortcut to jQuery()
- jQuery() does everything in jQuery
- everything should be read left to right:

e.g.
$(document).ready( // when document is ready
$(document).ready(function(){ // when document is ready execute this function
$.get() // perform an HTTP GET
etc.
eventually not easy, surely much fun

>That's simple ? :-}
>
>>could be as simple as that ...
>>
>>$(document).ready(function(){
>>  $('#yourInput').change(function(){
>>    $.get(yourURL + '?' + $(this).val(), function(html){
>>      $('#divID').html(html);
>>    }
>>  })
>>});
>>
>>
>>>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.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Reply
Map
View

Click here to load this message in the networking platform