Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5

Thread: Http submit?

  1. #1
    Join Date
    Jun 2004
    Posts
    113

    Http submit?

    Hi just now I have a http web page with the following code:

    Code:
    <html>
    <head>
    <script language="javascript">
    <!--
    function reset_modem() {
    reset_form.submit();
    }
    -->
    </script>
    </head>
    <body onload="reset_modem()">
    <form name="reset_form" id="reset_form" method="post" action="http://192.168.100.1/configdata.html">
    <input type="show" name="BUTTON_INPUT" value="Restart Cable Modem">
    </form>
    </body>
    </html>
    How would I use the http submit function to make a button do the same thing without needing to load this http page into a web object?

    Can it be done - or does the http submit only work with php pages?

    Thanks.

  2. #2
    Join Date
    May 2006
    Posts
    1,443
    maybe this may work

    Code:
    myvalues = {BUTTON_INPUT="Restart Cable Modem"};
    result = HTTP.Submit("http://192.168.100.1/configdata.html", myvalues, SUBMITWEB_POST, 20, 80, nil, nil);

  3. #3
    Join Date
    Jun 2004
    Posts
    113
    Quote Originally Posted by reteset View Post
    maybe this may work

    Code:
    myvalues = {BUTTON_INPUT="Restart Cable Modem"};
    result = HTTP.Submit("http://192.168.100.1/configdata.html", myvalues, SUBMITWEB_POST, 20, 80, nil, nil);
    No the myvalues - is just the name that's on the button when the page is loaded into a web browser

  4. #4
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Hi,

    you use HTTP.Submit() to send data to a program, where the data will be processed and serve for some purpose. A HTTP form can be built using CGI (like a Perl script, for example), ASP, PHP, etc. - but a plain HTML page will most likely not do anything (unless you just want to run some Javascript).

    If you are just trying to reload the page in the web object with a click on an external button, there are other means to achieve this.

    Ulrich

  5. #5
    Join Date
    Jun 2004
    Posts
    113
    Quote Originally Posted by upeters View Post
    Hi,

    If you are just trying to reload the page in the web object with a click on an external button, there are other means to achieve this.

    Ulrich

    That page sends a command to a modem to make the modem reboot itself m8, & yes it does run a java script. I am not trying to reload a page - lol.

    Basically all I want is to understand how to use the http submit to send data to a web page (html) so I can use it in other projects.

Similar Threads

  1. Http Submit Problem
    By mustafa06 in forum AutoPlay Media Studio 7.5
    Replies: 5
    Last Post: 03-03-2008, 02:46 PM
  2. OK I am winning stupid award HTTP Submit
    By synistics in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 04-12-2007, 08:59 PM
  3. http submit authdata problem
    By goukilord10 in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 05-05-2006, 09:03 PM
  4. HTTP Submit - How do I get return values
    By SeizeTheDave in forum TrueUpdate 2.0
    Replies: 3
    Last Post: 12-21-2005, 05:54 AM
  5. HTTP, AMS5, another question
    By sferguson in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 11-14-2003, 10:15 AM

Posting Permissions

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