Hey Folks,
The JSON data that arrives at my client to load a form is: Dojo - Using dojo.io.bind:: A dojo response has a type that is typically set to load or error, though sometimes it may be neither. With dojo, type=="load" means Dojo can also submit an entire form automatically. myItem) alert('Response JSON Item: ' +data. http://www.dev411.com/blog/2006/06/03/dojo-using-dojo-io-bindHOME |
{"success":"true","data":{"target":"test","did":"61SDSF20","provider_id":"4","secret":"word","username" :"XXX040"}}
This isn't working. Does anyone spot a syntax problem or is the problem elsewhere? jQuery-1-Ajax:: load(url) â “ Makes Ajax request and loads result into HTML element k j dl .. Content Type application/ pp x-www-form- urlencoded data Data to send to server .. JSON evaluation handled automatically by jQuery eval . http://www.slideshare.net/guestcf600a/jquery1ajax-2594489HOME | load() Function for PHP - Fetch URL Content:: </form> Is it posible to send data with load function (post method) so I could Saved me probably hours of programming to get some JSON stream data on my http://www.bin-co.com/php/scripts/load/HOME |
thanks!
-Joe
in your success function try
success: function(form, action) { Nabble - jQuery General Discussion - jQuery/JSON forms issue :: dataType: 'json', success: function(data) { var out = document. The Form (some values are filled in with javascript after load, or http://old.nabble.com/jQuery-JSON-forms-issue:-tries-to-download-response-td25829921s27240.htmlHOME |
form.setValues(action.result.data);
}
I'm not sure if this is what is missing but I've found that you need to call setValues in the load success call.
Looks ok to me.
Not sure if "userna me" is a valid name though that could be a copy/paste error.
Thanks, that was a copy/paste error.
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|