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
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.