Hi
first of all I wish to thank mike for his great form plugin :)
letely I've been developing a sort of remote file manager using PHP,
MySQL and jQuery.
for seamless file uploads I've integrated Mike's form plugin in it,
and it works sweet.

but I noticed that there was a little problem. at some point in
developing the normal jQuery select() method stopped working
correctly.
I used that to simulate window's behaviour on actions like 'create new
folder', where you get something like an input with the text 'New
folder' selected inside. for example:
$('<input type="text" value="New folder" id="folderNew"/
>').appendTo('body').select();
the input appears, but the text inside is not selected.

after some tests I discovered that this was some kind of side effect
of having the form plugin included in the page.
so I took a look at the code, and I came out with this solution. I
added this at line #865

 else if (this.tagName.toLowerCase() == 'input') {
        this.select();
}

don't know if it's a valid patch though, or if I messed up something
else.
for now it seems to work, I just wanted to share, and have your
opinions.
thanks
andrea

Reply via email to