0

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

Edited by pritaeas: Removed code markdown.

3
Contributors
7
Replies
20
Views
4 Years
Discussion Span
Last Post by sudhakrish
0

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

0

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.

0

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

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.