Get Script
We include our ‘core’ library, in the header
<script src="../Include/Core.js" type="text/javascript"></script>
Get Script is similar to Post Script, but submits data using ‘get’ rather than ‘post’.
ssGetScript submits a form, but its response is returned as a piece of script which is run instantly.
The id of the form is passed in as a parameter.
ssGetScript("frmMain");
- The target page is extracted from the "action" property of the form.
- The form is submitted as a ‘get’, so the target page needs to pull in query strings, not form items.
- As with ssGrabScript(), this adds a script element to the head of the document, and debugging needs to be performed using the HTML tab of Firebug.