hi there,

I have a hidden field in my page which i need to transfer to another page as request query string/paraameter. It works perfectly in IE and in chrome. When i try in Mozilla the value of the req string is always undefined. Can any one help me out.

thanks in advance

How can anyone help without seeing your relevant code or link to where your site/code is located?

Are you using a form to send the query? How is the request being sent?

<html> <head>
 <input type='hidden' id='i2'/> <script type="text/javascript"> 
 function open_winh()
 { var objFrame=document.getElementById("i2"); 
 var koko = document.getElementById("dnn_cmdRegister").innerText; 


     objFrame.value=koko;
     window.open("http://*************.com/sample/Reports/abc.aspx?login="+objFrame.value
     ) }

The code example you provided is not complete. To test your code, i modified it the best I could without changing the desired behaviour.

<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
</head>
<body>

<input type='hidden' id='i2' /> 
<span id="dnn_cmdRegister">parameter</span>
<button onclick="open_winh();">Click Me!</button>

<script>
 function open_winh(){ 
     var objFrame=document.getElementById("i2"); 
     var koko = document.getElementById("dnn_cmdRegister").innerText; 
     objFrame.value=koko;
     window.open("http://xxxxxx/"+objFrame.value) 
 }
 </script>
 </body>
 </html>

This code works as expected...tested on Chrome and Firefox 23.

I tried with the same code which u provided. it works perfectly in chrome... but not in mozilla ff 23.

I have found the reason... inner text is not working in mozilla. instead i used text Content... Thanks all :)