#1 (permalink)  
Old 02-13-2008, 03:41 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
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__
Reply With Quote

  #2 (permalink)  
Old 02-13-2008, 05:25 PM
curtiss's Avatar
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?
Reply With Quote
  #3 (permalink)  
Old 02-13-2008, 06:01 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
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.
Reply With Quote
  #4 (permalink)  
Old 02-13-2008, 06:36 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
This is a better article on that site:
http://www.webreference.com/js/tutorial1/opener.html
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #5 (permalink)  
Old 02-15-2008, 03:24 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
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__
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 01:23 PM
curtiss's Avatar
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?
Reply With Quote
  #7 (permalink)  
Old 02-16-2008, 03:13 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
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__
Reply With Quote
  #8 (permalink)  
Old 02-26-2008, 12:46 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
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__
Reply With Quote
  #9 (permalink)  
Old 02-28-2008, 04:13 PM
curtiss's Avatar
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?
Reply With Quote
  #10 (permalink)  
Old 02-28-2008, 05:25 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
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__
Reply With Quote
  #11 (permalink)  
Old 02-29-2008, 12:56 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
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.
Reply With Quote
  #12 (permalink)  
Old 03-04-2008, 09:33 AM
curtiss's Avatar
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?
Reply With Quote
  #13 (permalink)  
Old 03-04-2008, 09:54 AM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
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__
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I set a new window size in an email link? Smiling Ogre Programming and Scripting 3 05-02-2007 07:09 PM
Email information window? ehbowen Programming and Scripting 2 03-17-2007 08:38 AM
Display web page to fit window width as per resolution 800x600 or 1024x768 vikaspa Programming and Scripting 0 11-03-2006 03:38 AM
Resize window with no scroll bars? Roxanne10002 Programming and Scripting 7 03-16-2006 10:45 AM
Refreshing a browser window from a script in a different window rysko1 Programming and Scripting 2 08-22-2005 08:00 AM


All times are GMT -5. The time now is 01:41 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter