Click Here!
Evrsoft.com
Article Sections: | Internet Marketing | Web Design | Web Development | Business | Internet and Businesses Online | Self Improvement |  
>> Home > Web Design > Content, Writing and Copyright

Syndicate your content using ASP

By Jonathan Malm
Posted Friday, August 13, 2004

An overview


This is an article to encourage webmasters to get some of their content out and about and realise the benefits of sharing it to enhance their sites traffic.

Do you know ASP? If so, it is easy to syndicate your content using a few JavaScript techniques. All you need to do is make an ASP page that will create HTML tags, such as this:
<%
Dim thehtml
thehtml = "content"
%>

You then would simply add this line:
document.write("<% = thehtml %>")

What this does, is output a JavaScript file, then all you need to do to get other sites to be able to use it, is give them this HTML text:
<script src="(http://sitename.com/nameofjscript.asp)"></script>

Then you have your syndicated content!

TIPS:
1. Make sure that the "content" section does not contain any quotation marks other than the first and last. For instance, if the output text was this:
Then he said, "Hahaha," deviously.

You would get a JavaScript error message.
Replace quotation marks with apostrophes.

2. Always add a line like this to the ASP page:
document.write("<a href='sitename'>Get more at sitename</a>")

3. Also, you can add a <noscript> section, just in case a user with an older browser visits the page containing the feed.

ex. <noscript>Get something at some page.</noscript>

This usually goes after the <script></script> tags, not between!

Copyright © 2000 Jonathan Malm, All Rights Reserved .

Author Information:

Jonathan Malm - J-(scripts.com)

 






Click Here!


 

.

  Articles are submitted to EDN and licensed from various content sites.
  To report abuse, copyright issues, article removals, please contact [violations (at@) evrsoft.com]

  Copyright © Evrsoft Developer Network. Privacy policy - Link to Us

Contact Evrsoft