does the form element have any reference that links it with it's document. it
so, we should be able to access it from ther without the need to cycle through
all of the element arrays.
if i'm wrong, give me warning so I can put on my helmet : )
GORTSILAS ANDREAS wrote:
> In DynLayer.prototype.EventMethod (events.js) the code:
> for(;!realsrc.lyrobj && realsrc.parentElement &&
> realsrc.parentElement!=realsrc;realsrc=realsrc.parentElement);
> src=realsrc.lyrobj||dyndoc;
> must be replaced by:
> var src;
> if (is.ie) {
> for(;!realsrc.lyrobj && realsrc.parentElement &&
> realsrc.parentElement!=realsrc;realsrc=realsrc.parentElement);
> src=realsrc.lyrobj||dyndoc;
> }
> else if (is.ns && !realsrc.lyrobj) src = _FindDlr(realsrc);
>
> and ...
> function _FindDlr(oElm) {
> var i, k, oRet;
> if (oElm.form) {
> for (i=0; i<document.layers.length; i++) {
> for (k=0; k<document.layers[i].document.forms.length; k++) {
> if (document.layers[i].document.forms[i]==oElm.form) {
> oRet = document.layers[i].lyrobj;
> break;
> }
> }
> if (oRet) break;
> }
> }
> return oRet;
> }
>
> In NS the event of an html element was not forwarded to the DynLayer which
> contains it...
>
> Please make any corrections (if necessary) and include-it with the official
> code
>
> Andreas Gortsilas
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev