July 30th, 2002, 11:33 PM
|
#1 (permalink)
| | ᅟᅠ
Join Date: Oct 2001 Location: ɐqɟs
Posts: 10,449
| HTML/Javascript help needed w/our sidebar
Ok, been trying for a little while to figure this out but don't have infinite amount of time to devote to it,
so any help is greatly appreciated.
There simply is not the room to include all the forums on the TechIMO sidebar ( Mozilla, IE, Opera).
So I've been trying to incorporate the "forum jump" pull-down like Scott has on the site. I've tinkered with it
to get it to fit into the sidebar but I haven't been able to figure out how to make it open your choice in the
main browser window. As it is now it opens the forum you choose in the sidebar.
All the links in the sidebar need to use target="_content" for them to open in the main window.
In the form tag for the drop-down menu I've tried including target="_content" but it seems to have no
effect. I assume that's because the actual jump seems to be activated by the javascript onchange.
I've scanned many javascript/html help sites but have yet to find an answer.
Any help is appreciated. Here's a shot of what I'm trying to do:
And here's the code of the pull-down menu that's giving me fits: Code: [color= 2F4F4F]
<form method="get" target="_content" action="http://www.techimo.com/forum/forumdisplay.php">
<font face="verdana,arial,helvetica" size="1">
<input type="hidden" class="bginput" name="s" value="">
<input type="hidden" name="daysprune" value="1000">
<select name="forumid"
[color= cd3333]onchange="window.location=('http://www.techimo.com/forum/forumdisplay.php?s=&forumid='+this.options[this.selectedIndex].value+'&daysprune=1000')">[/color]
<option value="home">__________</option>
<option value="home">Home</option>
<option value="home">ŻŻŻŻŻŻŻŻŻŻ</option>
<option value="home">__________</option>
<option value="3" selected>· Community</option>
<option value="17">· DC</option>
<option value="26">· IMO Chat</option>
<option value="15">· Suggestions</option>
<option value="57">· Mod/Admin</option>
<option value="home">ŻŻŻŻŻŻŻŻŻŻ</option>
<option value="home">__________</option>
<option value="2">· Gen Tech</option>
<option value="9">· Tech News</option>
<option value="6">· Tech Support</option>
<option value="4">· CPUs & O/C</option>
<option value="18">· Motherboards</option>
<option value="14">· Network</option>
<option value="19">· Apps & OS</option>
<option value="5">· Storage</option>
<option value="7">· Video Cards</option>
<option value="11">· Benchmarks</option>
<option value="35">· Mobile Comp.</option>
<option value="20">· PC Mod.</option>
<option value="24">· Cert. & Edu.</option>
<option value="25">· Multimedia</option>
<option value="home">ŻŻŻŻŻŻŻŻŻŻ</option>
<option value="home">__________</option>
<option value="58">· Retailer Disc.</option>
<option value="10">· Buy/Sell</option>
<option value="16">· Doc's Deals</option>
<option value="home">ŻŻŻŻŻŻŻŻŻŻ</option>
<option value="home">__________</option>
<option value="12">· Gaming</option>
<option value="42">· Driving</option>
<option value="41">· Action</option>
<option value="43">· Role-Playing</option>
<option value="44">· Simulation</option>
<option value="45">· Sports</option>
<option value="46">· Strategy</option>
<option value="47">· Game Nets</option>
<option value="home">ŻŻŻŻŻŻŻŻŻŻ</option>
<option value="27">__________</option>
<option value="27">o PhotoPost</option>
<option value="28">· News</option>
<option value="31">· Before u buy</option>
<option value="32">· Troubleshoot</option>
<option value="29">· Suggestions</option>
<option value="30">· Bug Reports</option>
<option value="33">· General</option>
<option value="27">ŻŻŻŻŻŻŻŻŻŻ</option>
<option value="home">__________</option>
<option value="51">· Grfx Design</option>
<option value="56">· Webmastering</option>
<option value="50">· Databases</option>
<option value="52">· Perl</option>
<option value="49">· PHP</option>
<option value="53">· C / C++</option>
<option value="55">· Apache & IIS</option>
<option value="13">· Software Dev</option>
<option value="home">ŻŻŻŻŻŻŻŻŻŻ</option>
</select>
</font>
</form>
[/color] If you want to load up this "test" sidebar to help me trouble-shoot it, and you're using Mozilla, then
you can do so by clicking here. Or, if I'm just an idiot and
there is a super simple solution to this, then please share it with me.  |
| |
July 31st, 2002, 01:34 AM
|
#2 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Alberta, Canada
Posts: 563
|
trying............. AAARRGG!!! lol
after an hour of trying "this and that", I noticed that the normal hyperlinks don't even open in the main window in the first place for me!! They just open a new window!!
win2k, ie5.5(sp2)
will keep trying though... not much else to do!!
ciao!! |
| |
July 31st, 2002, 01:43 AM
|
#3 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
| Quote: |
... Scott has on the site...
| ask, scott! |
| |
July 31st, 2002, 02:01 AM
|
#4 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Alberta, Canada
Posts: 563
|
well, not sure anymore how much I can help since it isn't even loading the normal links in the main window!!  but I like the challenge so I'll keep trying for a bit!!
might try putting a base target into the head section, but since it isn't a hyperlink, it might not work... (in the <head></head> somewhere, put <base target="_content">) but as I say, it might not help due to js...
ciao!! |
| |
July 31st, 2002, 02:12 AM
|
#5 (permalink)
| | OH NO!
Join Date: Oct 2001 Location: Monett Missouri
Posts: 4,269
| Leave it to me to cheat if you want to do it yourself don't look  But this might show you how to do it. I can't do pull downs either and get them to work.
__________________
The impossible takes more time,and costs more money.
|
| |
July 31st, 2002, 02:17 AM
|
#6 (permalink)
| | ᅟᅠ
Join Date: Oct 2001 Location: ɐqɟs
Posts: 10,449
|
^hyd^, I know exactly how you feel. I've been messing with this for a couple days now.
I do have a target in the base as well.
<base href="http://www.techimo.com/forum/" target="_content">
As far as the links opening up in a new window, that should only be happening with IE. And it should only open one new window, then if you use that window from then on, everything will remain within that Exploer window.
It's probably because links in the IE sidebar are suppose to use _main and not _content as their target. However, since the IE version of this sidebar is really just a hack anyways because I have to trick IE into showing the TechIMO sidebar...correcting that has been on the back burner. Except for the initial opening of a new window, the sidebar seems to work ok in IE. But that's a whole 'nother issue.
I just can't figure out how to direct a link chosen from that drop-down menu to use the target= command as it activates.
Your efforts are most appreciated! If ya got the keep at it. I will too.  |
| |
July 31st, 2002, 02:25 AM
|
#7 (permalink)
| | ᅟᅠ
Join Date: Oct 2001 Location: ɐqɟs
Posts: 10,449
|
Thanks BC, but unless I'm not seeing something, there's not much help there. Your link just shows how to create a drop-down meun and we've already got that part.
Thanks though....keep trying.  |
| |
July 31st, 2002, 02:44 AM
|
#8 (permalink)
| | OH NO!
Join Date: Oct 2001 Location: Monett Missouri
Posts: 4,269
|
<form method="get" target="_content" action="http://www.techimo.com/forum/forumdisplay.php">
try main instead of content |
| |
July 31st, 2002, 02:59 AM
|
#9 (permalink)
| | ᅟᅠ
Join Date: Oct 2001 Location: ɐqɟs
Posts: 10,449
|
Already tried that too BC.  Keep that "thinking cap" on though... |
| |
July 31st, 2002, 03:01 AM
|
#10 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Alberta, Canada
Posts: 563
|
BY GEORGE I THINK I'VE GOT IT!!!
errr, brb, gotta do a couple tests!!!
hehehehehehehhe |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |