Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-02-27, 09:37 AM   #1
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Php includes help (is this possible to do)

I have a drop down menu includes and I would like to use it in more then one frame of a site. The problem is that I need to define what frame the drop down menu opens in.

Right now I have this.
select style="color: black; font-size: 10pt; background-color: #a7b9ff;" name="menu1" onchange="if(this.options[this.selectedIndex].value!=''){window.open(this.options[this.selectedIndex].value,'_self')}">
<option value="URL"</option>

Is the a way to make this "value,'_self'" a variable so that when it is pulled into one page it will be value,'_main' and when it is pulled into the other frame it will be value,'_self'?
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-02-27, 09:42 AM   #2
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
Hmm, I don't think I follow you completely. Do you have a live example?
swedguy is offline   Reply With Quote
Old 2005-02-27, 09:52 AM   #3
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Not without much hassle as it is inside of Angel's member's area.

Basically I have an includes named "members-drop-down.txt"

This includes is pulled in a page named "main.html" that is part of a frame so its target is set to self.

I want to use this includes into another page of the frame set so I need to change its target depending on which page of the frame set it is pulled into.

So instead of value,'_self' it needs to be value,'VARIABLE' and the variable is self if pulled into the main page or main if pulled into the left page of the frame set.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-02-27, 10:13 AM   #4
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
ahhh, now I get it. Sounds like it will always target _main.
_self is the same as _main when it's pulled into the main.html. Just have it always target _main.
swedguy is offline   Reply With Quote
Old 2005-02-27, 10:21 AM   #5
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936

Don't I feel dumb.

Yeah just make the target main and problem solved LOL
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-02-27, 10:24 AM   #6
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
It happens us all every now and then
swedguy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT -4. The time now is 02:27 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc