I don't use xmlhttprequests very often, I use a java backend. but this
should work.
// set handler for the loading data
var onloadHandler = function() { xmlLoaded(xmlRequest); };
// start the progress bar
pi.style.visibility = 'visible';
var xmlRequest = new XMLHttpRequest();
xmlRequest.onload = onloadHandler;
xmlRequest.open("GET", url);
xmlRequest.setRequestHeader("Cache-Control", "no-cache");
xmlRequest.send(null);
function xmlLoaded(xmlRequest) {
if (xmlRequest.readyState == 4 && xmlRequest.status ==
200) {
// call the function to handle the response data
var parkobj1 = eval(xmlRequest.responseText);
cds=parkobj1;
On Apr 8, 8:41 am, Felix Jie Rong <[email protected]> wrote:
> Hi all,
>
> I am new to iphone web app development.
>
> Does anyone know how to set set dynamic data for drilldown list's
> _rowData?
>
> I mean use ajax to set a list' _rowData. As it''s hard to set a return
> from "onreadystatechange" and it's not very clear to Dashcode's load
> function, I really need help on this issue.
>
> Thanks in advance.
>
> Felix
> 8 April 2009
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---