Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-30-2006, 03:00 PM #1
- Join Date
- Nov 2005
- Thanked 0 Times in 0 Posts
i got a parent window that call out the child window......
in the child window i successful get the value from the parent window by using opener.document.getElementById.
because i want show the xhtml based on the value i get, so i had using PHP to compare with the language i get.
but the problem now is i cant compare although the value same as i get.
in parent window:
<input type = "hidden" name = "text1" id = "text1" value = "abc">
in child window:
<? $getValue = "<script language = 'language'>document.write(opener.document.getElementById('text1').value);</script>";
if($getValue == "abc")
but the problem now is, it always show "different" message. y like that de??
i try to show d $getValue 's value, it show out "abc".
anyone can help me n tell me what is the problem??