Get File

We include our ‘core’ library, in the header


    <script src="../Include/Core.js" type="text/javascript"></script>
          

Get File is similar to Post File, but submits data using ‘get’ rather than ‘post’.

ssGetFile submits a form, but its response is returned in an ajax way, replacing the contents of an element.

The target element (a div or a span) and the id of the form are passed in as parameters.


    ssGetFile("detailsBox","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 ssGrabFile, the response can be debugged using Firebug’s Console.