Results 1 to 4 of 4

Thread: Adding HTML to an include once it's been loaded.

  1. #1
    Join Date
    Apr 2006
    Posts
    205
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Smile Adding HTML to an include once it's been loaded.

    Hello,

    Imagine a menu on a page called "bob.html". One of the links in the menu goes to the very same page, "bob.html".

    I want the Bob link to have a class callled "selected" but only on the Bob page. Not on the other pages on which the menu appears.

    The problem is the menu is being called from an external ASP file.

    So I'm looking for a script that will add "class='selected'" to the relevant link after the HTML from the ASP has arrived.

    Make sense? If not please let me know.

    Peace.

    PS. I started another thread about this in the ASP section but didn't get any response. I hope I'm not breaking the rules by starting another thread but I thought maybe there's a javascript or other scripting solusion that I'm overlooking.

    Thanks for any help.

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    I don't know much ASP, but I think using if's and else's would do.

    Sorry you didn't get a response last time, not many people do know ASP in this forum, unfortunately.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

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

    Default

    PS. I started another thread about this in the ASP section but didn't get any response. I hope I'm not breaking the rules by starting another thread but I thought maybe there's a javascript or other scripting solusion that I'm overlooking.
    You are -- you should post in the original thread, and if a Javascript solution comes up one of us moderators will move it for you. Still, no harm done.
    not many people do know ASP in this forum, unfortunately.
    jscheuer1 had a look at it at one point, I don't know how far he got.
    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!

  4. #4
    Join Date
    Apr 2006
    Posts
    205
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the responses...
    I'll get myself back to the original thread.

    Peace!

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
  •