Click to See Complete Forum and Search --> : Passing variable to frames


puja24
10-06-2003, 01:47 PM
Hello,

I have top frames with and bottom frames. i have applet that loads onto bottom frame and opens up html page.

I need the page that loads up onto bottom frames should interace with my top frames when I click on link,

how do i make my bottom frames to communicate with top frames?


any help would be appreciate.

thanks

puja

Khalid Ali
10-06-2003, 05:29 PM
you can access a function or variable from bottom frame from the top frame l;ike this

parent.bottomFrame.variableOrFunctionName

and same will go to do it other way around just replace the bottom frameName with top frame name

puja24
10-07-2003, 04:30 PM
Thanks for the reply

I tried using the parent.frames[0].value

but it did not work, I got an error message,"Parent.frames is not null value"

when my page loads up, i have java applet running and then opens up my html page. How do i detect with calender when user click on the date, it should redirect to them with same page.


thanks
puja

Khalid Ali
10-07-2003, 09:36 PM
what is frames????
there are couple of ways to access a frame

parent.frames[index]....
parent.rameName...

and in all instances,a frame has to be completely loaded....

puja24
10-08-2003, 02:48 PM
Hi,
I have java applet loading on my frames. I have frame name as 'InfoFrame'.

what i am trying to achieve is that once my frames loads, i want to write some javascript function which will allows me to pass the url to calender.

I wrote to test the page:

alert(parent.parent.frames['InfoFrame'].location.href

which gives me the url of the frames that is loading.

but,

i have another java applet menu, when i click my other default page opens up and i want to capture it so when users click on the date so they are redirected to same page.

any help would be greatly appreciated. I am searching for some facts on frames but not finding any clues.

i have javaapplet ActiveMenu installed on my web site.

thanks