In normal javascript, I can check either
if (i == undefined) or if (i === undefined)
or the "typeof"
however, within facebook, it will have the api_key append as the prefix in undefined.
i.e. it will become
if (a12345_i == a12345_undefined)
which is NOT undefined
so, what can I do to find out the variable is undefined or not?
Well. Thanks for all answers but I think I should emphasize one thing.. I have no problem to detect the null value in normal JS environment. The probem I face is when it is with Facebook as a FBML application.