Simple Test failing on FF working on IE, weird uh?

Hi, I'm trying the Event.Behavior library, and in my first try it fail on FF.

Here is the code:

My First Event.Behavior H C Header Content with(Event.Behavior){ show('header').when('divid').is('H'); show('content').when('divid').is('C'); }

It works fine in IE but fails on FF with the following error on Firebug:

$(this.noun.subject) has no properties

This is the sequence:

(no name)("change")eventbehaviour.js (line 232) bind()prototype.js (line 102) (no name)("change")prototype.js (line 429) _each(function())prototype.js (line 654) each(function())prototype.js (line 428) attachObserver(true)eventbehaviour.js (line 235) is("H")

Posted April 5th, 2007 at 5:22pm by Alex Hernandez

You need to use select id= not select name= in this case.

Posted April 5th, 2007 at 5:56pm by ryan

Solved!.

I just added an ID attribute to my select field and it works now.

.::AleX::.

Posted April 5th, 2007 at 5:57pm by Alex Hernandez

Login or Register to Post