|
Joined: Apr 2003
Posts: 9
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 9 |
Does anyone have any experience with using a javascript dropdown menu (I'm using the code from brothercake.com) and inserting that code into ubbthreads using the header and footer inserts? My webpage is at www.jetcareers.com if you'd like to look at the code I'm trying to work with. Doug Taylor jetcareers.com
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
welcome doug, that's a nice menu you have on the front page. How is it not working for you? Did you also insert the necessary pieces into your headerinsert file?
A lot of people have problems with the menus not working because they do not use base url's to call the scripts from within their forums, and the forum looks for them in your threads directory. Make sure you use / as in:
<script language="javascript1.2" src="/resources/custom.js"></script>
and not:
<script language="javascript1.2" src="resources/custom.js"></script>
that would work on the front page, but not deeper.
|
|
|
|
Joined: Apr 2003
Posts: 9
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 9 |
Thanks for the response!
The menu works fine, but when I try and intergrate it with ubbthreads, I can't seem to tweak it to get it to work correctly.
|
|
|
|
Joined: May 2002
Posts: 17
Newbie
|
Newbie
Joined: May 2002
Posts: 17 |
In the header & footer, try giving it the absolute URL to the script, which would be. www.jetcareers.com/resources/menu.jsrather then just resources/menu.js Just my guess, HTH
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Yes, that should help. What happens when you try to add it?
|
|
|
|
Joined: Apr 2003
Posts: 9
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 9 |
No change really! The menu never loads.
I think if I had more control over how UBBT renders the HTML, I could probably get it to work correctly.
|
|
|
|
Joined: Mar 2002
Posts: 147
Member
|
Member
Joined: Mar 2002
Posts: 147 |
I have a very simular menu on my site and load the Javascript with no issues. You need to make sure your pointer to the .js is correct and inside the <body> tags.
|
|
|
|
Joined: Apr 2003
Posts: 9
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 9 |
Basically here's what I have to do, but I can't seem to make it work correctly:
I have to get the following, right above the < /head>: <script language="javascript" src="/resources/sniffer.js">< /script> <script language="javascript1.2" src="/resources/custom.js">< /script> <script language="javascript1.2" src="/resources/style.js">< /script>
and the following at the end of the < /body> tag:
< script language="javascript1.2" src="/resources/menu.js"></ script>
and the note says: "Whatever you do, do not put the include inside a table cell, a div or any other positioning element"
Aeigh!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Load the top parts in your headerinsert file.
Load the last line in your footer file at the very bottom.
|
|
|
|
Joined: Apr 2002
Posts: 141
Member
|
Member
Joined: Apr 2002
Posts: 141 |
I had the same problem with a dhtml script and solved it by putting all code in the generic header. Works for me!
Regards,
Ron.
Those who fail to read ask many questions:-)
|
|
|
|
Joined: Apr 2003
Posts: 9
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 9 |
Strange thing is, is that when I view the source, load it into my HTML editor and then "test" it, it works fine offline.
DOug
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
that is strange... I am not sure what the conflict might be - there might be some other javascript using the same variables and they are canceling each other out. hmmmmmmmm....
|
|
|
|
Joined: Apr 2003
Posts: 9
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 9 |
I'm more or less a java doofus, so I'm dumbfounded, naturally.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Have you removed the code from the forum? I wanted to take a look and offer a guess or two. 
|
|
|
|
Joined: Sep 1999
Posts: 339
Kahuna
|
Kahuna
Joined: Sep 1999
Posts: 339 |
Yeah, same here... I don't see it in the code. 
Muhammad
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
He had it installed earlier, and looked correctly done at that time... I am not sure where the conflict is, it looked like a nice menu.
|
|
|
|
Joined: Apr 2003
Posts: 9
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 9 |
I got it working, but I need to rework some of the stylesheets to make it look consistent so I took it back down. Busy week!  I just copied my resources directory to the ubbthreads directory and it worked fine. It's kind of a riggged way of making it work, but it did.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|