SiteKiosk Documentation
One Step Back

AddParameter Method




The AddParameter method adds a parameter to the request.


Syntax

    HTTPPost.AddParameter(name, value)
Parameters
    nameString that specifies the name of the parameter.
    valueString that specifies the value of the parameter.
Return Value
    None.
Remarks
    The parameter and its value will be added to the request body: 'name=value'.
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 topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -