SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2007
    Location
    London
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question query string dilema

    Hi everyone,
    i've built an app using extjs
    when it a user browses to the url domain.tld/#v=xxxxxx
    a new tab opens in a extjs panel to show content for the video with id xxxxx

    as soon as i submit a form from another page or even the same one and popuulate another variable, q, the tab no longer opens when the url looks like domain.tld/index.php?q=some+text#v=xxxxxx

    any idea why it no longer gets the value of v?
    i'm using
    HTML Code:
    		<input type="hidden" id="getV" value="
    PHP Code:
    <?php if(isset($_GET['v'])){echo $_GET['v'] ;}elseif(isset($_POST['v'])){echo $_POST['v'] ;}?>
    HTML Code:
    ">
    to get v's value and if it is set then a javascript function is called to open the tab.

    any help is appreciated

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,702
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Because v is not a querystring object accessible via $_GET - it is instead a fragment identifier
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2007
    Location
    London
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks, fixed it


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •