1) rafcabGroup: Members Posts: 17Joined: 3 May 2004Location: SpainIP: 85.136.--.--
Posted:
Hi Angus:
I've set up a page that uses frames. The menu is in one frame and tooltips in another. The result is that the menu is not visible, only the tooltips. In other similar pages with frames I'm only using the menu and it shows well. The error that web explorer returns is 'mainFrame' is not defined, and it is, as in the rest of the pages. I've used cut and paste to mix scripts but there's something missing that I can't find. Can you give some help please?
Thank you Rafael
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 220.240.--.--
Posted:
Have you got a link to your work in progress?
I would start with the popup menu frameset demonstration and drop Tipster into the content frame; that should work without too many hassles...?
- Angus.
3) rafcabGroup: Members Posts: 17Joined: 3 May 2004Location: SpainIP: 85.136.--.--
Posted:
Hi Angus:
I've tried to rebuild the page in the way you suggest and the result is similar: now the menu works but the tips don't, giving the following error: ref.offsetWidth is null or not an object
I explain the lines of code i've placed: - Main file with frameset: <script ... pop_core.js"></script> <script ... pop_data.js"></script> in the head section
- Frame #1 file, which shows the menu: <script ... pop_events.js"></script> at the end of the body section
- Frame #2 which shows the tips: <script ... tipster.js"></script> <script with the definition of the tips></script> in the head section
<script ... pop_events.js></script> at the end of the body section
Can you tell me if something is wrong or missing? Thank you Rafael
4) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 220.240.--.--
Posted:
OK, I just tried with the latest released versions of the script (updated a couple of days ago... but that shouldn't be an issue) and did this:
1) Unzip them both. 2) Open up "content.html" in the /frameset/ folder of the popup menu script, and copy/paste the LINK and SCRIPT tags required for the menus into "tipster.html". 3) Overwrite "content.html" with "tipster.html"
It worked perfectly in Mozilla Firefox and MSIE. Can you reproduce this? If so, I doubt it's a script problem?
- Angus.
5) rafcabGroup: Members Posts: 17Joined: 3 May 2004Location: SpainIP: 85.136.--.--
Posted:
Hi Angus,
Finally, after several trials, I got it to work. I had to rebuild the whole page and it runs smooth now.