SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Feb 2004
    Location
    Oregon
    Posts
    686
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    creating a javascript rss feed to html

    I am trying to do something like this site is doing

    http://www.rss-info.com/en_rssinclude-simple.html

    I have the iframe and php down but when I try the javascript one it doesn't display.

    The output is just this:
    Code:
    <script type="text/javascript" src="http://127.0.0.1/rss.php?int=js&winop=1&rss=http%3A%2F%2Frss.news.yahoo.com%2Frss%2Finternet&max=10&width=300&ifbgcol=FFFFFF&bordercol=D0D0D0&textbgcol=F0F0F0&rssbgcol=F0F0F0"> </script>
    I tried using header content-type as text/html but it doesn't make a difference. it is just blank. no errors no thing. anybody have an idea?
    success is not by chance, it is by choice.

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You mean the output of rss.php is blank, or the javascript output is blank?

    In case of php, the display of errors might be off and there are errors.

    In case of javascript, wrong forums.
    Saul

  3. #3
    SitePoint Guru
    Join Date
    Feb 2004
    Location
    Oregon
    Posts
    686
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no I use php to create the output. but I think I found my problem. in "php" you have to use document.write("") for the javascript part. It could go either way, either a php problem or javascript problem.

    I think I answered my own question. thanks
    success is not by chance, it is by choice.


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
  •