Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. how to access parameter in query string

how to access parameter in query string

Scheduled Pinned Locked Moved Web Development
javadatabasesysadminhardwaretools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pnslcs
    wrote on last edited by
    #1

    For a school project I need have a href attribute in an tag access another page. In the called page I need to acccess the parameter passed in. The parameter is the name of an MP3 file that I want to have automatically start playing via an embeded player object like windows media player. I know how to form the href tag and how to have a file play in an embedded player. I do not know how to access the file name via java script. I assume that once I get the file name I need to set it to a global java script variable and then access the varible via a java script function call to be made on the source attribute of the embedded object. Any help would be greatly appreciated. I have googled but not with sucess. I can not use any server side programming because the project does not allow for it. Thanks so much for your help, Patrick

    M 1 Reply Last reply
    0
    • P pnslcs

      For a school project I need have a href attribute in an tag access another page. In the called page I need to acccess the parameter passed in. The parameter is the name of an MP3 file that I want to have automatically start playing via an embeded player object like windows media player. I know how to form the href tag and how to have a file play in an embedded player. I do not know how to access the file name via java script. I assume that once I get the file name I need to set it to a global java script variable and then access the varible via a java script function call to be made on the source attribute of the embedded object. Any help would be greatly appreciated. I have googled but not with sucess. I can not use any server side programming because the project does not allow for it. Thanks so much for your help, Patrick

      M Offline
      M Offline
      Marc Firth
      wrote on last edited by
      #2

      This kind of thing is much easier with server side programming. But otherwise, I would use javascript to store the info as a cookie (NOTE: NOT secure). Otherwise, you could still use a query string on the link (i.e. "yourpage.html?somekey=somevalue") and use javascript to break apart the url and get the filename on the player page.

      Neonlight

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups