in reply to Executing CGI script via Javascript
Using this interface makes it a lot easier to collect parameters and hit a cgi script. It also makes it easy to send data from one webpage to the next (so forms can be spread over two pages, for example).var query = new Query(document.location.search); var names = query.getNames(); var pName = document.forms[0].pName.value; var pValue = document.forms[0].pValue.value; query.addParameter(pName, pValue); alert(query.toQueryString());
|
|---|