referencing a frame element within a frameset within an iframe

I have a web app I am updating to scroll when the window is smaller than 1024x768.  I currently have the index.html page referencing a login.jsp page which in turn, currently loads the index.jsp page which contains a frame set consising of 2 rows.  The first has 3 frames, a hidden persistance frame which references all the persistent variables contained in persistence.jsp, a hidden communications frame, and the headline.  The second row references the content.jsp page which contains a frameset with 2 columns (leftHandMenu and Viewer).

I am adding the iframe layer in such a way as to encapsulate the index.jsp page so that when the windo is resized or too small, it will be scrollable.  The new DOM looks like index.html-->login.jsp-->iframe.jsp-->index.jsp.  The problem is that since I'm adding a new top layer, the references to the persistence.jsp values are no longer valid.  How would I go about fixing those references with the new layer added, and is there a better way for me to accomplish my goal?  Thanks.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you will probably have to just do a search/replace on whatever the perfix was to your persistence.jsp document. while doing so you could make a variable so if you have to do the same thing again or just generally re-organize your frames in the future than you will only have to cahnge one line.

var presistenceDoc=top.frames['name'].frames['presistence'];
access js variables in your presistence document with:-
and functions
access HTML elements in your presistence document with:-
tigress298Author Commented:
in iframe.jsp:

<IFRAME SRC="index.jsp" WIDTH=1024 HEIGHT=768 frameborder=1>
If you can see this, your browser doesn't
understand IFRAME.  However, we'll still
<A HREF="index.jsp">link</A>
you to the file.

how would I reference the index.jsp's frames from this iFrame?
top.frames["index"].frames["persistence"]?  or some other way?  Do I need to give it an
I guess I just don't know if IFrames work the same way as frameset for referencing purposes.
yes, they do the same as normal frames. you need to set the name and id for you code above to work however. <IFRAME SRC="index.jsp" WIDTH=1024 HEIGHT=768 frameborder=1 name="index" id="index">


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.