Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / March 2005

Tip: Looking for answers? Try searching our database.

JScript Event Listener from Child Window - PLEASE HELP!!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mrblonde - 17 Mar 2005 18:37 GMT
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???
name - 18 Mar 2005 10:33 GMT
"window.opener.MyButton"

How would that not need an GIVE BACK value

> Hello,
>
[quoted text clipped - 22 lines]
>     ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.