From: Pascal B. <pa...@dy...> - 2000-10-25 17:53:03
|
You can get to the document using the .doc property of a layer something like this: mylayer.doc.formname.element.value or images: mylayer.doc.images[imagename] greets, Pascal Bestebroer pa...@dy... http://www.dynamic-core.net -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Matthew Verzonden: woensdag 25 oktober 2000 19:22 Aan: dyn...@li... Onderwerp: [Dynapi-Help] netscape and accessing forms through javascript... hey love the new DYNAPI2 .. just started using it yesterday and find it very intuitive and somewhat fun... What I am trying to do is allow form elements to be filled out and then add this information to a different layer.... so I am extracting the form elements out through javascript, assigning each to a variable then adding these variables to the setHTML() method... this works in IE as I can access the form elements directly through the document.forms.formname.formelement.value... but NS it seams to be a different story.. I am assuming that because the form is on a layer that I have to somehow access the form through the layer... but I am not sure how the DYNAPI writes to the DOM for me to access.. looking at IEs DOM the DYNAPI2 writes JSDynLayer0, etc but I cannot seam to access the form referencing this in netscape.. eg document.layers.JSDynLayer0.formname.formelement.value so i am hoping that you have any sugestions.. Thanks MattieK _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |