Click to See Complete Forum and Search --> : onmouse over set focus


ashflash
05-08-2003, 11:56 AM
Hi all,

I have a text box in the top frame of a frame set which seems to lose focus once the entered text is submited as the info is displayed in the middle frame.

Thought I`d come up with a solution by doing an onmouse over set the value of the text box to "" but just tried it some users and they didnt know what was happening , confused the hell out of them. Have tried to set teh focus back but couldnt get it to work.

Any ideas ...

Take a look at the site if you like at http://195.26.0.53
Its the open search field top right.

Any other comments also welcome

cheers
ashley

Jona
05-08-2003, 12:06 PM
<input type=text onmouseover="this.focus()">

Is that whath you want? Or do you want it to focus on the text field when you click the submit button?

ashflash
05-08-2003, 02:05 PM
Tried that already, but the text box just doesnt seem to be acting like it should, even when its got focus you cant select the text and cant click in the middle of the text. Perhaps its not even a focus problem. Have you been to the site and had a play with it?

stumped
ashley

Jona
05-08-2003, 02:15 PM
Well, it's in HTML all right. But I'm still not 100% sure what you want to do.

ashflash
05-08-2003, 02:57 PM
Just wanna make it act like a normal text box should where you can select the text and click anywhere in the text. Sometimes it loses focus and the only way you can regain it is by subitting(search) then it will allow you back in the box. The onmouse over was just an idea to give it back focus when it gets to this state.

Jona
05-08-2003, 03:00 PM
That's odd. Just tell your users to right-click and choose, "Select-All." :p