1) trampeterGroup: Members Posts: 9Joined: 19 May 2005Location: EnglandIP: 213.78.--.--
Posted:
Hi,
I have resurrected the Cascading Menu (after a long and pretty disastrous break ... I won't bore you with the details).
However, while checking various bits (all duly sorted without yelling for help) I found the Forum script.
Unfortunately I can't get the two to co-exist.
The menu is embedded in a basic index page which is also a frameset. Simple layout - three frames one above the other.
Top is the 'pretty' (!>) header, second containg the menu and the third the content. And after some hitches the menus drop down over the bottom frame, content and all.
This works in everything except the Forum. I tried putting the menu script in template.pl just after the <body> tag for the header section.
No joy. I have put other stuff in there to force the layout to match my site and that works.
Have I put the <script> tag in the wrong place? Or are the two incompatible? Or should I bury the whole of the frameset code in template.pl? That sounds messy...
Any ideas?
Peter
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.173.--.--
Posted:
It should be OK. Are you getting any JavaScript errors? (Check that with a decent browser like Firefox or Opera, not IE, which has pretty poor error reporting capabilities!)
Also, the forum page and the regular pages have the same domain, right? One is not missing the 'www.' prefix, or running at 'cgi.yoursite.com' or similar?
Good luck - Angus.
3) PeterGroup: Guests IP: 213.78.--.--
Posted:
Hello,
I've checked both pages and as far as I can see I've got the domain names and links correct all through (i.e. full ur).
Main page loads and menu works fine with everything but the Forum page. (That said there are some pages not working at the moment for other, unconnected, reasons but I'm ignoring those.) Bear in mind that lots of the pages nees the <script. for the menu putting in. I'm plodding through them and tidying layouts at the same time.
I am using Opera 8.5 which seems to work fine with the rest of the world, and I've checked JavaScript is on (been there, done that...)
However I've turned the error reporting console on and immediately came up with:
Cascading Popup Menus Frameset Demonstration http://films-n-things.co.uk/forums/index.html Timeout thread: delay 1000 ms Error: name: TypeError message: Statement on line 1: Could not convert undefined or null to object Backtrace: Line 1 of script var a = arguments, p = a[0], px = isNS4 || isOp ? 0 : "px"; with (this) Line 8 of linked script http://films-n-things.co.uk/forums/pop_core.js with (this) Line 1 of unknown script pMenu.setupRef(1, "search2");
---------------
First part of reply...
mf...
4) PeterGroup: Guests IP: 213.78.--.--
Posted:
2nd part of reply:
Frameset page won't load at all in Opera 8.0. Mystery that.
Frameset page loads in Firefox (1.04) but the menu doesn't show up at all. That said I switched to Opera because of Firefox being slow and regular page misfires. Pity, because it's basically better than Opera 8.5 apart from being slower and not loading the Cascading menu...
Internet Explorer on my machine is inexplicably bust and has been for some time. Oddly I haven't a clue how to repair it short of re-installing XP, and I'm not bothered. Life's better without...
Java: I downloaded the latest a couple of weeks ago and installed it with no other known problems.
Total mystery right now.
If you want a closer look at the mess at my end, the address is
http://films-n-things.co.uk/forums/index.html
The menu and other files are all in the same folder.
I've left the folder open for access - I don't suppose anyone else will even find it!
----------
Just one point: I have a Battleships game up and running. It works fine in Firefox but in Opera it doesn't show the grid lines, although everything else works!
I just wonder if I've got a diseased version of Java ???
Regards, and thanks for your efforts so far,
Peter.
5) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.173.--.--
Posted:
You have the Milonic menu in the page as well as the TwinHelix menu :).
Please remove the Milonic script as it'll be conflicting for page events, most likely. Also, adjust your pop_events.js src to "/forums/pop_events.js" if you have any more problems, and make sure the forum is loaded within your menu frameset.
Also, Java is not hte same thing as JavaScript -- JavaScript is built into browsers and independent of any separately downloaded Java version. The only thing they share is the first four letters of their name :).
Good luck - Angus.
6) PeterGroup: Guests IP: 213.78.--.--
Posted:
Whoops! I was fiddling around to see if the ill-effects were replicated with other systems. They were, and worse! And I forgot to remove the dodgy files before I turned in.
So, sorry! All references to s-o-else's system expunged.
Advice followed, and nearly there.
The menu drops down over all pages but the font style in the drop-down menus goes haywire. If I use pop_style.css in the template.pl file data, then the menu fonts go haywire. The effect on other pages is hideous.
Some of them use class1.css to control layout, so using pop_style.css is obviously out.
So, I combined the essential elements from class1.css annd shovelled them into pop_style.css, named the result forum.css and the system worked, barring the drop-down menu items. The top horizontal menu is unaffected.
So near and yet so far... Any ideas? I'm afraid I'm a novice at style sheets.
Otherwise, thanks for your help so far, and I still think the script's brilliant.
7) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.173.--.--
Posted:
Edit and merge the CSS files; you might need to make the menu CSS more specific, and/or remove effects like hovers from the forum CSS.
- Angus.
8) PeterGroup: Guests IP: 213.78.--.--
Posted:
Various conflicts identified following your advice - it's getting there!
I seem to be unable to persuade the menu to drop down when using any PHP generated page, but I'm working on and around that.
The Topic Settings have turned up, so everything is now comparatively calm.
Many thanks, bith for your help and a superb script!