IE: error with Serializers[method] in getValue()

2 views
Skip to first unread message

JulianBuss

unread,
Nov 16, 2007, 11:26:07 AM11/16/07
to Ruby on Rails: Spinoffs
Hi,

Version: prototype 1.6.0
I'm using the $F function to get the value of a field. It works fine
in FireFox, but IE 6 and 7 are reporting "object does not support his
property or method" (translated from german).
In IE debugger it hightlights the line 3485:
---
return Form.Element.Serializers[method](element);
---

I searched the web, but this problem seems to be quite unique :-( Does
anyone have any idea?

Additional information:
1.) I include the prototype.js with this line:
---
<script language="JavaScript" type="text/javascript" src="/kunden/
comdok/die/openwebcms3.nsf/(ynDK_fileContainerByKey)/framework/$FILE/
prototype.js"></script>
---

2.) the call in which the error occurs is:
---
<input type="button" name="startsearch" value="Suche starten"
onclick="searchPublikation(document.SearchPub.query.value,
$F('author'), $F('series'), $F('lang'), $F('year')
)">
---

Tobie Langel

unread,
Nov 16, 2007, 11:33:23 AM11/16/07
to Ruby on Rails: Spinoffs

Are you calling $F from inside of a either a 'load' or 'dom:loaded'
observer?

If it's an inline script, is it placed *below* the elements you are
calling in the DOM ?

Regards,

Tobie

Tobie Langel

unread,
Nov 16, 2007, 11:36:22 AM11/16/07
to Ruby on Rails: Spinoffs
Sorry,

I should have read your post more attentively before replying.

What I meant to check was whether or not the elements you are calling
do exists.

Is their id unique ?

Best,

Tobie

JulianBuss

unread,
Nov 17, 2007, 3:41:08 PM11/17/07
to Ruby on Rails: Spinoffs
yes the elements exists, since it works fine in Firefox. Their ID is
unique.
Thanks for your help!
Reply all
Reply to author
Forward
0 new messages