Javascript, innerHTML error in Firefox

R

roblawrenc

I have a list generated by a database pull for a contact list. When you
click on the name, I want the iframe to the right to load another page
to view the contact information (using innerHTML to accomplish this).
This works on the first click, but then when I click another user name,
I get the following error in Firefox Javascript console

Error: top.mainFrame.rightframe.document has no properties
Source File: http://www.biggerstring.com/email/addressbook/frames.php
Line: 226

Here is the line it directs me to
temp = top.mainFrame.rightframe.document.title;

Everytime i change the iframe on the right, i had it named rightframe
with the same id.

This all works in IE though. Any suggestions are appreciated. Thanks in
advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
DewittMill
Top