FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Integration
(Moderators: fry, REAS)
   jsObject and frames
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: jsObject and frames  (Read 456 times)
eskimoblood

222550793222550793 WWW
jsObject and frames
« on: Jan 11th, 2005, 11:32pm »

Hi I have a frameset with 2 frames, once with the applet and once with a formular. Now I want do access the formular via the jsObject like these:
Code:

JSObject window=JSObject.getWindow(this);
JSObject myFrame = (JSObject) ((JSObject) ((JSObject) window.getMember("top")).getMember("frames")).getMember("myFrame1");
JSObject myDoc = (JSObject)jsXelonContainer.getMember("document");

 
I can access the Frame1. But when try to access the document I got an error.
 
eskimoblood

222550793222550793 WWW
Re: jsObject and frames
« Reply #1 on: Jan 17th, 2005, 9:16pm »

I figured out:
Code:

jsWin=JSObject.getWindow(this);//the windowobject of the applet
jsParent=(JSObject)jsWin.getMember("parent");// theparentframe
jsFrame=(JSObject)jsParent.getMember("formframe");// the frame of the form
jsDoc=(JSObject)jsFrame.getMember("document");// the documentobject of the form frame
jsForm=(JSObject) jsDoc.getMember("formular");// the form
 
Pages: 1 

« Previous topic | Next topic »