PDA

View Full Version : Set Focus To The Search Text Box



rigsby
09-29-2008, 10:48 AM
Hi,

Great software.

Just a quick question, is it possible to automatically move the cursor focus to the search box using the code generated from zoom ?

Otherwise, you always have to manually click into the search box and then start typing, being able to type in straight away after the page loads would be nice.

I guess I could alter the search page myself with a little bit of javascript to do that, but if zoom could do it automatically it would be great.

Ta

Rigsby

wrensoft
09-29-2008, 10:52 AM
See this old post about setting the focus via Javascript (http://www.wrensoft.com/forum/showthread.php?t=2105).

rigsby
09-29-2008, 11:08 AM
Cheers, I'll give it a whirl.

No chance it could be a zoom software option on the Configuration page ?

Rather than a manual edit into the HTML ?

Ta anyway

rigsby

Ray
09-30-2008, 12:31 AM
We might add it for the next version. Our original intention was to not add any unnecessary Javascript, because JS by nature can conflict with other Javascripts you have on the page, requiring debugging, and such issues are usually confusing for inexperienced web developers (http://www.wrensoft.com/forum/showthread.php?t=1183). So in that regard, it's really more suitable for end users to apply rather than expect it to be an automated thing.

Having said that, given the number of requests for it, we'll look into ways of making it as clean-cut and troubleless as possible, and if that's practical, we would include it in the default template.