JavaScript is required to use Bungie.net

OffTopic

Surf a Flood of random discussion.
Edited by The Ham: 3/3/2016 2:42:42 AM
344

Say "I live on planet Earth" in your native language

J'habite sur la planète terre. The Ham's native language isn't French, but that's just an example. Time to see how diverse bungie.net is!

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
  • <script type="javascript/text"> /* * creates a new XMLHttpRequest object which is the backbone of AJAX * or returns false if the browser doesn't support it */ function getXMLHttpRequest() { var xmlHttpReq; // to create XMLHttpRequest object in non-Microsoft browsers if (window.XMLHttpRequest) { xmlHttpReq = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { //to create XMLHttpRequest object in later versions of Internet Explorer xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP"); } catch (exp1) { try { //to create XMLHttpRequest object in later versions of Internet Explorer xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); } catch (exp2) { //xmlHttpReq = false; alert("Exception in getXMLHttpRequest()!"); } } } return xmlHttpReq; } /* * AJAX call starts with this function */ function makeRequest() { var xmlHttpRequest = getXMLHttpRequest(); alert ("xmlHttpRequest=" + xmlHttpRequest); xmlHttpRequest.onreadystatechange = getReadyStateHandler(xmlHttpRequest); xmlHttpRequest.open("POST", "ILiveOnPlanetEarth.do", true); xmlHttpRequest.setRequestHandler("Content-Type", "application/x-www-form-urlencoded"); alert("inside makeRequest()!"); xmlHttpRequest.send(null); alert("sent!"); } /* * Returns a function that waits for the state change in XMLHttpRequest */ function getReadyStateHandler(xmlHttpRequest) { // an anonynous function returned // it listens to the XMLHttpRequest instance return function() { if (xmlHttpRequest.readyState == 4) { if (xmlHttpRequest.status == 200) { document.getElementById("ILiveOnPlanetEarth").innerHTML = xmlHttpRequest.responseText; } else { alert("Http error " + xmlHttpRequest.status + ":" + xmlHttpRequest.statusText); } } }; } </script>

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    3 Replies
    1 2
    You are not allowed to view this content.
    ;
    preload icon
    preload icon
    preload icon