'voltsters,
I have a page where some data is being loaded. If that data is not
loaded, I have to stop execution of a function, but I cannot figure
out how to exit out...let me show ya (easier than explaining)
This is what I got:
--------------------
function init()
{
checkData(); // <-- checking to see if the data is present
statements
statements
statements
}
function checkData()
{
if(the data is not there)
{
hey, you have no data!
return false;???
}
}
so the function init() is calling checkData() to see if its there. If
it is not available, I want to STOP executing init(), and exit
altogether.
What I can't figure out is how to pass "false" back to init() from
checkData so I can test on it and use "return" to back out.
Tom
=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com