Livro/resumo sobre notas de estudo da tecnologia jQuery e AJAXDescrição completa
Full description
jqueryDeskripsi lengkap
Full description
Entri, Edit, Delete, Tampil Dengan PHP Dan Ajax JQueryDeskripsi lengkap
¿Cómo Enviar Un Archivo Por Ajax de #Jquery
Seguridad ajax
aaaaa
Descripción completa
ajax
Descripción: Seguridad ajax
Seguridad ajaxDescripción completa
Description complète
Descrição completa
Descripción completa
Ajax with Classic ASP using jQuery http://www.mikesdotnetting.com/Article/98/Ajax-with-Classic-ASP-using-jQuery My simple article on Ajax with Classic ASP is one of the most popular on this site. So I thought it's about time I updated it to show how to use jQuery to Ajaxify a Classic ASP page.
First of all, why use jQuery when the previous article works? Well, jQuery is a library that is designed to help web developers work with Javascript in a much more streamlined way. Internally, it handles a lot of the nonsense that developers have to work with in terms of cross-browser incompatibilities and it's syntax and chaining abilities generally results in far less code being written. A lot more information about jQuery can be found here along with the downloads. The scenario I shall use will stay the same - an initial Select box containing the Company Names from the Northwind database, with the address and other details being retrieved asynchronously when a company is selected. These will be displayed in a specific area on the page. There is one difference - apart from the use of jQuery - in that the data relating to the company details will be generated as a JSON string, rather than a snippet of html. But let's start with the page that the user will see:
strConn = "Data Source=127.0.0.1;Initial Catalog=NorthWind;Integrated Security=SSPI;" Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open strConn Set rs = Conn.Execute("SELECT [CustomerID], [CompanyName] FROM [Customers]") If Not rs.EOF Then arrCustomer = rs.GetRows rs.Close : Set rs = Nothing : Conn.Close : Set Conn = Nothing %> <% Else rs.Close : Set rs = Nothing : Conn.Close : Set Conn = Nothing Response.Write "
Something bad went wrong
"
End If %>
The VBScript connects to a local SQL Server Northwind database and obtains the ID and the Company Name for all the Customers. Assuming that they were retrieved succesfully, they are placed in an array through the RecordSet.GetRows() method. The array is iterated through, and