Testing for 'undefined'
Monkey Forums/Monkey Programming/Testing for 'undefined'
| ||
I'm using mnet to retrieve my online highscores. If the server is not reachable, in HTML5 and android no empty string is returned, but 'undefined'. Not as string but as datatype (like NULL). How can I test for this? |
| ||
Volker, did you ever resolve this? I've got mnet returned an undefined value when it can't find the URL. How should that be handled? |
| ||
Xaron wanted to include my solution into mnet. As far as I can see there is a method GetResult() in mnet.Http Try this to receive a error string. My old solution is here: http://www.monkeycoder.co.nz/Community/posts.php?topic=1937#18408 |
| ||
Ah, thanks! I'll check out GetResult(). |