I am at a complete loss here and I need a solution asap! Any help is
GREATLY appreciated!!! I have my request going out to a php script
that sends a query to my db and then echos the return data into html
format. this script works fine when I go to the url in a browser and
send the correct params.
However, in my ajax request, nothing gets returned?! Here is my
code...
------------------------------------------------
function updateData()
{
url = "http://www.myURL.com/updateData.php?myparams";
new Ajax.Request(url, {
method: 'POST',
asynchronus: 'true',
contentType: 'text/html',
onComplete: parseData});
}
function parseData(originalRequest)
{
myResponse = originalRequest.responseText;
myDivID.innerHTML += myResponse;
}
-------------------------------------------------
when I include alerts in parseData to see if there is any content to
responseText, it always comes back empty.
What am I doing wrong here? Like I said, the php script is working
fine, but there seems to be some disconnect happening with the ajax
request.
BTW, in my php script the headers are set to prevent caching...
Please Help!! THANKS!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---