HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 17th, 2000, 01:17 AM
freudianslip freudianslip is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 1 freudianslip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hellio, first post. First of all, I know nothing about Java besides being able to cut and paste, so...

here's my question:

I'm using a neat little script that shows a drop down box; when you click on an entry, bammo, it takes you to a different page. I've found a way to make it so it targets a specific page; that works fine. The question is, can I make it trigger DIFFERENT pages to load in 2 separate frames?

Basically, I guess what I want is a:
drop down script that lets you specify multiple frame targets, with multiple .htm files.

Thanks for any help!

Reply With Quote
  #2  
Old July 17th, 2000, 10:46 PM
yoshi yoshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 108 yoshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to yoshi
freudianslip,

With a drop down (select) menu, each choice is allowed one value. This is a good place to keep the URLs to go to, while the menu choices are the titles of the sites. The way to change two locations (different frames) is to add multiple commands to the "onClick" option (of the submit button). However, there really isn't an easy way to store another URL for one choice, so I recommend that you create pages like "0.html", "1.html", etc., and link to them in the order they are listed. Here is an example:

<INPUT TYPE="BUTTON" VALUE="Go!" onClick="top.frames[0].location=frmLinks.selectLnk.options[frmLinks.selectLnk.options.selectedIndex].value; top.frames[1].location = (frmLinks.selectLnk.options.selectedIndex + 1) + '.html'">

The first link is to the value set in the SELECT statement; the second is to the value selected (if you selected the first selection, 1.html would be returned in the bottom frame.)

Good Luck!
yoshi
datera@datera.com http://www.datera.com

[This message has been edited by yoshi (edited July 17, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > 1 drop down even triggering different frame output... help?


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway