0 Replies Latest reply on Feb 9, 2012 11:47 AM by m_woot

    passing alphanumeric value in querystring in url does not work in flash

    m_woot

      I am having a flash application where I want to send paramters to it via the javascript from a defaul.aspx page.

      I have a paramter called Id where it can accept alphanumerica values.

      the query string in the url works fine if I enter just numbers for the Id, and takes me to the specific page relted to that id , but if I enter a combination of numbers and characters like 001A , it does not work.

      this is the code I used

      <script type="text/javascript">
         
      function getQueryVariable(variable)
         
      {
             
      var query = window.location.search.substring(1); 
             
      var vars = query.split("&"); 
             
      for (var i=0; i<vars.length; i++)
             
      {   
                 
      var pair = vars[i].split("=");
                 
      if (pair[0] == variable)
                     
      return (pair[1]);
             
      }
         
      }
         
      </script> 

       

      and then later I assigned the first page of flash application to it.

       

      flashvars.StartPage = getQueryVariable("Id");

       


      and then passed the flashvars into swfobject.embedSWF. I also don't want to change anything in my mxml files in flash side

      I appreciate if anyone could help me what the problem is

      thanks