CreateHTTPPost Method



 
The CreateHTTPPost method creates an object that contains a HTTP request.


Syntax

    [obj=] SiteKiosk.Network.CreateHTTPPost()
    
Return Value
    Returns a HTTPPost object that represents a HTTP request.
Remarks
    None.
Examples
    The following example sends a HTTP request to Yahoo and displays the response.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mypost = SiteKiosk.Network.CreateHTTPPost();
    mypost.OnPostComplete = OnPostComplete;
    function OnPostComplete(success, response)
    {
       if (success<0) {alert("Error");} else document.write(response);
    }
    mypost.AddParameter("p", "sitekiosk");
    mypost.Submit("http://us.yhs4.search.yahoo.com/");
    </SCRIPT>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top