Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is jQuery.ajax() the right tool?
Message
 
 
To
11/06/2014 13:18:36
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:
01601695
Views:
34
Thank you.

>you need to implement a transaction at 'yourURL' such as (VFP code)
>
>local value
>value = Request.QueryString()
>select ... from ... where someKey = value into cursor someCursor
>Response.write(someCursor.someField)
>
>
>>I will have to think and understand your approach. I know it is a simple example but I am not familiar with "change" and ".get" syntax. Usually in my ASP.NET program, to get any data, I have to call a method of a Data Access class and pass a SQL Select to it. So I will need to see how it can be applied to your suggestion.
>>Thank you very much.
>>
>>>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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform