Need to include #anchor after querystring list

Posted by Bloopy on Stack Overflow See other posts from Stack Overflow or by Bloopy
Published on 2009-11-05T01:31:29Z Indexed on 2010/06/01 21:03 UTC
Read the original article Hit count: 146

Filed under:
|
|

Hello,

Form is 'get' to a API which operates off of querystring.

One of the parameters is a PackageID which indicates a vacation package. In order for the packageID to appear I also need to append '#packages' to the end of the get request.

Since not all form 'get' have a package I need this to be dynamic. I've tried adding a hidden field with '#packages' as the value - however the '#' is automatically encoded and therefore not registered when the server grabs the URL.

What would be the best way for me to dynamically include '#packages' as it appears in the querystring via javascript? Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html