PDA

View Full Version : iframe refreshing another iframe


ganand
10-21-2004, 08:31 PM
Hi,

I have a jsp page containing a tree structure with hyperlinks and that jsp page also contains two iframes, one of the iframe contains login information and the other contains the main application jsp pages. The page on the second iframe changes depending on the link clicked from tree. When a user logins on one iframes certain features are added to the second iframe pages. The problem I am facing is that even though the user has logged in one iframe the second iframe does not show the additional features until the second iframe is manually refreshed. I want the second iframe to be refreshed when correct login information is entered in the first iframe i.e. i want the second iframe to be refreshed only once.

Please help!!

I sincerely appreciate your help

Thanks
Gautam

Willy Duitt
10-21-2004, 08:47 PM
Without just throwing a guess out there it is impossible to assist you without seeing how you are submitting your login form or populating your iframe sources...

And considering that there are several documents (parent document, two iframes and a form submit) I would suggest that you post a link to either the actual document or a bare bones example if the original is bloated with code not relevant to the problem at hand...

.....Willy

Cyman
10-22-2004, 03:48 PM
For iframe A to do something in iframe B...

In iframe A, for example to call a function from iframe A in iframe B...
Assuming iframe A's ID is "frameA", iframe B's ID is "frameB" & iframe B has a function called "doActions()".
parent.frames["frameB"].doActions();