Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry How to capture the output after making a request to the server

    Thank you in advance for your help.

    Here is my problem.

    I am sending a form to the server using Post and submit. That form is posted to the server which in return displays to the browser a xml document.

    What I would like instead is to send the form to the server and capture the output so that I can format it.

    <html>
    <head>
    <title> coding</title>

    </head>
    <body>
    <form name="login" method="Post" action="https://my domain name/something.nsf?Login">
    username:<input type="text" value="" size="26" name="username"/><BR>
    password:<input type="password" value="" size="26" name="password"/><BR><BR>
    <input type="submit" value="Submit" size="26" name="login"/>
    <input type="hidden" value="https://my domain name/something.nsf/something?OpenAgent" name="redirectto"/>
    </form>
    </body>

    </html>

    the challenge that I have is to capture the page returned from the server into let say something...

    Please help

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Try Ajax (XMLHttpRequest Object).

    Rather easy to do.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Why not format the output in the server-side?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •