Jump to content

Function Returning [Object]


addicted

Recommended Posts

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,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...