I use the following function in a cross-site application :
                                function Req_file(url) {
                                        var req;
                                        if (window.XMLHttpRequest) {
                                                req = new XMLHttpRequest();
                                        } else if (window.ActiveXObject) {
                                                req = new 
ActiveXObject("Microsoft.XMLHTTP");
                                        } else return(false);
                                  req.open("GET", url, false);
                                  req.send(null);
                                  if (req.readyState == 4) 
return(req.responseText);
                                  return(false);
                                }
It works with IE7 with the cross domain option activated.
I would like translate it with prototype.js, to be able to use
crossSite: true in Ajax.request with the transport.js plugin.
Could you help me to make this translation ?

Thanks for your help.

Pierre
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs@googlegroups.com
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