Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Payooo] JavaScript content sharing

Quote Reply
Re: [Payooo] JavaScript content sharing In reply to
Hi,

I created a category page in Pagebuilder (you need the latest version of the plugin)

page name: freefeed
buildname: feed.js
MIME type: application/x-javascript
Dynamic: Yes

Template:
Code:
<%-- JAVASCRIPT FEED FOR TOP 5 LINKS --%>
<%loop links_loop%>
<%if row_num < 5%>
document.write('<a href="<%db_cgi_url%>/page.cgi?g=Detailed/<%ID%>.html&d=1" target="_blank"><%escape_js Title%></a><br>');
<%endif%>
<%endloop%>

then you can get the 5 top links from any category using:

Code:
<script language="JavaScript" src="http://yoursite/cgi-bin/links/page.cgi?page=freefeed&category=xx"></script>

where xx is the number of the category you want


Cheers
Klaus

http://www.ameinfo.com
Subject Author Views Date
Thread JavaScript content sharing klauslovgreen 2884 Mar 5, 2003, 2:29 AM
Thread Re: [klauslovgreen] JavaScript content sharing
klauslovgreen 2779 Mar 5, 2003, 4:50 AM
Thread Re: [klauslovgreen] JavaScript content sharing
Payooo 2778 Mar 5, 2003, 12:50 PM
Post Re: [Payooo] JavaScript content sharing
klauslovgreen 2751 Mar 5, 2003, 1:26 PM
Thread Re: [klauslovgreen] JavaScript content sharing
webmaster33 2819 Mar 5, 2003, 5:51 AM
Thread Re: [webmaster33] JavaScript content sharing
klauslovgreen 2755 Mar 5, 2003, 6:05 AM
Post Re: [klauslovgreen] JavaScript content sharing
webmaster33 2751 Mar 5, 2003, 6:14 AM