D
Darko
The solution is ready! As genius, as simple... May not be the most
perfect but may work for me fine.
So, instead of copying or cloning, I'd just use that object itself and
append it to a new form:
<input onchange="doit(this)">
function doit(obj){
var go = new dothat(obj);}
function dothat(obj){
//code is a sample........
var input = obj
this.form = document.createElemet("form")
this.form.appendChild(input)
//...........
this.form.submit()
}
Note: the input disappears from the page, but I would hide it anyway
because I do not need it. I can replace with loading progress image
and then a link when the file is uploaded.
What do you think? Would this cause any issues?
Thanks
I guess not. I like it. It's just not acceptable in general, when one
doesn't want it to disappear from
the page, but in cases where you'd hide it anyway, which is the
majority I think, it should work.
Indeed it is simple, and indeed we didn't think of it (maybe because
we didn't presume you wouldn't mind
it disappear, so it was subconsciously excluded from the list of
available ideas). Good work.