home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2823
Discussions: 188,381, Posts: 2,243,474, Members: 232,609
Old July 30th, 2002, 11:33 PM   Digg it!   #1 (permalink)
ᅟᅠ
 
OuTpaTienT's Avatar
 
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.

OuTpaTienT is offline   Reply With Quote
Old 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!!

^hyd^ is offline   Reply With Quote
Old July 31st, 2002, 01:43 AM     #3 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
Quote:
... Scott has on the site...
ask, scott!

qball is offline   Reply With Quote
Old 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!!
^hyd^ is offline   Reply With Quote
Old July 31st, 2002, 02:12 AM     #5 (permalink)
OH NO!
 
Brainchild's Avatar
 
Join Date: Oct 2001
Location: Monett Missouri
Posts: 4,269
Send a message via Yahoo to Brainchild
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.
Brainchild is offline   Reply With Quote
Old July 31st, 2002, 02:17 AM     #6 (permalink)
ᅟᅠ
 
OuTpaTienT's Avatar
 
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.
__________________
OIC 0utpatient.com
OuTpaTienT is offline   Reply With Quote
Old July 31st, 2002, 02:25 AM     #7 (permalink)
ᅟᅠ
 
OuTpaTienT's Avatar
 
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.
OuTpaTienT is offline   Reply With Quote
Old July 31st, 2002, 02:44 AM     #8 (permalink)
OH NO!
 
Brainchild's Avatar
 
Join Date: Oct 2001
Location: Monett Missouri
Posts: 4,269
Send a message via Yahoo to Brainchild
<form method="get" target="_content" action="http://www.techimo.com/forum/forumdisplay.php">

try main instead of content
Brainchild is offline   Reply With Quote
Old July 31st, 2002, 02:59 AM     #9 (permalink)
ᅟᅠ
 
OuTpaTienT's Avatar
 
Join Date: Oct 2001
Location: ɐqɟs
Posts: 10,449
Already tried that too BC. Keep that "thinking cap" on though...
OuTpaTienT is offline   Reply With Quote
Old 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
^hyd^ is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2887)
The United States Debt (20)
Looks like Burris will get his Sena.. (8)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
hp compaq nc6000 problems (138)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Recent Discussions
Need help removing my front usb.. (2)
Genuine Broadband Connection my.. (14)
BATCH FILE WONT OPEN!!! HELP!!! (3)
New Build ( Finally ) (2)
2nd video card (0)
RCA 52Inch HDTV wont turn on (1)
Building a gaming computer advi.. (1)
Best digital camera for under 2.. (14)
Help with an Ati Radeon HD 4850.. (25)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 09:11 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28