Welcome Guest, Not a member yet? Register   Sign In
JQuery Validation
#17

[eluser]Mark van der Walle[/eluser]
First to answer your last question: JSON is alot faster for javascript so if your url is only used for javascript json is the way to go.

Then the first question. You almost got it right except that this:
Code:
success: function(responseXML) {
   // responseXML is XML document object
   var data = $('myElement', responseXML).text();
}
will take part of the XML and put it into the data variable. Where the XML is something like:
<myElement>The contents that are being put into the data variable</myElement>


Messages In This Thread
JQuery Validation - by El Forum - 11-26-2007, 05:55 AM
JQuery Validation - by El Forum - 11-26-2007, 09:18 AM
JQuery Validation - by El Forum - 11-26-2007, 09:46 AM
JQuery Validation - by El Forum - 11-26-2007, 10:05 AM
JQuery Validation - by El Forum - 11-26-2007, 10:46 AM
JQuery Validation - by El Forum - 11-26-2007, 11:07 AM
JQuery Validation - by El Forum - 11-26-2007, 01:15 PM
JQuery Validation - by El Forum - 11-27-2007, 02:23 AM
JQuery Validation - by El Forum - 11-27-2007, 02:41 AM
JQuery Validation - by El Forum - 11-27-2007, 04:14 AM
JQuery Validation - by El Forum - 11-27-2007, 04:22 AM
JQuery Validation - by El Forum - 11-27-2007, 04:36 AM
JQuery Validation - by El Forum - 11-27-2007, 04:55 AM
JQuery Validation - by El Forum - 11-27-2007, 09:32 AM
JQuery Validation - by El Forum - 11-27-2007, 09:59 AM
JQuery Validation - by El Forum - 11-28-2007, 04:33 AM
JQuery Validation - by El Forum - 11-28-2007, 04:48 AM
JQuery Validation - by El Forum - 11-28-2007, 04:49 AM
JQuery Validation - by El Forum - 11-28-2007, 04:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB