I find with IE of any flavor, that it helps a lot to break this up into separate steps, rather than the lovely one-liner you have here.

var f = new Element('form'); // IE may be having kittens with form as a variable name //maybe insert it somewhere in the page, too, before you start working on it further
$('someDiv').insert(f);
f.hide(); //same as setStyle('display:hidden');
f .writeAttribute ('id ','MSO_LOGON ').writeAttribute('action','#').writeAttribute('method','post');

I'm not sure that's absolutely required, but whenever IE starts acting up with new Element, that's the first thing I start doing. Test to see how much you can get away with stashing in the initial new Element call, also test putting quotes around your keys in the hash, style out in the open like that seems to be the critical factor.

Walter

On Aug 24, 2011, at 9:38 PM, kstubs wrote:

So this:
var form = new Element('form', {id:'MSO_LOGON', action:'#', method:'post', style:'display:none'});

Renders this:
<FORM id=MSO_LOGON style="DISPLAY: none" action=# method=post _prototypeUID="12" undefined="display:none"></FORM>


Notice the undefined above.

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/t3-L4Ssy1OgJ . To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en .

--
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 prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to