Login Box Focus

Hello


I am trying to stop the login box username from taking focus when a page loads. We need to do this because it causes issues when opening pages, documents etc in new windows. (The page always pops back in front of the newly opened window because of the Matrix Javascript that causes the username field to take focus).



I have as the Design manual instructs used:


    



eg:

     
    		
    		
    		
  • 				</table>
    			<MySource_PRINT var="form_close" />
    		</li>
    	</MySource_LOGIN_SECTION></pre><br />
    

    In the parse file, however the Username field in our login box keeps on taking focus when ever a page loads.

    Anyone know why this would be or how to solve it?

  • Looking at the code, it should only print the javascript that sets focus if that value is true (or unset). Can you look at the HTML code of the login box to see if the javascript is being output? It might be worth logging a bug or speaking to Squiz Support.

    Hi Avi


    The Javascript is there if I have "give_username_focus" set to true or false and tt is still printed if I omit the give_username_focus setting as well.


    Can you take those MySource_SET vars out of the LOGIN section and put them directly under the <MySource_AREA> tag and see if that makes a difference? I'm not sure the design area system will see them nested inside the section.

    Hi Avi



    Sorry for the delayed respone.



    I have tried moving the tags to just under the opening <MySource_AREA> and it didnt make any difference. The Javascript is still there and the Username field is still taking focus.

    Wes, please log this as a bug so that a developer can investigate.

    Has this issue been resolved as we are experiencing it now too since we upgraded to 3.22.2