Sending parameters to server side using javascript RRS feed

  • Question

  • function check(username,password) { username=click.textbox27744280295.text; password=click.textbox27744280297.text; var request = new kony.net.HttpRequest(); request.onReadyStateChange = function() { if(this.readyState == this.DONE) returnStatus(this.status); } request.open(constants.HTTP_METHOD_GET, ""); request.send(); }

    Using this code can able to hiting the server,I want to send some parameters from client side to server side how?

    • Edited by Boopathi123 Tuesday, March 11, 2014 7:07 AM
    Tuesday, March 11, 2014 7:06 AM


  • If you're using HTTP method GET, then you pass parameters in the URL. If you're using POST, you would pass them in the body of the request. You may want to check out HttpClient.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, March 11, 2014 12:10 PM