...

View Full Version : Check if a recordset exists



jason_kelly
01-05-2012, 09:10 PM
Hello,

Quick question for y'all,

Using javascript coding, how can you check if a recordset exists?

if (rs) { alert("yup the rs is active alright") }

this does not work,

Any ideas?

thanks,

Jay

Old Pedant
01-05-2012, 09:51 PM
What *kind* of recordset?

Where did it come from?

That code you showed would only check if the variable is null or not, so even if (example) rs == 7 or rs == "wham" you'd see the message. Not too useful.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum