Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Form Action PUT not sending variables

0 views
Skip to first unread message

ft310

unread,
Jul 16, 2007, 6:07:44 PM7/16/07
to
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

David Mark

unread,
Jul 16, 2007, 6:14:28 PM7/16/07
to

"ft310" <too...@fullchannel.net> wrote in message
news:1184623664.8...@k79g2000hse.googlegroups.com...

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


Rik

unread,
Jul 16, 2007, 6:18:02 PM7/16/07
to
On Tue, 17 Jul 2007 00:07:44 +0200, ft310 <too...@fullchannel.net> 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

ft310

unread,
Jul 16, 2007, 6:22:40 PM7/16/07
to
On Jul 16, 6:14 pm, "David Mark" <dm...@cinsoft.net> wrote:
> "ft310" <tooh...@fullchannel.net> wrote in message
> > 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

unread,
Jul 16, 2007, 6:30:29 PM7/16/07
to
On Jul 16, 6:18 pm, Rik <luiheidsgoe...@hotmail.com> wrote:

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

David Mark

unread,
Jul 16, 2007, 6:35:23 PM7/16/07
to

"ft310" <too...@fullchannel.net> wrote in message
news:1184624560.1...@d55g2000hsg.googlegroups.com...

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.


ft310

unread,
Jul 16, 2007, 6:40:30 PM7/16/07
to


David, thank you very much for your valued insights into the current
state of software evolution.

David Mark

unread,
Jul 16, 2007, 6:53:01 PM7/16/07
to

"ft310" <too...@fullchannel.net> wrote in message
news:1184625029.6...@k79g2000hse.googlegroups.com...

Of course it was necessary. If it still fails then something else is wrong
too. Perhaps you should stick to learning HTML before trying to add
JavaScript to your creation.


David Mark

unread,
Jul 16, 2007, 6:56:03 PM7/16/07
to

"ft310" <too...@fullchannel.net> wrote in message
news:1184625630.4...@w3g2000hsg.googlegroups.com...

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


Rik

unread,
Jul 16, 2007, 9:41:38 PM7/16/07
to
On Tue, 17 Jul 2007 00:30:29 +0200, ft310 <too...@fullchannel.net> wrote:

> On Jul 16, 6:18 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
>> On Tue, 17 Jul 2007 00:07:44 +0200, ft310 <tooh...@fullchannel.net>
>> 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

unread,
Jul 17, 2007, 9:41:13 AM7/17/07
to
On Tue, 17 Jul 2007 15:25:02 +0200, ft310 <too...@fullchannel.net> 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

David Mark

unread,
Jul 17, 2007, 9:42:21 AM7/17/07
to

"ft310" <too...@fullchannel.net> wrote in message
news:1184678702.9...@e9g2000prf.googlegroups.com...
> On Jul 16, 9:41 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
>> On Tue, 17 Jul 2007 00:30:29 +0200, ft310 <tooh...@fullchannel.net>
> 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.

If you don't know, then don't discredit.

>
> In all cases though, this discussion reach a new low real quick and I

You mean like the nonsense you posted?

> am looking for other more civil avenues

Happy trails.
.
>
> I've been doing this for over 47 years; We all have baggage; I'm just

Doing what?

> not in the mood to haul someone elses.

You might be more successful as a baggage handler. Web development is
clearly not your bag.


ft310

unread,
Jul 17, 2007, 9:25:02 AM7/17/07
to
On Jul 16, 9:41 pm, Rik <luiheidsgoe...@hotmail.com> wrote:

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

Dr J R Stockton

unread,
Jul 17, 2007, 4:05:15 PM7/17/07
to
In comp.lang.javascript message <469bf781$0$32514$4c36...@roadrunner.co
m>, Mon, 16 Jul 2007 18:56:03, David Mark <dm...@cinsoft.net> 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.

David Mark

unread,
Jul 17, 2007, 5:35:42 PM7/17/07
to
[snip]

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

Like that? Sometimes I forget to snip. My sincerest apologies if this
offends your sensibilities.

> <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.)

Dr J R Stockton

unread,
Jul 18, 2007, 10:07:30 AM7/18/07
to
In comp.lang.javascript message <469d362b$0$12186$4c36...@roadrunner.co
m>, Tue, 17 Jul 2007 17:35:42, David Mark <dm...@cinsoft.net> 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)

Rik

unread,
Jul 18, 2007, 2:50:18 PM7/18/07
to
On Wed, 18 Jul 2007 16:07:30 +0200, Dr J R Stockton
<j...@merlyn.demon.co.uk> wrote:

> In comp.lang.javascript message <469d362b$0$12186$4c36...@roadrunner.co
> m>, Tue, 17 Jul 2007 17:35:42, David Mark <dm...@cinsoft.net> 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

Dr J R Stockton

unread,
Jul 18, 2007, 6:11:14 PM7/18/07
to
In comp.lang.javascript message <op.tvobx4zsqnv3q9@metallium>, Wed, 18 Jul
2007 20:50:18, Rik <luiheid...@hotmail.com> posted:


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%marcoc...@tiscaly.it">
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.

Rik

unread,
Jul 18, 2007, 7:15:37 PM7/18/07
to
On Thu, 19 Jul 2007 00:11:14 +0200, Dr J R Stockton
<j...@merlyn.demon.co.uk> 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%marcoc...@tiscaly.it">
> 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

David Mark

unread,
Jul 18, 2007, 8:05:51 PM7/18/07
to

"Rik" <luiheid...@hotmail.com> wrote in message
news:op.tvon8bu6qnv3q9@metallium...

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

To say the least. I have to admit, I wouldn't have seen that coming either.
Just what is the type of that link's href property in IE7? My guess is
"unknown." That would mean that for some stupid reason that link is an
ActiveX object in IE7.

Just goes to show you have to test in everything. Especially new versions
of IE.


Dr J R Stockton

unread,
Jul 20, 2007, 5:31:26 PM7/20/07
to
In comp.lang.javascript message <op.tvon8bu6qnv3q9@metallium>, Thu, 19
Jul 2007 01:15:37, Rik <luiheid...@hotmail.com> 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.

0 new messages