I am able to attach events to an image like so:
===============================================
var oOpenImg = document.all('imgOpen');
oOpenImg.attachEvent('onclick', alert);
===============================================
Once I open a new window via JavaScript, I reference the same image like so:
===============================================
var oOpenImg = top.opener.parent.frames['main'].document.all('imgOpen');
===============================================
Within the new window I am able to work with the image like so:
===============================================
oOpenImg.src = '/Images/open.gif';
oOpenImg.className = 'ActiveImage';
===============================================
What I can't seem to do is attach an event to this Image within in the new Window:
(The follow does not work)
===============================================
var oOpenImg = top.opener.parent.frames['main'].document.all('imgOpen');
oOpenImg.attachEvent('onclick', alert);
===============================================
Any insight would be appreciated.
-rp
===============================================
var oOpenImg = document.all('imgOpen');
oOpenImg.attachEvent('onclick', alert);
===============================================
Once I open a new window via JavaScript, I reference the same image like so:
===============================================
var oOpenImg = top.opener.parent.frames['main'].document.all('imgOpen');
===============================================
Within the new window I am able to work with the image like so:
===============================================
oOpenImg.src = '/Images/open.gif';
oOpenImg.className = 'ActiveImage';
===============================================
What I can't seem to do is attach an event to this Image within in the new Window:
(The follow does not work)
===============================================
var oOpenImg = top.opener.parent.frames['main'].document.all('imgOpen');
oOpenImg.attachEvent('onclick', alert);
===============================================
Any insight would be appreciated.
-rp