|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Syndication question
Hello,
I have question regarding the "Setting Up An Automated Content Feed From Your Web Site" article. (URL t.php%3FarticleId%3D53&prev=/search%3Fq%3DJavaScript%2Btutorial%2Bsyndicatio n%26site%3Dswr%26hl%3Den%26lr%3D%26ie%3DUTF8%26oe% 3DUTF8) Here is what I am trying to do, I would like to syndicate my article to other web sites, such that when the user see my article, they will see the look and feel of the site they are on (and not the look and feel of my site), even thou the article will be fetched from my server. Now I can easily do this my letting the webmaster of the site embed <script> tag pointing to my article. Here is my problem. I have links from one page to another (as the articles are multi page long). When a user clicks on the link, they are no longer on the web site where the originally saw the article. Instead they are on my site. How can I avoid this? Thanks Ray |
|
#2
|
|||
|
|||
|
Hi Ray,
Probly the best solution would be to grab the code using JavaScript blocks. You could also just include your article in an iframe with a plain background which the other site can include on their pages. On your server, you can create a PHP script that outputs JavaScript code. From there on the other persons site, just use <script language="JavaScript" src="htttp://www.yoursite.com/article_as_javascript.php?articleId=xxx&page=yyy"></script> On article_as_javascript.php, you should output document.write JavaScript functions containing the content of the article. Remember to replace ' with \' and " with \" You might also want to setup a content sharing/xml setup. See http://www.devarticles.com/devarticles_recent.xml for some ideas ![]() |
|
#3
|
|||
|
|||
|
Hi Mytch,
Thanks for the reply. I tried the iFrame, however, it does not work in Netscape, only on IE. Also, it breaks up the page and does not look very good, if the other site have their own content around my article. With regards to your second solution, I think that is closer to what I was looking for, unfortunately, I have not been able to get it to work. I know Digital Windmill (URL) is using that to deliver content from Open Directory Project, but have not been able to replicate that. What they are doing is this: Webmaster embed the following code on their page: <script language="javascript" src="http://www.digitalwindmill.com/direct/directory.asp"> </script> The directory.asp file actually calls the following file: document.write('<script src="http://search.anaconda.net/syndw.pl?&&jsbase=' + location.href + '"></script>'); So far it seems like they are doing what you suggested (is that correct)? I tried to replicate that, but when I click on the link, it always goes to my web address (not the address of the other site, but digital windmill has been able to make it work). Any suggestions as to what I may be missing? I will take a look at the content sharing XML document as well. Thanks again. Ray |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Syndication question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|