Shoutbox

[???] Http GET request - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [???] Http GET request (/showthread.php?tid=62425)

[???] Http GET request by Intosia on 07-03-2006 at 02:25 PM

Hi,

I was wondering how to call a url to a php script and give it some GET data.

TIA!




RE: [???] Http GET request by Veggie on 07-03-2006 at 02:36 PM

quote:
Originally posted by -dt-
To use send data to websites you use XMLHttpRequest

code:
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", "http://shoutbox.menthix.net", true);

    xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
              Debug.Trace(xmlhttp.responseText);
          }
         }
xmlhttp.send('');




:P that will print msghelp.net's html to your debug console

edit:
changed the async flag to true on the xmlhttprequest object (so it doesnt freeze the chats while doing its stuff)

RE: [???] Http GET request by Intosia on 07-03-2006 at 02:39 PM

Thanks man!! Helped me out 100% _O_