Javascript, Links as "objects"?
Results 1 to 3 of 3

Thread: Javascript, Links as "objects"?

  1. #1
    Senior Member
    Join Date
    Oct 2005
    Posts
    106

    Question Javascript, Links as "objects"?

    I am designing a site for my friend and he wants a pseudo blog thing that's "better than a blog but isn't itself a blog". So I have a right hand column with all the articles he's written, but that would appear in every page. Is it possible to make a javascript application that "loads" the links onto that page, so my friend will only need to add links to a "remote" javascript?

    That is to say, I would like to make an array of links that my friend can add on to; is this possible?

  2. #2
    Elite Hacker
    Join Date
    Mar 2003
    Posts
    1,407
    I would think it is. Just have a function that outputs the links, and save it as a .js. use a script tag with src=your.js and update the js file whenever you need to. Or did I misunderstand you?

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Posts
    106
    No, that's actually a better idea than mine. Just use document.write("<a href="source">LINK</a><br><br>"); right?
    "The Texan turned out to be good-natured, generous and likeable. In three days no one could stand him." Catch 22 by Joseph Heller.

    Buddies? I have no buddies...


    Give the BSD daemon some love (proud FreeBSD user)

Posting Permissions

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