13 Mar 2007 12:33 PM #1
How to load JSON content from URL?
I need to load some JSON content from a URL every n seconds. Everytime the JSON content is received I want a function to be called with the JSON content to process it and update the HTML on the page to display the results.
How do I do that? I tried using UpdateManager but so far it's dumping the JSON content into the <div> that has the ID that I used to create the UpdateManager. The JSON data is to be displayed inside that <div> but I don't want a straight dump of the JSON data.
13 Mar 2007 12:36 PM #2
- Join Date
- Mar 2007
- Forest Grove, OR
- Vote Rating
It's doing that because it's using the default renderer. Specify a custom renderer and use that to parse the JSON response and update the div accordingly.
By thejoker101 in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 8 Feb 2007, 12:17 PM
By Micha in forum Ext 1.x: Help & DiscussionReplies: 17Last Post: 29 Dec 2006, 9:27 AM
By Slapyo in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 18 Dec 2006, 8:11 AM
By young_matthewd in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 6 Dec 2006, 7:15 AM
By jarrod in forum Ext 1.x: BugsReplies: 1Last Post: 23 Nov 2006, 9:08 PM