Groups | Blog | Home
all groups > dotnet jscript > march 2005 >

dotnet jscript : JScript Event Listener from Child Window - PLEASE HELP!!!


mrblonde NO[at]SPAM hotmail-dot-com.no-spam.invalid
3/17/2005 11:37:10 AM
Hello,

I have an object on a parent page. I also have a child window spawned
off that parent page. I want the child window to listen for an
"onclick" event on that object and execute some actions when that
happens. The code is as follows:

object on parent page:
<INPUT type="button" value="My Button" name="MyButton"
onclick="doSomething">

listener on child page:
<script language="JScript" event="onclick"
for="window.opener.MyButton" >
alert("Hello World");
</script>

I have tried removing the "onclick" event from the button, i've
verified that referencing the object as "window.opener.MyButton"
works. I've verified that if I place the listener directly on the
parent page it works. PLEASE HELP!!!! What am I missing???


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
name
3/18/2005 4:33:28 AM
"window.opener.MyButton"


How would that not need an GIVE BACK value


[quoted text, click to view]
AddThis Social Bookmark Button