how to create run time element? where i am doin wrong help....help.....
Posted
by vicky
on Stack Overflow
See other posts from Stack Overflow
or by vicky
Published on 2010-03-29T09:26:18Z
Indexed on
2010/03/29
9:43 UTC
Read the original article
Hit count: 312
new Ajax.Request('Handler.ashx',
{
method: 'get',
onSuccess: function(transport)
{
var response = transport.responseText || "no response text";
//alert("Success! \n\n" + response);
var obj = response.evalJSON(true);
alert(obj[0].Nam);
alert(obj[0].IM);
for(i = 0; i < 4; i++)
{
$('MyDiv').insert( new Element('checkbox', { 'id': "Img" + obj[i].Nam, 'value': obj[i].IM }) );
return ($('MyDiv').innerHTML);
}
},
onFailure: function() { alert('Something went wrong...') }
});
© Stack Overflow or respective owner