SiteKiosk Documentation
One Step Back

OnPostComplete Event




Fires when a request has been completed.


Syntax

    HTTPPost.OnPostComplete = handler
    
Parameters
    successHRESULT value that indicates if the request was successfull.
    responseString that contains the response.
Remarks
    A negativ HRESULT value means failure, all other values mean success.

    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example sends a HTTP request to Altavista and displays the response.

    <div id="id_plugin">Add a plugin</div>
    <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("q", "sitekiosk");
    mypost.Submit("http://us.altavista.com/web/results");
    </SCRIPT>
    

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

Back to topBack to top

© 1997-2008 PROVISIO - Chicago, USA & Muenster, Germany - SiteKiosk DevTeam