The Clockwork Mansion

The Grand Hallway => The Outer Fortress => Topic started by: Destina Faroda on September 13, 2005, 05:28:29 PM

Title: Something I learned today
Post by: Destina Faroda on September 13, 2005, 05:28:29 PM
If you're preloading images with Javascript, you have to make sure all the other images on your page, even those that have nothing to do with your Javascript code, load, or else the preload will never finish.

Don't ask me why this happened.  It makes no sense to me that something not even related to the Javascript would affect its execution. :erk
Title: Re: Something I learned today
Post by: Darkmoon on September 13, 2005, 06:35:14 PM
hat's the beauty of javascript: it sucks.
Title: Re: Something I learned today
Post by: Achirio on September 13, 2005, 07:54:03 PM
And not only that, it also adds that this particular javascript must have had extremely bad coding if it affects the est of the page.
Title: Re: Something I learned today
Post by: Destina Faroda on September 13, 2005, 08:01:07 PM
Now it works in Firefox but not IE...so many browser troubles.  It'll take me another four days to figure this out.

Stupid "document[...] is null or not an object" error

Update:  Okay, I figured out the answer in under four days.  I found it in less than four hours, amazingly enough, but I feel compelled to say what the answer is not.

Numerous sites say the changeImages function as set up by Adobe ImageReady is wrong.  However, this generated code is correct.  Some site say the "name" attribute is missing, but it was there.  And some sites say one passes too many or too few arguments when calling the function in the body of the HTML, but I checked that every instance not only passed the right number of arguments (two) but the right ones (image name and the new location of the image).

The answer is that Internet Explorer and Javascript don't like pure numbers inserted as "name" values.  It has to contain both letters and digits (or maybe just letters) or else it won't work.  I would have thought it would read the name as a character string regardless of whether it contained numerals, but I guess I was mistaken.

Or as Enzo Matrix would shout, "Alphanumeric!"
Title: Re: Something I learned today
Post by: Darkmoon on September 14, 2005, 12:43:13 AM
Well I hate javascript for a number of reasons, not the least of which is that it doesn't work right in all browsers no matter what you do.
Title: Re: Something I learned today
Post by: Quientin on September 16, 2005, 12:52:48 AM
I hated javascript...... that class made me wanna drop to an audit.......

when you figure it out i have a job for you

take the pepsi challenge and get Fedora core 4 to work on an acer travelmate

Unix Killed My Inner Child
Title: Re: Something I learned today
Post by: Quientin on September 20, 2005, 07:46:35 AM
 mean it!!!!!

If you can understand javascript with out a problem... you can make unix work on my laptop.... help me.... lol
Title: Re: Something I learned today
Post by: Destina Faroda on September 20, 2005, 12:24:37 PM
I know a little UNix, but I'm not Unix expert.  All I know how to do is move around in directories.
Title: Re: Something I learned today
Post by: Mageknight Locke on September 21, 2005, 04:10:26 PM
microsoft used a load of lobotomised tortoises to program their java, so the source code has a turd load of errors and useless cack in it, its soo rubbish that legal action was taken against microsoft forcing them to stop production of it. to solve your probelm and prevent similar ones just use firefox and sun microsystems java, better by 10 fold and prevents idiot exploiter from compromising your computers security