SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    146
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    HTTP POST of a json object using jscript


    I'm not sure how to pass the Arguements through the URL.

    I think these complex parameters cannot be sent on the URL line (they need a POST, not a GET).How do I write a POST in jscript.

    I Use the following API to render a report
    https://gvfr.gv.com/isisclient/Gv-IS...JSON/GetReport
    Arguments: sessionToken, userID, siteID, ReportPath, format, deviceInfo, reportParameters

    Example:
    https://gvfre.greenvolts.com/isiscli...JSON/GetReport

    {"sessionToken:" RJ6nd5Ky", "userID":60, "siteID":1007, "ReportPath":"/ISIS_Reports/Alert", “format”: “Image”, “deviceInfo”: “”,
    { “ReportParameters[0]”: { “Value” : “Param1Value”, “Label”: “Param1Label”, “Name”: “Param1Name”}
    “ReportParameters[1]”: { “Value” : “Param2Value”, “Label”: “Param2Label”, “Name”: “Param1Name”}
    “ReportParameters[2]”: { “Value” : “Param3Value”, “Label”: “Param3Label”, “Name”: “Param3Name”}
    }
    }

    Any help would be appreciated.

    Thanks
    Riya

  2. #2
    Senior Member
    Join Date
    Aug 2006
    Posts
    1,920
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTTP POST of a json object using jscript

    Hi,

    You can send requests from scripts using the XMLHTTP object.
    There's an example which uses this object to check whether a link is valid here.
    Jared - AQA Support

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:40 PM.

Copyright BetaSoft Inc.