
02-13-2008, 03:41 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
|
|
|
Window Targeting
I am debating on some ideas to fix an issue with some links.
My third idea is to have the set of links (going to public pages), and a link at the bottom that will open a secondary window for the secure page links. However, is it possible to click one of the secondary window's links, and upon clicking it the secondary window closes and the primary window is directed to the secure site?
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
...,,.,.,.
/ \
__oooo__[///]--[\\\]__oooo__
|

02-13-2008, 05:25 PM
|
 |
Moderator
|
|
Join Date: May 2003
Posts: 1,445
|
|
|
It is definitely possible with javascript.
I'm honestly not sure if it's possible without. I've never really tried.
To do so with javascript, you can name the original window dynamically by simply using the "window.name" command somewhere in your code that's outputted into the original window. Then, you can target that window later. You could also use the window.opener method, but it can be a little more confusing.
__________________
I hate Internet Explorer! Anyone with me?
|

02-13-2008, 06:01 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
|
|
Yeah, I have used the window.opener method before, but I guess I need to look into the "window.name" function. Thanks for letting me know what to do... again!!
EDIT: Looks like this is what I will get to play with: http://www.webreference.com/js/tutorial1/names.html
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
...,,.,.,.
/ \
__oooo__[///]--[\\\]__oooo__
Last edited by Leprakawn; 02-13-2008 at 06:25 PM.
|

02-13-2008, 06:36 PM
|
 |
Moderator
|
|
Join Date: May 2003
Posts: 1,445
|
|
|
__________________
I hate Internet Explorer! Anyone with me?
|

02-15-2008, 03:24 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
|
|
I hope one of you JS brainiacs can help me. I have an example of the script I am working with, and I am curious to see if you know how to make it open in a secondary window?
Code:
window.mm_menu_1107081355_0 = new Menu("root",90,17,"Tahoma",11,"#FFFFFF","#FFFFFF","#3399CC","#003366","center","middle",3,0,300,-140,7,true,false,true,0,true,true);
mm_menu_1107081355_0.addMenuItem("Link One","location='[url goes here]'");
mm_menu_1107081355_0.addMenuItem("Link Two","location='[another URL goes here]'");
And is there a way to include an img with the description?
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
...,,.,.,.
/ \
__oooo__[///]--[\\\]__oooo__
|

02-16-2008, 01:23 PM
|
 |
Moderator
|
|
Join Date: May 2003
Posts: 1,445
|
|
|
I think we'll need to see more of the code, as I don't know quite what it is intended to do.
Seeing it in action would be good.
__________________
I hate Internet Explorer! Anyone with me?
|

02-16-2008, 03:13 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
|
|
Yeah, I know seeing it in action would be great; however, the page is on the .mil server, so there is no way I can just give the URL on here.
And if I remember correctly, there are a few components of JS applied to the menu's code to make it work. Unfortunately, I did not design the menu, and the revamp page I made has not been given approval to replace the current page yet. 
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
...,,.,.,.
/ \
__oooo__[///]--[\\\]__oooo__
|

02-26-2008, 12:46 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
|
|
Curtiss, here is a breakdown of the code: Dreamweaver Templates - Customization guide. Unfortunately I am unable to find a live example of the code. 
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
...,,.,.,.
/ \
__oooo__[///]--[\\\]__oooo__
|

02-28-2008, 04:13 PM
|
 |
Moderator
|
|
Join Date: May 2003
Posts: 1,445
|
|
|
Try adding mm_menu_1107081355_0.target = '_blank'; to the code you've got and see if that makes a difference.
Unfortunately, my Internet access is really messed up right now, so I can't really post too much at the moment. Good luck
__________________
I hate Internet Explorer! Anyone with me?
|

02-28-2008, 05:25 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
|
|
Curtiss, thanks for posting that. I will give that a shot, but there is a catch to it:
I want to apply the secondary to only one of the links within the "mm_menu_1107081355_0.addMenuItem" selection.
I will tinker with it and see what happens, and I will let you know tomorrow! 
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
...,,.,.,.
/ \
__oooo__[///]--[\\\]__oooo__
|

02-29-2008, 12:56 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
|
|
Curtiss:
I put your suggested code in, but it did not work at all.
Here is this section's code (for the most part)
Code:
window.mm_menu_1107081355_0 = new Menu("root",90,17,"Tahoma",11,"#FFFFFF","#FFFFFF","#3399CC","#003366","center","middle",3,0,300,-140,7,true,false,true,0,true,true);
mm_menu_1107081355_0.addMenuItem("Link 01","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 02","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 03","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 04","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 05","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 06","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 07","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 08","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 09","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 10","location='URL'");
mm_menu_1107081355_0.addMenuItem("Link 11","location='URL'");
mm_menu_1107081355_0.fontWeight="bold";
mm_menu_1107081355_0.hideOnMouseOut=true;
mm_menu_1107081355_0.bgColor='#555555';
mm_menu_1107081355_0.menuBorder=1;
mm_menu_1107081355_0.menuLiteBgColor='#FFFFFF';
mm_menu_1107081355_0.menuBorderBgColor='#777777';
mm_menu_1107081355_0.writeMenus();
Link 11 is the one I would like to open in a secondary window.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
...,,.,.,.
/ \
__oooo__[///]--[\\\]__oooo__
Last edited by Leprakawn; 02-29-2008 at 01:09 PM.
|

03-04-2008, 09:33 AM
|
 |
Moderator
|
|
Join Date: May 2003
Posts: 1,445
|
|
|
What version of Dreamweaver are you using, and which widget are you inserting in order to generate that menu? Maybe I can take a look at it on my end and come up with something.
__________________
I hate Internet Explorer! Anyone with me?
|

03-04-2008, 09:54 AM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
|
|
The funny thing is that I am not using DW; I am using FP.  Curtiss, I wouldn't worry about this, so do not waste your time on it. But I must say thanks for your responses so far. 
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
...,,.,.,.
/ \
__oooo__[///]--[\\\]__oooo__
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:41 PM.
|
|
|