Hello all,

I have a form that is inserted on hundreds of pages via the "include"
webbot. I need for this form to pass along the URL of the page it's on with
the rest of the info that the user supplies. I asked on
microsoft.public.frontpage.client and Thomas Rowe suggested I might be able
to do this with JavaScript. I've done some searching and it appears the
location.search query string may be what I'm looking for. However, I don't
know how to insert it properly. (I'm a programming noob.) Would anyone have
any suggestions on how to do what I'm wanting to do?

Thanks,
Nathan

Re: JavaScript help? URLs in forms? by Jon

Jon
Thu Mar 03 17:53:57 CST 2005

Hi,
I answered this in the client group

--
Cheers,
Jon
Microsoft MVP

"Nathan Martin" <Nathan@-NO-SPAM-ChristianChallenge.org> wrote in message
news:112evoad0i08j6f@corp.supernews.com...
> Hello all,
>
> I have a form that is inserted on hundreds of pages via the "include"
> webbot. I need for this form to pass along the URL of the page it's on
> with the rest of the info that the user supplies. I asked on
> microsoft.public.frontpage.client and Thomas Rowe suggested I might be
> able to do this with JavaScript. I've done some searching and it appears
> the location.search query string may be what I'm looking for. However, I
> don't know how to insert it properly. (I'm a programming noob.) Would
> anyone have any suggestions on how to do what I'm wanting to do?
>
> Thanks,
> Nathan
>



Re: JavaScript help? URLs in forms? by Nathan

Nathan
Fri Mar 04 09:03:58 CST 2005

Just a follow-up: Jon Spivey answered my question in
microsoft.public.frontpage.client and showed me how to do it. In case anyone
else is wondering how to do the same thing you can find his answer at:

http://groups-beta.google.com/group/microsoft.public.frontpage.client/messages/5bd0412360622e71,de3d721efbd6ae38,6a33e402933a4b3f,76f7e716afbea9e8,98d2ba44af918c47?thread_id=c874b2f6bc829881&mode=thread&noheader=1#doc_76f7e716afbea9e8

Or, to quote him:
===============BEGIN QUOTE===============
Hi,
you'd just need to stick a hidden field on the form then populate it with
the current page, eg
<form......
your form fields
<input type="hidden" name="url" value="">
</form>
<script type="text/javascript">
document.forms[0].url.value=location.href;
</script>
===============END QUOTE===============

Hope this helps someone else.

Nathan
--
Cheers,
Jon
Microsoft MVP



"Nathan Martin" <Nathan@-NO-SPAM-ChristianChallenge.org> wrote in message
news:112evoad0i08j6f@corp.supernews.com...
> Hello all,
>
> I have a form that is inserted on hundreds of pages via the "include"
> webbot. I need for this form to pass along the URL of the page it's on
> with the rest of the info that the user supplies. I asked on
> microsoft.public.frontpage.client and Thomas Rowe suggested I might be
> able to do this with JavaScript. I've done some searching and it appears
> the location.search query string may be what I'm looking for. However, I
> don't know how to insert it properly. (I'm a programming noob.) Would
> anyone have any suggestions on how to do what I'm wanting to do?
>
> Thanks,
> Nathan
>



Re: JavaScript help? URLs in forms? by Nathan

Nathan
Fri Mar 04 11:39:01 CST 2005

Sorry for the confusion, Jon. My local newsgroup server was down and I
didn't see your message before I posted mine. I've switched servers and saw
your message. Thanks again ... I've shared your answer with several other
forums where I asked the question.

Sincerely,
Nathan

"Jon Spivey" <jons@mvps.org> wrote in message
news:uueMGxEIFHA.3500@TK2MSFTNGP14.phx.gbl...
> Hi,
> I answered this in the client group
>
> --
> Cheers,
> Jon
> Microsoft MVP
>
> "Nathan Martin" <Nathan@-NO-SPAM-ChristianChallenge.org> wrote in message
> news:112evoad0i08j6f@corp.supernews.com...
>> Hello all,
>>
>> I have a form that is inserted on hundreds of pages via the "include"
>> webbot. I need for this form to pass along the URL of the page it's on
>> with the rest of the info that the user supplies. I asked on
>> microsoft.public.frontpage.client and Thomas Rowe suggested I might be
>> able to do this with JavaScript. I've done some searching and it appears
>> the location.search query string may be what I'm looking for. However, I
>> don't know how to insert it properly. (I'm a programming noob.) Would
>> anyone have any suggestions on how to do what I'm wanting to do?
>>
>> Thanks,
>> Nathan
>>
>
>