Victory Road  

Go Back   Victory Road > General > Technology
FAQ Community Today's Posts Search

Notices

 
 
Search this Thread
  #1  
Old December 26, 2008, 02:45:24 PM
SpaceMan++'s Avatar
SpaceMan++ SpaceMan++ is offline
Zoroark
 
Join Date: Aug 2008
Location: BC
Posts: 288
Default undefined

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:

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.
Attached Thumbnails
Click image for larger version

Name:	undefined.png
Views:	377
Size:	274.0 KB
ID:	159  

Last edited by Cat333Pokémon; December 30, 2009 at 12:23:44 PM.
  #2  
Old December 26, 2008, 11:50:56 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: undefined

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  
Old December 27, 2008, 10:31:03 AM
SpaceMan++'s Avatar
SpaceMan++ SpaceMan++ is offline
Zoroark
 
Join Date: Aug 2008
Location: BC
Posts: 288
Default Re: undefined

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  
Old December 27, 2008, 01:17:40 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: undefined

Heh, I've seen that "undefined" on YouTube when uploading videos before. And the new code does produce "NaN".
  #5  
Old April 5, 2009, 04:57:21 PM
isbragg's Avatar
isbragg isbragg is offline
Volcarona
 
Join Date: Mar 2009
Posts: 693
Default Re: undefined

The Buizel.Net Jukebox has NaN. Refresh any page while the Jukebox is open.
Attached Images
File Type: bmp buizelnetNaN.bmp (430.2 KB, 374 views)

Last edited by Cat333Pokémon; December 30, 2009 at 12:25:07 PM.
  #6  
Old April 15, 2009, 08:36:14 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: undefined

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.
 

Forum Jump


All times are GMT -8.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Victory Road ©2006 - 2024, Scott Cat333Pokémon Cheney
Theme by A'bom and Cat333Pokémon