Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Just plain JavaScript:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script&gt; function getUrlVars() { var map = {}; var parts = window.location.href.replace(/[?&amp;]+([^=&amp;]+)=([^&amp;]*)/gi, function(m,key,value) { map[key] = value; }); return map; } function createRequestObject() { var ro; // Mozilla, Safari,... if (window.XMLHttpRequest) { ro = new XMLHttpRequest(); if (ro.overrideMimeType) { ro.overrideMimeType('text/xml'); // See note below about this line } // IE } else if (window.ActiveXObject) { try { ro = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { ro = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!ro) { alert('Giving up :( Cannot create an XMLHTTP instance'); return false; } return ro; } function sndReq(param,server,handler) { //location.href = server+"?"+action; //uncomment if you need for debugging http = createRequestObject(); http.open('GET', server, true); http.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); http.onreadystatechange = handler; http.send(param); } handler_function = function() { if(http.readyState == 4) { if (http.status == 200) { document.getElementById("your_div_element").innerHTML = http.responseText; } else { alert('There was a problem with the request.'); } } } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="your_div_element"&gt;&lt;/div&gt; &lt;script&gt; var getvars= getUrlVars(); sndReq(null, getvars['action'], handler_function);&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload