SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Hybrid View

  1. #1
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Any other ways?????

    Is there another way of adding more pages to a website without telling the previous website that new pages have been added?
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  2. #2
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you elaborate?

    Do you mean that they index page spots that there's a new .html file in the current directory and adds a link to itself to reflect it?


    Andy
    From the English nation to a US location.

  3. #3
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    thats exactly what I'm saying

    Yep, you got it
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  4. #4
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    sorry,

    I can't seem to be able to check for html documents, but I can for .gif images.(bu I have a problem with stack overflow)

    If you know a way of checking for html files that will be cool.

    Maybe in can be done with this XML. I have only had a small look at it.
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  5. #5
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm surprised that you can even do it for gifs as I didn't think Javascript was capable of interogating a directory structure. I'd be interested in more info on that and I'll be keeping an eye on this thread in case there is a way of doing it with HTML files.

    I would have simply created an array of page names and used a function to display the links, but that would mean manually adding pages to the array.

    PHP would be able to do this easily wouldn't it?


    Andy
    From the English nation to a US location.

  6. #6
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    What I've done so far....

    At the moment I check for an image, that has a number for a name, ie 5.gif. then it brings in the corresponding .html file 5.html, which is only a small peice of data and a .js link for building the page. The picture and the data are the main parts of the page, with a few pics put in with the .js

    Using XML...
    Maybe I could check that 5.xml has loaded by checking if the first bit of data, and making sure it doesn't equal error, null or ""

    Any ideas will be greatly appreciated.
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  7. #7
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    I have a tester page up.....

    You can see what I mean with this VERY basic program tester1

    Click on the small pic on the RIGHT of the three, which will replace the big pic, and the data for the new pic comes in on the right. Keep clicking, and you will eventually come to the stack problem.

    or you can click the small pic on the left to go through them the other way.

    You will need to stop when you cannot see a small image either left or right of the bic pic as I haven't put the finishing touches in.

    You get the jist of it?
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  8. #8
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    sorry....here....

    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  9. #9
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think the link above should be this but I get the idea.

    I've not found anything that'll solve your problem yet, but I'll keep looking.


    Andy
    From the English nation to a US location.

  10. #10
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    NO STACK ONLINE!!!!!!

    It works onlinel.......

    just dont go over 21.html, there's not an image or .html named >21

    it will keep looking though........

    and previous was 12, thats 9 apart, usual stack proble would appear at 20!!!!
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if


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
  •