Passing data to a cgi written in javascript


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Passing data to a cgi written in javascript

  1. #1
    Jerry Guest

    Passing data to a cgi written in javascript


    How do I pass data to a remote system that has diplayed a web form on my pc.
    The form was
    written in javascript. I need to click on a check box, enter the from date,
    enter the to date, and
    sellect an item from a drop down menu, then click a button named submitt.
    I am a beginer so be gentle.

    Thanks in advance,
    Jerry
    Share on Google+

  2. #2
    Dan Appleman Guest

    Re: Passing data to a cgi written in javascript

    Jerry:

    What you describe may vary from possible to nightmarish.
    Every request to a web server follows a certain form, with a URL followed by a
    bunch of parameters.
    So you can figure out what a particular combination of check boxes, form data,
    etc. actually sends to a server, and just send it yourself from an application.
    This is the technique I used in my "stock quote" server in my book "Developing
    ActiveX Components with Visual Basic 6", where I figured out what parameters
    certain stock reporting web pages used, and faked out the server by sending the
    same parameters.
    To do this you'll need to learn a bit more HTML, especially the use of the GET
    and POST methods, and reading form code to figure out what the server needs to
    see.

    Where this can fall apart is if the server is using cookies or other tracking
    mechansims. You can mimic those as well, but it's a lot trickier.

    Now, another approach is to actually automate what the browser does. On this I
    am also a beginner - I know that IE has powerful automation capabilities from
    within the page, but am not sure how much flexibility you have at automating it
    from outside.

    You might check out Carl Franklin's book "Visual Basic 6.0 Internet Programming"
    for a good introduction to doing Internet programming directly from VB. I found
    it to be quite accessible to beginners (which is what I was when I read the
    previous edition for the first time).

    Best of luck

    Dan




    Jerry wrote:

    > How do I pass data to a remote system that has diplayed a web form on my pc.
    > The form was
    > written in javascript. I need to click on a check box, enter the from date,
    > enter the to date, and
    > sellect an item from a drop down menu, then click a button named submitt.
    > I am a beginer so be gentle.
    >
    > Thanks in advance,
    > Jerry


    Share on Google+

  3. #3
    Phil Weber Guest

    Re: Passing data to a cgi written in javascript

    > How do I pass data to a remote system that has=20
    > displayed a Web form on my PC?


    Jerry: See the article "Post Form Data Without a Browser," in the =
    December,=20
    1999 issue of VBPJ:=20
    http://www.devx.com/premier/mgznarch...299/hm1299.asp =
    ..
    ---
    Phil Weber
    DevX.com, Inc.


    Share on Google+

Similar Threads

  1. Replies: 5
    Last Post: 05-27-2008, 11:17 AM
  2. Replies: 7
    Last Post: 03-29-2002, 04:12 AM
  3. Replies: 4
    Last Post: 02-08-2002, 10:14 AM
  4. HELP ! Passing Parameters to Data Reports
    By MarkWilliamson in forum VB Classic
    Replies: 1
    Last Post: 01-26-2001, 11:30 AM
  5. data and multiple forms
    By skrobism in forum VB Classic
    Replies: 1
    Last Post: 01-23-2001, 10:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center