PDA

View Full Version : HTML/javascript help needed


OuTpaTienT
07-30-2002, 9:51 PM
Just posted this over at TechIMO but I'm learning that there are quite
a few smart people over here too ;). So if anyone can offer any
assistance it would be very cool indeed. :cool:

- - -

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 (http://www.techimo.com/forum/showthread.php?s=&threadid=28446), IE (http://www.techimo.com/forum/showthread.php?s=&threadid=28901), Opera (http://www.techimo.com/forum/showthread.php?s=&threadid=29121)).
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:

http://home.attbi.com/~donnie/sidebarhelp.jpg


And here's the code of the pull-down menu that's giving me fits:

<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"
onchange="window.location=('http://www.techimo.com/forum/forumdisplay.php?s=&forumid='+this.options[this.selectedIndex].value+'&daysprune=1000')">

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


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. (http://home.attbi.com/~donnie/buttonaddtabTEST.html) Or, if I'm just an idiot and
there is a super simple solution to this, then please share it with me. ;)

jadison
07-30-2002, 10:38 PM
Excuse my lack of knowledge here, but where is the file where I can alter the code to test this?

I feel so stupid... :o

OuTpaTienT
07-31-2002, 1:12 AM
Here: http://home.attbi.com/~donnie/TechIMOtab002.html

jadison
07-31-2002, 1:41 AM
<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="">

Line 3 at the end, "value="" <--- isn't there supposed to be a specified value there?

OuTpaTienT
07-31-2002, 2:12 AM
I don't believe so...that part of the code (as is most of it) was just lifted directly from TechIMO. Actually, I notice this forum does the same thing. Look at the URL...it has s= with nothing there...then &threadid=xxxx. So I guess that's correct.

Anyways, don't waste any more time on this...^hyd^ over there figured it out. I was quite impressed at his solution. I know I never would've figured it out. Check it out. (http://www.techimo.com/forum/t29604.html)

Thanks for the effort jadison. I'm sure I'll be back with more questions about other things I can't do by myself. ;)uT

jadison
07-31-2002, 2:46 AM
woh! Ok, well it just goes to show the more effort you put in and the more knowledge you have on a particular subject the better the results are going to be (in most cases). Looks like ^hyd^ did a great job. :)