[jQuery] Re: Clone problem in IE...

2008-11-05 Thread Rafael Soares
I had a similar problem...
The difference is that I'm trying to clone the file input inside the same
document, just another, hidden, form.
I found a workaround, but I don't know if it'll work for you as well.

Since I was going to clear the form after the whole thing anyway, I decide
to do the inverse: append the original input to the new form, then clone it
and then append the clone to the original form.
It's kinda messy, but worked for me. Of course I'm doing this only in IE,
other browsers use the normal procedure.

Hope it helps.

Rafael Soares


On Thu, Jul 24, 2008 at 12:10, Marcus Eby [EMAIL PROTECTED] wrote:


 I just found out that cloneNode doesn't pass the value in a file field
 when being cloned from inside an iframe in IE.
 Apparently this is an IE bug, and I've tried over 15 different ways of
 trying to clone the object, then change the values, and update the
 values, and even changing them before they get cloned, but nothing
 works.

 After trying so many different options, and still having no value
 being cloned, so that the function won't work, I have given up.

 If anyone else has had this problem and solved it, please post.

 After spending years hating IE, this has definitely helped me to start
 thinking about FF only site-app design. grin

 Thanks

 Marcus



[jQuery] Re: Clone problem in IE...

2008-11-05 Thread Choan Gálvez


On Nov 5, 2008, at 6:53 PM, Rafael Soares wrote:


I had a similar problem...
The difference is that I'm trying to clone the file input inside the  
same

document, just another, hidden, form.
I found a workaround, but I don't know if it'll work for you as well.

Since I was going to clear the form after the whole thing anyway, I  
decide
to do the inverse: append the original input to the new form, then  
clone it

and then append the clone to the original form.
It's kinda messy, but worked for me. Of course I'm doing this only  
in IE,

other browsers use the normal procedure.


You are not alone. I had to do just the same. Nasty.







Hope it helps.

Rafael Soares


On Thu, Jul 24, 2008 at 12:10, Marcus Eby [EMAIL PROTECTED] wrote:



I just found out that cloneNode doesn't pass the value in a file  
field

when being cloned from inside an iframe in IE.
Apparently this is an IE bug, and I've tried over 15 different ways  
of

trying to clone the object, then change the values, and update the
values, and even changing them before they get cloned, but nothing
works.

After trying so many different options, and still having no value
being cloned, so that the function won't work, I have given up.

If anyone else has had this problem and solved it, please post.

After spending years hating IE, this has definitely helped me to  
start

thinking about FF only site-app design. grin

Thanks

Marcus