View Full Version : URLs on Active Desktop

25-01-2002, 09:40 AM
I've succeeded in creating an active desktop with favourite links, a Google search box, etc. The only other thing I REALLY want on there is the ability to type any website URL into a box and click on a GO button to take me directly to the site without having to open IE first. The only thing I've seen that's similar is the XtraMSN 'We can't find...' page (http://search.xtramsn.co.nz/results.asp?cfg=DNSERROR&FORM=DNSERR&v=1&q=www%2Emccs%2Eco%2Enz), but I couldn't get it to work on my desktop.
Does anyone know of a bit of code that would do this job?

25-01-2002, 10:04 AM
<span id=AddressBar style='overflow: none'>
<span id=AddText>Address</span>
try this i think it works haven't used it in a while it may need some refining but it did work, the bit at the bottom with microsoft webaddress is the URl that will be displayed in the address bar to start off with.

<input type=text value='http://' id=TheAddress style='width: expression(document.body.clientWidth - AddText.offsetWidth - AddGo.offsetWidth - 45)'>
<input type=button value='Go' id=AddGo onclick='navigate()'><br>
<iframe src='http://www.microsoft.com' id=TheFrame style='width: 100%; height: 81%'></iframe>

25-01-2002, 10:38 AM
Wow, that was a quick response - thanks very much!

Your suggestion looks great, but when I enter a URL and click Go, IE displays the 'Page cannot be displayed' window, with the address C:\null.

Any ideas?

27-01-2002, 07:57 PM
Hi Stuart,

Here is some basic code I have written using Javascript to open the requested URL:

<HTML><INPUT class=dnsQform size=40 value='' name=address><INPUT type=button value='Go!'

<SCRIPT language='javascript'>

function newUrl(){

var strID = document.all.item('address').value;

if (strID == ''){

window.alert('Please type an address first');}

else{if (strID.indexOf('://') < 1){

strID = 'http://' + strID;}



The new URL can be opened in the current window instead of a new window by replacing new_window=window.open(strID); with self.location = strID;

If you want a copy of the code that is easier to read then let me know and I can email it to you.

All the best,

29-01-2002, 09:39 AM
Thanks Tristan, that did the trick.

Long time no see! Trust you are doing well.

Thanks once again,