Victory Road Archive

You are viewing an archive of Victory Road.

Victory Road closed on January 8, 2018. Thank you for making us a part of your lives since 2006! Please read this thread for details if you missed it.

Technology → undefined

Page 1 of 1

1. SpaceMan++ said on December 26, 2008, 03:45:24 PM (-08:00)

Zoroark
288 posts

When I was browsing a Web template site, I found a funny bug: The buttons are all undefined.
undefined is a data type in ECMAScript where the variable is not defined or does not exist, the following code makes variable x undefined:

Code:
var a = new Object(); //variable a is now an object
a.b = 12; //a has b now, it's 12
var x = a.d; //a doesn't have property d, so it's undefined.
In that Flash template, the developer didn't set a databinding source so it's undefined.
Also, NaN stands for Not a Number

Type the following code to the browser produces NaN:
Code:
javascript:alert(0 / 0)
This one is NaN:
Embedded image
Normally, it should bind a number data, however, the data source is broken so NaN is produced.

Let's find more screenshots of NaN and undefined.

1 attached image
undefined.png

2. Cat333Pokémon said on December 27, 2008, 12:50:56 AM (-08:00)

Administrator
10,307 posts

Undefined, not-a-number, name output, and general errors are some of my favorite types, especially when it's on a professional program in beta stage--or even better, the finished product!

And

Code:
javascript:alert(1 / 0)
gave me "Infinity" in IE.

3. SpaceMan++ said on December 27, 2008, 11:31:03 AM (-08:00)

Zoroark
288 posts

That is the punishment for making a Web template that is very inaccessible.

Code:
javascript: alert(0 / 0)
produces NaN.
Also, parseInt a value that contains no number will produce NaN.

Even YouTube has undefined error
http://www.dslreports.com/speak/slidesh ... VC1EU0w%3D

4. Cat333Pokémon said on December 27, 2008, 02:17:40 PM (-08:00)

Administrator
10,307 posts

Heh, I've seen that "undefined" on YouTube when uploading videos before. And the new code does produce "NaN".

5. isbragg said on April 5, 2009, 05:57:21 PM (-07:00)

Volcarona
693 posts

The Buizel.Net Jukebox has NaN. Refresh any page while the Jukebox is open.

1 attached file

6. Cat333Pokémon said on April 15, 2009, 09:36:14 PM (-07:00)

Administrator
10,307 posts

Quote:
Originally Posted by isbragg
The Buizel.Net Jukebox has NaN. Refresh any page while the Jukebox is open.
[attachment=0:3qrngvwg]buizelnetNaN.bmp[/attachment:3qrngvwg]
I still need to find out why only four songs appear on the list. I uploaded 10 in the folder (following standard naming conventions for Internet), but only 4 appeared.

Page 1 of 1

User List - Contact - Privacy Statement - Lycanroc.Net