Click to See Complete Forum and Search --> : quick IE "Object dosen't support this property or method question"
lamdk
02-07-2008, 08:20 PM
why isnt this compatiable with IE?
var stuff = document.getElementById(form_dom_id).serialize() +
'&body=' + escape(theMessage);
form_dom_id is just a string
theMessage is a larger string containg HTML and stuffs
cgishack
02-07-2008, 08:41 PM
Does a 'form' have a serialize() method?
lamdk
02-07-2008, 09:52 PM
ohh yeah thats right it dosent duh
Form.serialize() is a Prototype extension...
i think i found the answer yay
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ec21656d4cb656ef/56ae32eabf55850c?lnk=gst&q=Form.serialize+internet+explorer#56ae32eabf55850c
"A common problem in IE is that unlike other browsers, it doesn't
extend Elements with the Prototype functions once at page load (as
Firefox does, for example). Instead, each element has to be extended
before you use Prototype's mixins. This is handled transparently by
the $() function. "