View Full Version : redirection thingies
pqwabbit
04-03-1999, 10:42 PM
I know you can liek easily make those pull down menues in java but my quesiton is like do non-java enabled browsers work with those?
I'm putting some pull downs in and I dont want liek peopel to like get screwed if they dont work - wouldit be better to go with non-java pull downs?
Lea
------------------
Bunnies make life better.
Massachusetts House Rabbit Society, Inc.
http://www.MAHouseRabbit.org/
A common thing done (that I need to do with aota.net also) is to offer both. For those with the ability it 'just works', for those without the 'go' button is there for them to utilize.
The more options offered the better http://www.aota.net/ubb/smile.gif
Deb
pqwabbit
04-04-1999, 12:52 AM
hmmmm just how do you pull that off? does it mesh nicely or like is it gonna be confusing to code?
Lea
------------------
Bunnies make life better.
Massachusetts House Rabbit Society, Inc.
http://www.MAHouseRabbit.org/
I've not really tested this but....
<script language="JavaScript">
<!-- Hide the script from old browsers --
function surfto(form) {
var myindex=form.goto.selectedIndex
location=form.goto.options[myindex].value;
}
//-->
</SCRIPT>
<FORM NAME="myform" ACTION="/cgi-sys/redirect.pl" METHOD="POST">
<SELECT NAME="goto" SIZE=1 onChange="surfto(this.form)">
<OPTION SELECTED VALUE="Page1.html">PAGE 1
<OPTION VALUE="Page2.html">PAGE 2
<OPTION VALUE="Page3.html">PAGE 3
</SELECT>
<INPUT TYPE="BUTTON" VALUE="Go!" onClick="surfto(this.form)">
</FORM></CENTER>
In concept would work as the JavaScript should work and if the javascript did not work then the "redirect.pl" script we have preinstalled on the FQ server would kick in. Since you're not on this server you would obviously need to utilize whatever script is available to you locally (you can find these free at cgi-resources.com)
I don't have time to test it right now... but I don't see off hand why it wouldn't work.
Deb
[This message has been edited by Deb (edited 04-04-99).]
Jacob Stetser
04-04-1999, 08:40 PM
Deb-
everything works except for one thing..
<FORM NAME="myform" ACTION="/cgi-sys/redirect.pl" METHOD="POST">
should be:
<FORM NAME="myform" ACTION="/cgi-sys/redirect/redirect.pl" METHOD="POST">
At least at FQ. I'm working on icongarden: the next generation, and decided to fiddle with the menu thing. Thanks for whipping it up for us, by the way http://www.aota.net/ubb/smile.gif
Jake
pqwabbit
04-05-1999, 11:46 AM
kewl - thanx for the tips - man I was so ill yesterday - http://www.aota.net/ubb/frown.gif( so that put off follin with it.
Lea
------------------
Bunnies make life better.
Massachusetts House Rabbit Society, Inc.
http://www.MAHouseRabbit.org/
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.