Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is jQuery.ajax() the right tool?
Message
De
11/06/2014 13:20:37
 
 
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:
01601693
Vues:
32
change says, "When the value of the specified object changes, run the following javascript code
get is calling a URL that does all the data access and SQL query, then returns some data

>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);
>>    }
>>  })
>>});
>>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform