Post Script
We include our ‘core’ library, in the header
<script src="../Include/Core.js" type="text/javascript"></script>
Post Script is similar to Grab Script, but acts as a form submission, rather than a hyperlink.
ssPostScript 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.
ssPostScript("frmMain");
- The target page is extracted from the "action" property of the form.
- The form is submitted as a ‘post’, so the target page needs to pull in form items, not query strings.
- Unlike ssGrabScript and ssGetScript this does not add a script element to the head of the document. It runs the code using setTimeout, and its response is shown in Firebug’s Console, not its HTML tab.