Help with Javascript
Posted: Mon 14 Mar 2011 10:39 am
I use js to update my current data webpage, some data on for today, on my iphone pages and also a banner on my website from the realtime.txt.
Is there some way to eliminate the garbage that occurs when the data is not available to the js. It i s easy to define the initial message before the data is read, but on the second and subsequent rereads, if the data is not read I get all sorts of messages including "undefined", "found", "undefinedthis".
Any ideas how to either get it to display previous data, waiting, unavailable or revert to previous data
Is there some way to eliminate the garbage that occurs when the data is not available to the js. It i s easy to define the initial message before the data is read, but on the second and subsequent rereads, if the data is not read I get all sorts of messages including "undefined", "found", "undefinedthis".
Any ideas how to either get it to display previous data, waiting, unavailable or revert to previous data