The moose likes HTML, CSS and JavaScript and the fly likes Incomplete Example of DOJO handling response type of  JSON Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Incomplete Example of DOJO handling response type of  JSON " Watch "Incomplete Example of DOJO handling response type of  JSON " New topic
Author

Incomplete Example of DOJO handling response type of JSON

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229

Hi ,

I found an incomplete example of DOJO in web , which handles response as of JSON Format.
The site is
http://blogs.oracle.com/jamesbayer/2008/03/playing_with_workshop_and_the.html

function populate_cities()
{
var ajaxReq = {
form: dojo.byId("myForm"),
url: "getCities.do",
handleAs:"json",
load: function(response){
dijit.byId('cities').store = new dojo.data.ItemFileReadStore({data:response});
},
error: function(data){
alert("Holy Bomb Box, Batman! An error occurred: " + data);
},
timeout: 2000
};

}

I guess that he is filling data on to a DIV Tag . Can anybody please let me know whether this div Tag should be made up of any inbuilt type like dojo.type.ItemFileStore or Grid --- .

Please suggest .

Thanks in advnace .

This message was edited 1 time. Last update was at by Ravi Kiran V



Save India From Corruption - Anna Hazare.
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48842

Please take the time to choose an appropriate forum for your posts. This forum is for questions on JSP. For more information, please click this link ⇒ CarefullyChooseOneForum.

This post has been moved to a more appropriate forum.

Also, please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information.

Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229

Thanks i posted in JSP forums , as i saw Jquery related stuff is seen there .

I know my DOJO questions will be never answered here .
 
 
subject: Incomplete Example of DOJO handling response type of JSON
 
MyEclipse, The Clear Choice