WebReference.com logo
tip archive  •   about  •   sitemap  •   contact  •   jobs  •   write for us  •   subscribe


[prev]

How to Use a JavaScript Query String Parser [con't]

Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

You may be saying, "That's great. How do I use it?" It's very, very easy.

Note: The script probably won't work on your local computer if you have a recent browser. Due to cross-site scripting vulnerabilities some browsers won't load the files from myjs.us when they're used in a local file, due to the possibility of malicious scripts accessing local files.

An example of output from the query string:

is this:

Another Example

You can see an example of a form which submits information to itself and uses JavaScript to produce dynamic behavior after interpreting the query string by looking at the JavaScript Form Processor.

A copy of the code is here:

Conclusion

If you have questions at all, please send me an e-mail (e_mayilme[at]hotmail.com) or visit my Web site.

Original: June 2, 2008

Digg This Add to del.icio.us


[prev]

Recent Articles

WebReference.com site name
Rolling Out Your Own HTML Application Version Control
HTML 5: Client-side Storage
Working with Ajax Server Extensions
internet.com site name
Wi-Fi Product Watch, November 2009
Chip Market Recovering From '08 Collapse
Low-Cost Tools to Kickstart Your New Business


internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs