In Firefox 3.6.16

I have an Event.observe('ajzip', 'keyup', cities); and the first line of
which tests to see if I have 5 digits entered in the zip code field and if
so it makes an ajax call... works great in IE.
When I press and release a key, my function "cities" gets called, it tests
the length of zip and then jumps into prototype.js on line 4064 where it
attempts to execute the following lines:

 1) getValue: function(element) {
  2)  element = $(element);
  3)  var method = element.tagName.toLowerCase();
  4) return Form.Element.Serializers[method](element);
When line 1 gets called, element is set to "zip"; line 2 returns null and
line 3 throws an "Element is null"  error!

Like I said, this all works fine in IE.  Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to