PDA

View Full Version : Mix between Outlook Bar and DHTML window?



RadXPictures
12-05-2009, 04:11 PM
1) Script Title: Microsoft Outlook Bar and DHTML Window Widget

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/outbar/index.htm, http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:

Hi. I'm trying to work on a script that will combine the ms outlook bar code with the one for the dhtml window code. I want it so when you click on one of the buttons in the outlook bar, a dhtml window opens on the main page without it completely redirecting to another site. Does anyone know what I mean? Please help.

jscheuer1
12-05-2009, 09:51 PM
I voted give up because Microsoft Outlook Bar is an IE only script, meaning that your page will most likely be inaccessible in most browsers.

That said, say you are doing something like so with DHTML Window:


function openmypage(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "windowfiles/external.htm", "#3: Ajax Win Title", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close window 3?")} //Run custom code when window is about to be closed
}


Then you can place in the menu something like:


OutBarFolder1=new Array(
"Folder 1",
"mail.GIF","Dynamic Drive","javascript:openmypage()","window",
"chat.GIF","What's New","http://dynamicdrive.com/new.htm","window",
"news.GIF","What's Hot","http://dynamicdrive.com/hot.htm","window",
"netm.GIF","Link to us!","http://dynamicdrive.com/link.htm","window"
);

RadXPictures
12-06-2009, 03:33 PM
I voted give up because Microsoft Outlook Bar is an IE only script, meaning that your page will most likely be inaccessible in most browsers.

That said, say you are doing something like so with DHTML Window:


function openmypage(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "windowfiles/external.htm", "#3: Ajax Win Title", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close window 3?")} //Run custom code when window is about to be closed
}


Then you can place in the menu something like:


OutBarFolder1=new Array(
"Folder 1",
"mail.GIF","Dynamic Drive","javascript:openmypage()","window",
"chat.GIF","What's New","http://dynamicdrive.com/new.htm","window",
"news.GIF","What's Hot","http://dynamicdrive.com/hot.htm","window",
"netm.GIF","Link to us!","http://dynamicdrive.com/link.htm","window"
);


Um, acutally, my code looks a little more like this:

<a href="#" onClick="ajaxwin=dhtmlwindow.open('google', 'iframe', 'http://www.google.com/', 'Google',

'width=850px,height=600px,left=0px,top=0px,resize=1,scrolling=1, toolbar=1, location=yes'); return false"><img id="mc" src="googleicon.bmp" style="position: relative" BORDER="0"/>

I added the drop and drag script to the images that open the dhtml windows.

RadXPictures
12-07-2009, 09:47 PM
I voted give up because Microsoft Outlook Bar is an IE only script, meaning that your page will most likely be inaccessible in most browsers.

That said, say you are doing something like so with DHTML Window:


function openmypage(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "windowfiles/external.htm", "#3: Ajax Win Title", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close window 3?")} //Run custom code when window is about to be closed
}


Then you can place in the menu something like:


OutBarFolder1=new Array(
"Folder 1",
"mail.GIF","Dynamic Drive","javascript:openmypage()","window",
"chat.GIF","What's New","http://dynamicdrive.com/new.htm","window",
"news.GIF","What's Hot","http://dynamicdrive.com/hot.htm","window",
"netm.GIF","Link to us!","http://dynamicdrive.com/link.htm","window"
);


It didn't work.

jscheuer1
12-08-2009, 04:17 AM
Please post a link to the page on your site that contains the problematic code so we can check it out.

RadXPictures
12-08-2009, 09:10 PM
Please post a link to the page on your site that contains the problematic code so we can check it out.

http://www.skyos.webs.com/os.html

jscheuer1
12-09-2009, 12:06 AM
There is no function named openmypage on your /outlookbar/menu.html page.

RadXPictures
12-09-2009, 08:47 PM
There is no function named openmypage on your /outlookbar/menu.html page.

know. I took it off because it was just displaying the code as a black text on the "desktop".

jscheuer1
12-10-2009, 06:53 AM
Well, because of that, it's 'working'. But there's nothing for it to do, so it throws an error.