SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru [Paul Ferrie]'s Avatar
    Join Date
    Oct 2007
    Location
    Glasgow, Scotland, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    set radioBtn value from url query (JS)

    Hi Guys,

    Quick question.
    I am passing variables from a form to flash. Using the latest version of swfObject i am able to use:

    Code:
    var flashvars = {};
    if(swfobject.getQueryParamValue("vs")){
       flashvars.vs    = swfobject.getQueryParamValue("vs");
    }else{
       flashvars.vs    = "true";//Default
    }
    "vs" is set in a radio button group true/false

    My question is how can i take the passed value on the form submitted to make sure when the page reloads the radio button group reflects that change. At present if i set to false and submit the form on page reload the radio button still says true.
    .:To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Glasgow Flasher
    bringmadeleinehome.com

  2. #2
    SitePoint Evangelist TommiChi's Avatar
    Join Date
    Oct 2008
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could try to pass it a hash (#) paramter in your url. With a bit of JavaScript you could read the the hash and format your page accordingly


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
  •