On Thursday 06 April 2006 08:02, Francisco Calderon wrote:
> hello there, im having a little problem with Internet Exploiter, im doing
> this:
>
> //// CODE ////
> var m = $('XYZ').cloneNode(false)
> m.setAttribute('id', 'XYZ_2');
> m.value = '';
> var onblur = "alert('hola');";
> m.setAttribute('onblur', onblur);
> y6.appendChild(m);
> //// CODE ////
>
> where "XYZ" is an input text and y6 is a TD cell, this works perfectly in
> firefox, but i dont have idea why doesnt work in IE, any clue??
there could be a couple of issues.
IE might not like to use setAttribute to change the value of the 'id'
attribute, so you might have to just do something like:
m.id='XYZ_2';
it also might not like trying to add a td to a tr.
putting a try/catch around the whole thing might provide useful information.
-Jeremy
--
Jeremy Kitchen ++ [EMAIL PROTECTED]
In the beginning was The Word and The Word was Content-type: text/plain
-- The Word of Bob.
And the lord said unto John; Come forth and receive eternal life. John came
fifth and won a toaster.
pgp8v1LjPakNI.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
