PDA

View Full Version : error in an example in JSKit site...


maya90
02-15-2010, 09:51 PM
get error on this script:
http://www.javascriptkit.com/javatutors/selectcontent2.shtml

if I put JS code in <head>.. as soon as I load pg (and when call function):

document.classic is undefined

in the real world JS code should be in a separate js file, linked to from <head>, no??? ;-)

thank you..

maya90
02-15-2010, 09:52 PM
don't know why url didn't print right, trying again:

http://www.javascriptkit.com/javatutors/selectcontent2.shtml

maya90
02-15-2010, 09:55 PM
WHY DO URLS NOT POST COMPLETELY AS PASTED? this is not very useful.. how then do you refer to an example in the site???

ok, so here is "breadcrumbs" for example in question:

Home -> JavaScript Tutorials -> Changing Select element content on the fly

sub category:

Creating a 2 level interdependent select list

oh brother.. what a pain....