Jump to content

addicted

Members
  • Posts

    2
  • Joined

  • Last visited

addicted's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Well this is becoming a big problem, I want to make it so you can view headlines from RSS feeds, but to do that I would need to use two functions, one to get the info from the server and the next one to put the returned value into the server, it is using Ajax. I tested the first function and that is working other then it is ruturning [object] instead of the virable. function cb_showheadlines(test) { return test; } function hlines(on,id){ thing=agent.call('','showheadlines','cb_showheadlines',id); document.getElementById(on).innerHTML=thing;} Here is the page,http://levade.homeip.net/addicted/sirtus/feedtronic2.phpI also tried it like this: function cb_showheadlines(test) { thing=test; } function hlines(on,id){ agent.call('','showheadlines','cb_showheadlines',id); document.getElementById(on).innerHTML=thing;} thanks,
  2. I am working on a site that uses simple AJAX to browse through RSS feeds, because I am using a API I needed to build some of it uneder the actual script to get it to appear in the right element, my problem is instead of returning the headlines it is returning [object], here is the part that is causing it, function cb_showheadlines(str) { //Should Output STR return str; } function hlines(on,id){ thing=agent.call('','showheadlines','cb_showheadlines',id); document.getElementById(on).innerHTML=thing;} Here is the page, http://levade.homeip.net/addicted/sirtus/feedtronic2.php
×
×
  • Create New...