Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Contractable Headers Script

  1. #1
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Contractable Headers Script

    I've been using the contractable headers script at http://www.dynamicdrive.com/dynamicindex1/navigate2.htm
    very happily for about 2 years now - on a frames page.

    I have decided to switch to a non frames site and would like to use the same headers, however, when I try to use the script as an include page (within a cel on the page) it doesn't work. It stays open and all the formatting does not work.

    Within it's own page, it works very nicely, but once I include it in a cel on a different page, it doesn't. Can anyone offer any simple help here (not very technically inclined)

    Thanks
    Angela

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Some of it needs to go in the head.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Some of what? What am I missing here?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The script. I'm presuming you're just including the whole page. This won't work, as you need to put a substantial amount of the script in the <head> of the page.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah, it took me a few minutes but I figured out what you were talking about. Problem is I'm using css too and I'd rather call the script then have it on every page. which is one of the reasons for having it in an include cel as opposed to part of the page.
    Thanks for your reply though. Hopefully it will all get figured out at one point or another. One of the problems is I'm not proficient in any of it so you know what they say ...a little knowledge is dangerous.
    I may be asking a lot of questions - hope you don't mind.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I suggest you put the head part in one include, and the body part in another, and include them both.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hmmmmmm If I'm understanding that right... That would mean double pages for all the body pages which is over 100
    What I'm trying to have is a left navigation (the collapsable header script) which is included on all of my product pages. There will also be a right navigation but it wont be utilizing the script.

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    hmmmmmm If I'm understanding that right... That would mean double pages for all the body pages which is over 100
    You're not. You have only the code for the script that needs to go in the head in one page, and only the code for the script that needs to go in the body in another page. Then, you include these two pages on each of your "body" pages.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK.... I'm still not sure I understand but........ letting go of the css it seems that the collapsable script will not work unless it is in the page.
    In other words.... leftnav.htm is where the collapsable header script is (I can't call it from a <script src > it wont work. It has to be in the leftnav.htm page

    So now I put it in the lefnav.htm but the leftnav.htm is an include in the left most cel of a table on index.html The script wont work. The only way the script will work is if I put it in on index.html this is what needs to be changed. The script should only be in leftnav.html

    Again it works fine when it's a frames site but it's not working with a non frames site when used as an include. Is it not going to work no matter what or is there something simple that I'm missing?

    I have product scripts and add to cart scripts that will be on each page so in order not to cause a conflict and also not to make my pages cluttered with tons of code I really need this to work.

    Thanks

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Is it not going to work no matter what or is there something simple that I'm missing?
    As I've said, the bit that needs to go in the <head> of your page needs to go in the <head> of your page. If you're using a single include to include the whole thing, this isn't going to happen. You need two included pages: one for the part in the head, the other for the part in the body.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •