I've got $config_useJavaScript set to TRUE but the status bar isn't displaying as it should. It's not doing it on your demo site either so it may be a browser issue? Tried it on FF3.5 and IE8 and all I get is the jump.php type link. Any ideas?
Also, what does javascript_focus("search.q") do?
thanks,
Jay
Hi David,
I'm facing the same Javascript problem as Jay described above. Did you manage to get it reproduced and fixed?
Thanks,
Koen
Hi koen
Using an id and getElementById() did the trick. In includes/javascript.php look for the following code at line 8:
return "<script type='text/javascript'>document.".$element.".focus();</script>";
....and REPLACE with:
return "<script type='text/javascript'>document.getElementById('".$element."').focus();</script>";
Finally, in index.php look for the following code that triggers the focus action (line 30 in the distribution)
print javascript_focus("search.q");
...and REPLACE with:
print javascript_focus("q");
Cheers,
David.
--
PriceTapestry.com
Thanks David!
But... does this fix the statusbar problem? ;-)
Cheers,
Koen
Hi Koen,
All current generation browsers have actually stopped supporting window.status i'm afraid for security reasons - it can normally be enabled via preferences but not by default...
Cheers,
David.
--
PriceTapestry.com
Ahaaa, thanks a lot for this clarification!
Cheers,
Koen
Hi Jay,
The focus statement is intended to give focus to the search box on page load. I'll check out the status bar JavaScript first thing tomorrow and get back to you on that...
Cheers!
David.