Form Action PUT not sending variables

Discussion in 'Javascript' started by ft310, Jul 16, 2007.

  1. ft310

    ft310 Guest

    I have a form
    <td ID="but" width="20%" style="height: 30px; vertical-align: top ;">
    <form class="frmform" name="close01" action="index.htm"/>
    <p style="text-align: center; margin-top: 0; margin-bottom: 0">
    <button class="frmclose" onClick="retreat() ;" name="closer"
    style="height: 97%">Close</button>
    </p>
    </form>

    <form class="frmform"
    name="buttons"
    target="_blank"
    method="POST"
    action="geodirect.php"/>

    <label class="frmlabel" for="addr"><br>Enter Address:</label><br>
    <input class="frmaddr" name="addr" size="50"/></input><br>&nbsp;<br>
    <input type=submit class="frminput" onClick="return tohere() ;"
    name="GoTo" value="and go TO Meeting"><br>&nbsp;<br>
    <input type=submit class="frminput" onClick="return fromhere() ;"
    name="GoFrom" value="or FROM Meeting"><br>&nbsp;<br>
    <input type="hidden" name="startaddress" size="200" value="">
    <input type="hidden" name="endaddress" size="200" value="">
    <input type="hidden" name="meetingaddress" size="200"
    value="">
    <input type="hidden" name="coordinatesline" size="20"
    value="">
    &nbsp;<br>
    </form>
    </td>

    None of the variables are reaching geodirect.php

    I am at lose on how to go about dealing with this -- may I have
    suggestions
     
    ft310, Jul 16, 2007
    #1
    1. Advertising

  2. ft310

    Rik Guest

    On Tue, 17 Jul 2007 00:07:44 +0200, ft310 <> wrote:

    > I have a form
    > <td ID="but" width="20%" style="height: 30px; vertical-align: top ;">
    > <form class="frmform" name="close01" action="index.htm"/>
    > <p style="text-align: center; margin-top: 0; margin-bottom: 0">
    > <button class="frmclose" onClick="retreat() ;" name="closer"
    > style="height: 97%">Close</button>
    > </p>
    > </form>
    >
    > <form class="frmform"
    > name="buttons"
    > target="_blank"
    > method="POST"
    > action="geodirect.php"/>


    Euhm, a self closing form tag? Try without the /

    --
    Rik Wasmus
     
    Rik, Jul 16, 2007
    #2
    1. Advertising

  3. ft310

    ft310 Guest

    On Jul 16, 6:14 pm, "David Mark" <> wrote:
    > "ft310" <> wrote in message
    >
    > news:...
    >
    >
    >
    > >I have a form
    > > <td ID="but" width="20%" style="height: 30px; vertical-align: top ;">
    > > <form class="frmform" name="close01" action="index.htm"/>
    > > <p style="text-align: center; margin-top: 0; margin-bottom: 0">
    > > <button class="frmclose" onClick="retreat() ;" name="closer"
    > > style="height: 97%">Close</button>
    > > </p>
    > > </form>

    >
    > > <form class="frmform"
    > > name="buttons"
    > > target="_blank"
    > > method="POST"
    > > action="geodirect.php"/>

    >
    > > <label class="frmlabel" for="addr"><br>Enter Address:</label><br>
    > > <input class="frmaddr" name="addr" size="50"/></input><br>&nbsp;<br>
    > > <input type=submit class="frminput" onClick="return tohere() ;"
    > > name="GoTo" value="and go TO Meeting"><br>&nbsp;<br>
    > > <input type=submit class="frminput" onClick="return fromhere() ;"
    > > name="GoFrom" value="or FROM Meeting"><br>&nbsp;<br>
    > > <input type="hidden" name="startaddress" size="200" value="">
    > > <input type="hidden" name="endaddress" size="200" value="">
    > > <input type="hidden" name="meetingaddress" size="200"
    > > value="">
    > > <input type="hidden" name="coordinatesline" size="20"
    > > value="">
    > > &nbsp;<br>
    > > </form>
    > > </td>

    >
    > > None of the variables are reaching geodirect.php

    >
    > > I am at loss on how to go about dealing with this -- may I have
    > > suggestions

    >
    > I am at a loss too. Where is the accompanying script? What are those
    > onClick (sic) handlers calling?



    Here is the scripts -- If you tell me I have a script error at this
    point I will be sad, very say.

    function tohere()
    {
    processaddr('TO') ;
    }

    function fromhere()
    {
    processaddr('FM') ;
    }

    function processaddr(directn)
    {
    if (document.buttons.addr.value.length > 0)
    {
    if (directn == 'TO')
    {
    document.buttons.startaddress.value = document.buttons.addr.value ;
    document.buttons.endaddress.value = myCoord[4] + "," + myCoord[5] ;
    }
    else
    {
    document.buttons.startaddress.value = myCoord[4] + "," +
    myCoord[5] ;
    document.buttons.endaddress.value = document.buttons.addr.value ;
    }

    document.buttons.meetingaddress.value = myCoord[2] + "," +
    myCoord[3] ;
    document.buttons.coordinatesline.value = myCoord[4] + "," +
    myCoord[5] ;

    alert('str add ' + document.buttons.startaddress.value) ;
    alert('end add ' + document.buttons.endaddress.value) ;
    alert('mtg add ' + document.buttons.meetingaddress.value) ;
    alert('coord ' + document.buttons.coordinatesline.value) ;

    return true ;
    }
    }
     
    ft310, Jul 16, 2007
    #3
  4. ft310

    ft310 Guest

    On Jul 16, 6:18 pm, Rik <> wrote:
    > On Tue, 17 Jul 2007 00:07:44 +0200, ft310 <> wrote:
    > > I have a form
    > > <td ID="but" width="20%" style="height: 30px; vertical-align: top ;">
    > > <form class="frmform" name="close01" action="index.htm"/>
    > > <p style="text-align: center; margin-top: 0; margin-bottom: 0">
    > > <button class="frmclose" onClick="retreat() ;" name="closer"
    > > style="height: 97%">Close</button>
    > > </p>
    > > </form>

    >
    > > <form class="frmform"
    > > name="buttons"
    > > target="_blank"
    > > method="POST"
    > > action="geodirect.php"/>

    >
    > Euhm, a self closing form tag? Try without the /
    >
    > --
    > Rik Wasmus


    Rik, thanks -- that was definitely not necessary -- I took it out and
    there was no change.
     
    ft310, Jul 16, 2007
    #4
  5. ft310

    ft310 Guest

    On Jul 16, 6:35 pm, "David Mark" <> wrote:
    > "ft310" <> wrote in message
    >
    > news:...
    >
    >
    >
    > > On Jul 16, 6:14 pm, "David Mark" <> wrote:
    > >> "ft310" <> wrote in message

    >
    > >>news:...

    >
    > >> >I have a form
    > >> > <td ID="but" width="20%" style="height: 30px; vertical-align: top ;">
    > >> > <form class="frmform" name="close01" action="index.htm"/>
    > >> > <p style="text-align: center; margin-top: 0; margin-bottom: 0">
    > >> > <button class="frmclose" onClick="retreat() ;" name="closer"
    > >> > style="height: 97%">Close</button>
    > >> > </p>
    > >> > </form>

    >
    > >> > <form class="frmform"
    > >> > name="buttons"
    > >> > target="_blank"
    > >> > method="POST"
    > >> > action="geodirect.php"/>

    >
    > >> > <label class="frmlabel" for="addr"><br>Enter Address:</label><br>
    > >> > <input class="frmaddr" name="addr" size="50"/></input><br>&nbsp;<br>
    > >> > <input type=submit class="frminput" onClick="return tohere() ;"
    > >> > name="GoTo" value="and go TO Meeting"><br>&nbsp;<br>
    > >> > <input type=submit class="frminput" onClick="return fromhere() ;"
    > >> > name="GoFrom" value="or FROM Meeting"><br>&nbsp;<br>
    > >> > <input type="hidden" name="startaddress" size="200" value="">
    > >> > <input type="hidden" name="endaddress" size="200" value="">
    > >> > <input type="hidden" name="meetingaddress" size="200"
    > >> > value="">
    > >> > <input type="hidden" name="coordinatesline" size="20"
    > >> > value="">
    > >> > &nbsp;<br>
    > >> > </form>
    > >> > </td>

    >
    > >> > None of the variables are reaching geodirect.php

    >
    > >> > I am at loss on how to go about dealing with this -- may I have
    > >> > suggestions

    >
    > >> I am at a loss too. Where is the accompanying script? What are those
    > >> onClick (sic) handlers calling?

    >
    > > Here is the scripts -- If you tell me I have a script error at this
    > > point I will be sad, very say.

    >
    > You don't know if you have a script error at this point? Anyway, another
    > poster spotted a flaw in your HTML. You should have validated the HTML
    > first and if it still didn't work at that point, you should have tested it
    > without the script (which you should do anyway.) And when posting HTML, you
    > should include all functions referenced in inline event handlers, otherwise
    > it is impossible to test it.



    David, thank you very much for your valued insights into the current
    state of software evolution.
     
    ft310, Jul 16, 2007
    #5
  6. ft310

    Rik Guest

    On Tue, 17 Jul 2007 00:30:29 +0200, ft310 <> wrote:

    > On Jul 16, 6:18 pm, Rik <> wrote:
    >> On Tue, 17 Jul 2007 00:07:44 +0200, ft310 <>
    >> wrote:
    >> > I have a form
    >> > <td ID="but" width="20%" style="height: 30px; vertical-align: top

    >> ;">
    >> > <form class="frmform" name="close01" action="index.htm"/>
    >> > <p style="text-align: center; margin-top: 0;

    >> margin-bottom: 0">
    >> > <button class="frmclose" onClick="retreat() ;"

    >> name="closer"
    >> > style="height: 97%">Close</button>
    >> > </p>
    >> > </form>

    >>
    >> > <form class="frmform"
    >> > name="buttons"
    >> > target="_blank"
    >> > method="POST"
    >> > action="geodirect.php"/>

    >>
    >> Euhm, a self closing form tag? Try without the /

    >
    > Rik, thanks -- that was definitely not necessary -- I took it out and
    > there was no change.


    It was neccessary, it was invalid HTML. Now, if things still not work,
    consider 2 options to further our search:

    1. Use FireBug in Mozilla (or other javascript tools) to check the flow
    after the onclick events.

    2. If that doesn't work, put it up on a location reachable for us and give
    us the URL. I'm not in the habit of setting up other peoples webpages
    myself to give them free advice about their problems. I'm glad to help
    out, but make it easy for the people who are willing to spend time on you.

    --
    Rik Wasmus
     
    Rik, Jul 17, 2007
    #6
  7. ft310

    ft310 Guest

    On Jul 16, 9:41 pm, Rik <> wrote:
    > On Tue, 17 Jul 2007 00:30:29 +0200, ft310 <> wrote:
    > > On Jul 16, 6:18 pm, Rik <> wrote:
    > >> On Tue, 17 Jul 2007 00:07:44 +0200, ft310 <>
    > >> wrote:
    > >> > I have a form
    > >> > <td ID="but" width="20%" style="height: 30px; vertical-align: top
    > >> ;">
    > >> > <form class="frmform" name="close01" action="index.htm"/>
    > >> > <p style="text-align: center; margin-top: 0;
    > >> margin-bottom: 0">
    > >> > <button class="frmclose" onClick="retreat() ;"
    > >> name="closer"
    > >> > style="height: 97%">Close</button>
    > >> > </p>
    > >> > </form>

    >
    > >> > <form class="frmform"
    > >> > name="buttons"
    > >> > target="_blank"
    > >> > method="POST"
    > >> > action="geodirect.php"/>

    >
    > >> Euhm, a self closing form tag? Try without the /

    >
    > > Rik, thanks -- that was definitely not necessary -- I took it out and
    > > there was no change.

    >
    > It was neccessary, it was invalid HTML. Now, if things still not work,
    > consider 2 options to further our search:
    >
    > 1. Use FireBug in Mozilla (or other javascript tools) to check the flow
    > after the onclick events.
    >
    > 2. If that doesn't work, put it up on a location reachable for us and give
    > us the URL. I'm not in the habit of setting up other peoples webpages
    > myself to give them free advice about their problems. I'm glad to help
    > out, but make it easy for the people who are willing to spend time on you.
    >
    > --
    > Rik Wasmus


    Rik, I appreciate your input and I think agree with you. I've had this
    issue for some time now and was looking for an approach as everything
    I could think of was yielding nothing.

    Your remarks were constructive and necessary -- the /> should not have
    been there -- I had discredited it but one can never know.

    In all cases though, this discussion reach a new low real quick and I
    am looking for other more civil avenues.

    I've been doing this for over 47 years; We all have baggage; I'm just
    not in the mood to haul someone elses.

    Again thanks and Good Luck to you.

    Frank
     
    ft310, Jul 17, 2007
    #7
  8. ft310

    Rik Guest

    On Tue, 17 Jul 2007 15:25:02 +0200, ft310 <> wrote:
    > In all cases though, this discussion reach a new low real quick and I
    > am looking for other more civil avenues.


    OK, hope you find your answer.

    Regards,
    --
    Rik Wasmus
     
    Rik, Jul 17, 2007
    #8
  9. In comp.lang.javascript message <469bf781$0$32514$
    m>, Mon, 16 Jul 2007 18:56:03, David Mark <> posted:
    >> David, thank you very much for your valued insights into the current
    >> state of software evolution.

    >
    >Google posting--so easy a caveman can do it.


    It would, however, be appreciated if you were to comply with FAQ section
    2.3 para 6 (/inter alia/).

    --
    (c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
    news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
    <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
    <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
     
    Dr J R Stockton, Jul 17, 2007
    #9
  10. In comp.lang.javascript message <469d362b$0$12186$
    m>, Tue, 17 Jul 2007 17:35:42, David Mark <> posted:
    >
    >> <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates,
    >> sources.

    >
    >It would be appreciated if you fixed this page. I don't care for the
    >opening JavaScript error in IE7 (among other things.)


    Interesting. I normally use IE6; IE7 is on another machine here.

    IE6, Firefox 2.0.0.4, and Opera 9.21 all seem happy with the page.

    IE7 does assert Line 378 Char 31 Invalid argument Code 0 but
    line 378 and its neighbours are an innocent HTML paragraph.

    I introduced an error on line 356, which *is* script, and its line
    number was correctly given.

    I removed it, and added extra blank lines at about line 369; line 378
    was still reported as wrong.

    It would be appreciated if you would fix IE7 !!!



    What do others see when loading that page?

    --
    (c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
    Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
    Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
    Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
     
    Dr J R Stockton, Jul 18, 2007
    #10
  11. ft310

    Rik Guest

    On Wed, 18 Jul 2007 16:07:30 +0200, Dr J R Stockton
    <> wrote:

    > In comp.lang.javascript message <469d362b$0$12186$
    > m>, Tue, 17 Jul 2007 17:35:42, David Mark <> posted:
    >>
    >>> <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates,
    >>> sources.

    >>
    >> It would be appreciated if you fixed this page. I don't care for the
    >> opening JavaScript error in IE7 (among other things.)

    > What do others see when loading that page?


    Works OK, there is an error report in MSIE 7 indeed though.
    The error is in the Cuffs() function, MSIE 7 reports it's in the HTML but
    clearly it's the javascript file. It bugs on:

    HREF = DLJ.href

    On link no. 289 to be precise, where further processing is halted.

    There, it appears there is the first 'news:*'-link encountered. Indeed, if
    all are removed or alter into for instance 'news://', the error disappears.

    --
    Rik Wasmus
     
    Rik, Jul 18, 2007
    #11
  12. In comp.lang.javascript message <op.tvobx4zsqnv3q9@metallium>, Wed, 18 Jul
    2007 20:50:18, Rik <> posted:
    >On Wed, 18 Jul 2007 16:07:30 +0200, Dr J R Stockton
    ><> wrote:
    >
    >> In comp.lang.javascript message <469d362b$0$12186$
    >> m>, Tue, 17 Jul 2007 17:35:42, David Mark <> posted:
    >>>
    >>>> <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates,
    >>>> sources.
    >>>
    >>> It would be appreciated if you fixed this page. I don't care for the
    >>> opening JavaScript error in IE7 (among other things.)

    >> What do others see when loading that page?

    >
    >Works OK, there is an error report in MSIE 7 indeed though.
    >The error is in the Cuffs() function, MSIE 7 reports it's in the HTML but
    >clearly it's the javascript file. It bugs on:
    >
    >HREF = DLJ.href
    >
    >On link no. 289 to be precise, where further processing is halted.
    >
    >There, it appears there is the first 'news:*'-link encountered. Indeed,
    >if all are removed or alter into for instance 'news://', the error
    >disappears.



    On my system, the form news://... does work, but the (notoriously
    standards-compliant) newsreader gives an error warning "not a valid
    newsgroup name".


    The offending line in js-index.htm is Number 1103 :

    1101 <li>IT :
    1102 <a href="news:it.comp.lang.javascript">it.comp.lang.javascript</a> :
    1103 <a href="news:1gud7k1.71e2lrtggf5qN%">
    1104 FAQ</a> versione 0.9 - 06/11/2004. Also posted in the newsgroup

    and it's the only line matching /news:\S*@/ on the site.

    No doubt that's a form I wasn't really thinking of when writing Cuffs.

    However, at present I can't see what to do about that statement (it would
    be acceptable to do a loop continue there; but how to recognise the
    need?).

    --
    (c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
    Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links;
    Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
    No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
     
    Dr J R Stockton, Jul 18, 2007
    #12
  13. ft310

    Rik Guest

    On Thu, 19 Jul 2007 00:11:14 +0200, Dr J R Stockton
    <> wrote:
    >>>>> <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates,
    >>>>> sources.
    >>>>
    >>>> It would be appreciated if you fixed this page. I don't care for the
    >>>> opening JavaScript error in IE7 (among other things.)
    >>> What do others see when loading that page?

    >>
    >> Works OK, there is an error report in MSIE 7 indeed though.
    >> The error is in the Cuffs() function, MSIE 7 reports it's in the HTML
    >> but
    >> clearly it's the javascript file. It bugs on:
    >>
    >> HREF = DLJ.href
    >>
    >> On link no. 289 to be precise, where further processing is halted.
    >>
    >> There, it appears there is the first 'news:*'-link encountered. Indeed,
    >> if all are removed or alter into for instance 'news://', the error
    >> disappears.

    >
    > On my system, the form news://... does work, but the (notoriously
    > standards-compliant) newsreader gives an error warning "not a valid
    > newsgroup name".


    Which is offcourse right, it _should_ be news: without the //... Maybe
    MSIE 7 doesn't really recognize news:// but just doesn't do weird stuff it
    does do with actual news:-links. I do not know the exact nature of the
    problem, I just know where it is :)

    > The offending line in js-index.htm is Number 1103 :
    >
    > 1101 <li>IT :
    > 1102 <a href="news:it.comp.lang.javascript">it.comp.lang.javascript</a>
    > :
    > 1103 <a href="news:1gud7k1.71e2lrtggf5qN%">
    > 1104 FAQ</a> versione 0.9 - 06/11/2004. Also posted in the newsgroup
    >
    > and it's the only line matching /news:\S*@/ on the site.
    >
    > No doubt that's a form I wasn't really thinking of when writing Cuffs.


    It should not matter AFAIK, but even assigning the DLJ.href to HREF gives
    the error, very weird behaviour.

    > However, at present I can't see what to do about that statement (it would
    > be acceptable to do a loop continue there; but how to recognise the
    > need?).


    ....
    DLJ = document.links[J];
    if(typeof DLJ.href != 'string') continue;
    HREF = DLJ.href;
    ....

    That seems to work with the old links.
    --
    Rik Wasmus
     
    Rik, Jul 19, 2007
    #13
  14. In comp.lang.javascript message <op.tvon8bu6qnv3q9@metallium>, Thu, 19
    Jul 2007 01:15:37, Rik <> posted:
    >
    >> However, at present I can't see what to do about that statement (it would
    >> be acceptable to do a loop continue there; but how to recognise the
    >> need?).

    >
    >...
    > DLJ = document.links[J];
    > if(typeof DLJ.href != 'string') continue;
    > HREF = DLJ.href;
    >...
    >
    >That seems to work with the old links.



    Installed. Seems OK with IE6, IE7, and the new Firefox 2.0.0.5 and
    Opera 9.22. Thanks.

    There is however a related problem - neither by the link, nor by any
    other means so far tried, have I actually been able to get that FAQ.

    --
    (c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
    news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
    <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
    <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
     
    Dr J R Stockton, Jul 20, 2007
    #14
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe Bloggs
    Replies:
    1
    Views:
    948
    Sudsy
    Aug 3, 2003
  2. rjweytens
    Replies:
    6
    Views:
    16,298
    rjweytens
    Jun 25, 2004
  3. John
    Replies:
    0
    Views:
    983
  4. Replies:
    9
    Views:
    995
  5. Gabriel Rossetti
    Replies:
    3
    Views:
    584
    Jerry Hill
    Apr 25, 2008
Loading...

Share This Page