PDA

View Full Version : Forms & Frames


auteur
06-17-2000, 05:22 PM
I am trying to get this code:

<form>
[nbsp][nbsp][nbsp][nbsp][nbsp]<font face=&quot;arial, helvetica&quot; size=&quot;2&quot;>
[nbsp][nbsp][nbsp][nbsp][nbsp]<select name=&quot;&quot; onChange=&quot;window.location.href=this.options[this.selectedIndex].value&quot;>
[nbsp][nbsp][nbsp][nbsp][nbsp]<option selected> - MarketPlace Categories -
<option value=&quot;/u/marketplace/&quot;>MarketPlace Home
<option value=&quot;&quot;>Americana
<option value=&quot;&quot;>Apparel
<option value=&quot;&quot;>Arts &amp; Collectibles
<option value=&quot;&quot;>Automotive
<option value=&quot;&quot;>Aviation/Boating
<option value=&quot;&quot;>Books, Music &amp; Video
<option value=&quot;&quot;>Camera/Photo
<option value=&quot;&quot;>Computers
<option value=&quot;&quot;>Electronics
<option value=&quot;&quot;>Games
<option value=&quot;&quot;>Gifts For Her
<option value=&quot;&quot;>Gifts For Him
<option value=&quot;&quot;>Gift Services
<option value=&quot;&quot;>Gourmet Foods
<option value=&quot;&quot;>Hardware
<option value=&quot;&quot;>Home &amp; Garden
<option value=&quot;&quot;>Hobbies
<option value=&quot;&quot;>Business &amp; Luggage
<option value=&quot;&quot;>Magazines, Catalogs and Comics
<option value=&quot;&quot;>Nature/Pets
<option value=&quot;&quot;>Office
<option value=&quot;&quot;>Services
<option value=&quot;&quot;>Specialty Stores
<option value=&quot;&quot;>Sporting Goods
<option value=&quot;&quot;>Smoke Shop &amp; Coffee Shop
<option value=&quot;&quot;>Travel
<option value=&quot;&quot;>Wine &amp; Liquor
[nbsp][nbsp][nbsp][nbsp][nbsp]</select></font></form>

To target=_top[nbsp][nbsp]for frames....tried a few things and it's not working.[nbsp][nbsp]The code works without a methd [post or get method] naturally...but doesn't target to _top.[nbsp][nbsp]

Any suggestions...???

Thank you in advance..

Elizabeth

Justin
06-17-2000, 05:54 PM
</font><font face="Courier" size="3"><form target=_top></font><font face="Verdana, Arial" size="2">

That's all there is to it :)

<edit>
Oops - I didn't realize you were using JavaScript instead of an actual form... Maybe try this (I'm not quite as sure on this one):
</font><font face="Courier" size="3">
<select onChange=&quot;parent.location.href=this.options[this.selectedIndex].value&quot;>
</font><font face="Verdana, Arial" size="2">
This specifies the parent frame, though you might have to use </font><font face="Courier" size="3">document.parent</font><font face="Verdana, Arial" size="2"> or something like that (I'm out of practice with frames, but I have made forms work accross frames before).
</edit>

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support
[This message has been edited by Justin (edited 06-17-00@5:58 pm)]

auteur
06-17-2000, 06:02 PM
THANK YOU THANK YOU THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I haven't worked with frames for quite a while and that was driving me nuts...it isn't bad enough that I came into work on a Saturday... but man... that was going to give me nightmares...

THANK YOU!!

Much appreciated...

Elizabeth

Justin
06-17-2000, 07:00 PM
:)

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support