-
- 142 Posts
Sorry to raise this thread from the dead but the install of Modx I’ve just picked up (0.95) is presenting me with this focus on weblogin and not the websignup pages. I’ve looked at the weblogin.inc.php and it’s dated 2004 and is version 1.0.
Is there an updated version/snippet I can use?
I’m a little wary about removing some of the routines until they break but I’ll give it a go and see if I can resolve this here.
Cheers
TXRX
-
- 142 Posts
This is more interestingly weird than I thought. Seems that InternetExplorer (6) doesn’t have this problem! Seems it’s a firefox 2.0 problem. This is maybe making me think that the problem may lie in the actual CSS and it’s sample site template.
I’m about to try a fresh install in another server here and I’ll create something that consists of these elements in the most basic of CSS templates (in a bid to get my CSS working as intended) and see if this problem still persists. I’ve tried hacking out all the source with ’focus’ and foreground parameters and it just changed certain behaviours but not to the extent I’m aiming for. I’ll let y’all know how I get on.
Just wanted to point out the IE6 & Firefox 2.0 difference on this topic.
Cheers
TXRX
Try validating your HTML and CSS. I’ve seen weird discrepancies between all browsers with "broken" html. It could also be a Fx extension I suppose, too.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
- 210 Posts
Hello,
Sorry again for resurrecting this topic, but I’m having the same focus problem with Weblogin and IE, Firefox 2.0, Opera, etc. The header section of my page is very long, and everytime you load the page, the screen automatically scrolls down to the web login form located on a sidebar.
Does anyone know where are the lines that should be commented?
Thanks a lot.
Mc
Line 89 of /assets/snippets/weblogin/weblogin.inc.php
<script type="text/javascript">
if (document.loginfrm) <?php echo !empty($uid) ? "document.loginfrm.password.focus()" : "document.loginfrm.username.focus()" ?>;
</script>