I'm writing a pagemirroring system for online shops.
So I have onChange or onClick handlers for every form element that send the event to a servlet on the mirrored page. On the other side there is a polling applet that fetches these events from the servlet and creates javascript instructions that manipulate the elements on the page that mirrors.
My problem is that if my pages use frames (and the mirroring applet is in an own frame) i have to write the complete path to the element e.g. parent.framename.document.formname.element.value="whatever"; (because of netscape I can't use the all object)
But how can I find out the name of the frame (formname is easy, its an element of the element object) on the mirrored page (that one that calls the JavaScript handlers).
Anyone any ideas?
Thanx
thebigf
So I have onChange or onClick handlers for every form element that send the event to a servlet on the mirrored page. On the other side there is a polling applet that fetches these events from the servlet and creates javascript instructions that manipulate the elements on the page that mirrors.
My problem is that if my pages use frames (and the mirroring applet is in an own frame) i have to write the complete path to the element e.g. parent.framename.document.formname.element.value="whatever"; (because of netscape I can't use the all object)
But how can I find out the name of the frame (formname is easy, its an element of the element object) on the mirrored page (that one that calls the JavaScript handlers).
Anyone any ideas?
Thanx
thebigf