> I think you have 3 options.
>
> The first would be to use the URL to include the name you want put in
> the form:www.myurl.com/mysecondpage.html?John%20Smith
>
> On the second page you could access the URL via document.referrer
> Are you responding to PointedEars? He didn't ask the question.
Well, not really. I am responding to the person who DID ask the
question.
Okay, I should have navigated back up to the original poster, but I
would have thought that it was pretty obvious to all but the most
pedantic pedant. :)
> > I think you have 3 options.
>
[quoted text clipped - 5 lines]
> That doesn't make any sense. Perhaps you meant
> window.location.search?
You are correct.
According to O'Rielly's Definitive Guide to Javascript (3rd Edition),
document.referrer refers to the document which linked the current
document. What I meant to say was document.location, however, I see
this is deprecated so document.URL, should be used instead. Or, as you
suggest, window.location.
>I don't know what that means, but frames are ill-advised in general
>and have nothing to do with the OP's question.
I don't see why. I often used to use zero width frames as a way of
keeping track of variables on a site without using cookies (an option
that the OP might also like to consider).
The OP wanted a technigue to place the results of an input from one
form into another form on a different page. If the variable is defined
in the Master frame it can be changed to the value retrieved from the
first form and can be accessed by the second page to populate an input
field on that second form.
> You are confused. See the FAQ entry about submitting a form to a new
> window. Regardless, like frames, new windows have nothing to do with
> the question.
No, I am lucid. However, you are probably right in this case. Opening
new windows in today's climate of paranoia and pop-up blockers is very
likely ill-advised.
However, it DOES work, and in much the same way as the frames
technique works.
> Inaccurate for sure. It can't be outdated as it was never accurate.
Well, maybe....
> It is nice that you apologized in advance, but it would have been
> better to skip posting this entirely.
Yes, you have forced me to realise that I was very unwise to post at
all on this forum.
Rest assured that I won't be back! :)
David Mark - 30 Sep 2007 23:09 GMT
> On Sep 30, 10:30 pm, David Mark <dmark.cins...@gmail.com> wrote:> Are you responding to PointedEars? He didn't ask the question.
>
[quoted text clipped - 3 lines]
> would have thought that it was pretty obvious to all but the most
> pedantic pedant. :)
Navigating back up to the original post? Are you using Google?
Realize this is a newsgroup and it is important to reply to the
correct post.
> > > I think you have 3 options.
>
[quoted text clipped - 19 lines]
> keeping track of variables on a site without using cookies (an option
> that the OP might also like to consider).
There's no need to keep track of it when you can pass it as part of
the URI.
[snip]
> > You are confused. See the FAQ entry about submitting a form to a new
> > window. Regardless, like frames, new windows have nothing to do with
[quoted text clipped - 5 lines]
> However, it DOES work, and in much the same way as the frames
> technique works.
You missed the point.
> > Inaccurate for sure. It can't be outdated as it was never accurate.
>
[quoted text clipped - 5 lines]
> Yes, you have forced me to realise that I was very unwise to post at
> all on this forum.
It is unwise to post wrong answers, even if they include a disclaimer.