|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
setting child window form values from parent window.
Hey all!
What's the syntax for setting child window form values from it's parent window? I'm trying this without much luck: var newWin = window.open( ... ); newWin.document.forms[0].fieldname.value = "new value"; Any ideas? |
|
#2
|
||||
|
||||
|
That's odd. Your code looks fine. There maybe some kinda security issue there?
Have you had any luck solving the problem? |
|
#3
|
|||
|
|||
|
Hey Stumpy,
Yes, it turned out the problem was with cross-site scripting. The above code would work fine with opening a new window, but not with opening a page on a different site; the child window doesn't appear to be allowed to be set from the parent window since it doesn't really 'belong' to it. Thanks for the post, though! :-) |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > setting child window form values from parent window. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|