About this article

Written by:
Posted:
03/08/2010 13:36:52

About the author

Imar Spaanjaars is the owner of De Vier Koeden, a company specializing in consultancy and development on the Microsoft .NET platform and DynamicWeb.

Interested in custom development or consultancy on DynamicWeb or .NET? Then contact De Vier Koeden through the Contact page.

If you want to find out more about Imar Spaanjaars, check out his About page on this web site or check out his personal website.

Quick Tips - Logging In from your Favorites Bar

Are you getting sick and tired of entering your user name and password for a Dynamicweb site over and over again? Here's a quick tip to log in using a favorite.

First, add a favorite to your Favorites bar. In Internet Explorer and Firefox you can do this simply by dragging the icon for the address in the Address Bar to the Favorites Bar. You can use any site for this as you'll change the URL anyway.

Then right-click the new favorite and choose Properties. In Internet Explorer, you can rename the favorite to something like DW Login in the General tab. In Firefox, you can assign a new name directly on the main Properties dialog. Then for the URL (Internet Explorer) or Location (Firefox) enter the following JavaScript:

javascript:document.forms["login"]["Username"].value = "YourUserName"; 
      document.forms["login"]["Password"].value = "YourPassword"; 
      checkInput('Access_User_login.aspx');

Although wrapped over multiple lines, you need to enter all of this on a single line. You may get a warning in Internet Explorer about the javascript protocol not being registered for a program. Click Yes to save the favorite anyway.

From now on, whenever you need to login, you can simply click your favorite and the browser will enter the Username and Password fields for you.

You can extend the script if you want to also preselect the language you want to use to login in.

Note: for this to work across multiple sites you manage for your clients, you obviously need to use the same user name and password. You could create multiple shortcuts for different site, or chose a single user name and password for multiple sites. In the latter case (or actually, in any case), use a strong password and don't be lazy and use admin/admin.... ;-)

By clicking 'Accept All' you consent that we may collect information about you for various purposes, including: Statistics and Marketing