Hello All,

I'm having some trouble getting this to work as I'd expected.

Given a server response that sets the content-type to "text/javascript" 
and contains:
var startLeft = -180;


The following client-side code fails (variable "startLeft" not found):
 
var xmlHttp = new Ajax.Request(url, { method: "get",
                                        parameters: params,
                                        asynchronous: false});
alert(startLeft);


Can someone help me out here?

Thanks!

-- john

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

Reply via email to