Results 1 to 6 of 6

Thread: One UL for a site linked to a file?

  1. #1
    Join Date
    Jun 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default One UL for a site linked to a file?

    I'd like to have one list that I can change so that if I add a page I won't need to go back and change every UL on every page.

    Is that possible without having to revert back to javascript?

    Could I like put a division container and have a link to a text file or something along those lines?

  2. #2
    Join Date
    Jun 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No one else has any ideas...
    I've looked all over the net and can't seem to find a good answer?

    What do you think of using an iFrame?

    <iframe src="your_Link_list.html" name="A" scrolling="no" width="575" height="250" frameborder="0">
    </iframe>

    Then the list can be targeted by the Iframe you could put this in the header for the links:

    <BASE TARGET="_parent">

    You think that would create any problems?

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I'm not familiar with the <base> tag, sorry. That may work just fine, but I don't know it.

    You can't really repeat parts of a page using just html. Using an iframe will be kinda weird.... yes, it would work, but it's kinda awkward and not too customizable.

    You could use javascript or php, etc. but you do need some type of programmable language, I think. All you really need is a variable, then to display that variable at specific parts.
    Better yet, with PHP (yes javascript, maybe, too) you could actually include the data of a text file and display that.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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

    Default

    The iframe would work, but a far more elegant solution would be to use a server-side language such as PHP.

    Don't use Javascript.
    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
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If you don't have access to a server side language, javascript might help. But if you can use php (or even asp), that would be the best solution.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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

    Default

    Don't use Javascript.

    If you can't use a server-side language, stick with the iframe.
    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
  •