Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorastatic
    • CommentTimeDec 25th 2005
     permalink
    If I have one page, such as index.shtml, and there are links on that page like news, work, and archives. Is it possible to make those links load dynamic text?
    I have been using <!--#include virtual="news.txt" -->, which imports the news.txt file into my page, but I would like it to replace news.txt with work.txt when you click the apropriate link.
    Also, should I not be using .shtml, I don't know anything about .xhtml.
    • CommentAuthorGustavs
    • CommentTimeDec 25th 2005
     permalink
    You should use PHP.
    • CommentAuthorastatic
    • CommentTimeDec 26th 2005
     permalink
    Do I have to use iFrames to get what I am looking for though?
    Thats what I was previously doing, but I don't like the different pages loading in an iFrame.

    thanks for your response
    • CommentAuthorastatic
    • CommentTimeDec 28th 2005
     permalink
    http://astatichosting.5gigs.com/test/news.php

    How would I go about loading different .txt files when you click on a link.
    Such as load shows.txt and have it replace news.txt when you click on shows?
    • CommentAuthorastatic
    • CommentTimeDec 30th 2005
     permalink
    I did it, not exactly what I wanted. Instead of loading the text and using a php replace string I just had all the text already imported and the divs hidden. This way it wouldn't take as much script or as long to load. So the whole site is on one page, after seeing it completed Im not sure if I will use it or not but I accomplished what I wanted so thanks for the help.

    Heres the link if anyone is interested:
    http://astatichosting.5gigs.com/test/footer.php

    As you can see I have an issue with the footer in firefox but ill take that to the footer stick topic. : )
    • CommentAuthorjjafuller
    • CommentTimeJan 1st 2006 edited
     permalink
    As an alternative to preloading all the page content. You can use AJAX. Basically, you would have the links make the javascript calls to a php script that grabs the text from your data files. Then, you just dump the code into the DIV.
Add your comments
    Username Password
  • Format comments as (Help)