| | |
window.opener problems - IE7
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Some JavaScript code which used to work for IE6 no longer works for IE7. Any ideas what I could try to correct the problem?
The scripts change a user's password by opening a child window, grabbing the old password, new password and user name from the opener, then execute a ASP which performs the database update and then runs JavaScript on the opener to let the user know if the update was successful.
IE7 does not read the values from the opener.
The opener does this :
The child grabs the data from the opener like so :
The JavaScript fails when it tries to grab the first value from the opener's forms.
I've tried adding some bits of code recommened on other forums, so that the opener does the following :
and the child does the following :
But that hasn't helped.
Any ideas, please?
Anthony
The scripts change a user's password by opening a child window, grabbing the old password, new password and user name from the opener, then execute a ASP which performs the database update and then runs JavaScript on the opener to let the user know if the update was successful.
IE7 does not read the values from the opener.
The opener does this :
javascript Syntax (Toggle Plain Text)
function openPasswordChild() { var sw = screen.width; var sh = screen.height; var winChild = window.open( 'pw.asp', 'passwordChild', 'width=5,height=7,screenX=50,left="+sw+",screenY=0,top="+sh+",toolbar=no,dependent=yes,resizable=yes' ); if ( winChild != null ) { winChild.blur(); } else { alert( 'Password cannot be updated.\nThe window which performs the update cannot be created' ); } }
The child grabs the data from the opener like so :
javascript Syntax (Toggle Plain Text)
function startup() { var oldpw = window.opener.pwform.oldpw.value; var newpw = window.opener.pwform.newpw.value; var usrname = window.opener.mainform.username.value; . . }
The JavaScript fails when it tries to grab the first value from the opener's forms.
I've tried adding some bits of code recommened on other forums, so that the opener does the following :
javascript Syntax (Toggle Plain Text)
function openPasswordChild() { . . if ( winChild != null ) { winChild.opener = self; winChild.blur(); } . . }
and the child does the following :
javascript Syntax (Toggle Plain Text)
function startup() { var oldpw = window.opener.pwform.oldpw.value; oldpw = oldpw + ""; . . }
But that hasn't helped.
Any ideas, please?
Anthony
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Background Color Changer
- Next Thread: custom pop up menus css driven vs javascript
Views: 2632 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captcha captchaformproblem cart child class close codes date debugger dependent developer disablefirebug dom editor element embed engine enter events explorer ext file firefox flash focus form forms frameworks game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe java javascript javascripthelp2020 jquery jsf jsp jump libcurl maps marquee masterpage math media menu object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming prototype rated redirect safari scale scriptlets scroll search security size software solutions sources star stars stretch synchronous toggle tweet unicode variables web webkit webservice window \n





