[Javascript] Extract portion of URL and place in form field

Phillp Morgan pmorgan at quickpages.net.au
Sun May 19 20:40:24 CDT 2002


Hi Andrew,

Thanks for that tip. I was hoping for something a little more verbose.. Like
the actual javascript..

> -----Original Message-----
> From: javascript-admin at LaTech.edu
> [mailto:javascript-admin at LaTech.edu]On
> Behalf Of Andrew Dunn
> Sent: Monday, 20 May 2002 11:03 AM
> To: 'javascript at LaTech.edu'
> Subject: RE: [Javascript] Extract portion of URL and place in
> form field
> Sensitivity: Confidential
>
>
> Use the location.search property and use a split() funtion or
> some other
> string function that will give you the text after the string.
>
> -----Original Message-----
> From: Phillp Morgan [mailto:pmorgan at quickpages.net.au]
> Sent: Monday, 20 May 2002 11:22 AM
> To: javascript at latech.edu
> Subject: [Javascript] Extract portion of URL and place in form field
> Sensitivity: Confidential
>
>
> Hi, I would like to grab the text after the '=' and place it
> in the form
> field 'ticket'. This is a form with only one field, the formname is
> 'sverify'
>
> This is the string...
http://www.mysite.com/thanks.html?cbreceipt=Z54HKPT7

I'm after the Z54HKPT7.

How would I do this?

Regards,

Phillip Morgan
Chief Information Offier
Quickpages Business Directories
----------------------------------------------------------------------------
------------
This email is intended for the above named recipient only, and may contain
priveledged information. If you are not the intended recipient please delete
this email immediately and notify Quickpages of the problem.

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list