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

|
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

|
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 |
|
|
|
|
|
|