Re: How to make a method universal
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: How to make a method universal

From: [on] <switchable@gmail.com>
Date: Tue Apr 11 2006 - 07:31:56 CEST

Flic wrote:
[snip ... old quotes]
>
> The code did indeed give me ideas and I modified it to fit my code.
> While it works for the first item it doesn't work for the ones after,
> coming up as 'value' is null or not an object.
>
> I've uploaded my code so you can see what I am trying to do, it can be
> found at:
> http://airraid.mancubus.net/flic/experiment/necklaces.html
> i didn't upload the pictures for the page hence them not displaying.

In your HTML you have 5 Forms.
Though they look the same, they aren't

The first one has (correct):
<select name="os0" onchange="colourCheck(this)">

The other 4 has (incorrect):
<select name="os0" onchange="colourCheck(this.selectedIndex)">

Make them the same and the script should basically work.
Received on Mon May 1 04:54:32 2006