|
-
In Dreamweaver you can create a pull down menu that will redirect you to a certain page (like the menu in the upper right hand corner of the Coffee Lounge, underneath the search form).
I need to create a page with two of these menus. One for the months and one for the years. Then the user will click on the 'GO' button and be redirected to the appropriate page. If the user selects 'January' from the months menu and '2000' from the years menu, he will be directed to the 'january_2000.htm' or something.
Can any JavaGuru's help me? If you know of a page where this is done, give me the URL, cause I can cut and paste really well. 
-
[Devil in DarkGreen]
??java?
you can do it in <form action=.....> tag.
-
okay, demons. I am not really that good with JavaScript. At least with this. I am going to need a little more explanation and some more help.
Do you have ICQ or AIM?
Or maybe a URL with and example? I am REALLY desperate.
-
FK Times - Editor in Chief My Good Little Birdie
what backend technologies can the server run?? jsp?? coldfusion?? asp?? php??
-
thx UpNorth - I we can jun CGI and PHP probably, but there has to be a way in JavaScript
-
FK Times - Editor in Chief My Good Little Birdie
Hey flea I can set you up with a coldfusion script to run it for you if you ant. Visitors won't even know they left your page! Just do
<form action="http://www.freecfm.com/t/tutorialtown/flea.cfm">
And have them submit it like a normal form and it will send you right to it! Let me know...
-
thx UpNorth, my boss is breathing down my neck for it NOW!!
i got some q's though:
- Will the user get to choose the month and the date right away and then view the right informations (choosing 'January' & and '2001' from the menus will give them 'january_2001.htm', for example)
- Is this secure and everything (I work for a large company)
i wish I could get on IM or ICQ to talk to you about this, but I can't, they are down for me for some reason
-
FK Times - Editor in Chief My Good Little Birdie
Originally posted by flea
thx UpNorth, my boss is breathing down my neck for it NOW!!
i got some q's though:
- Will the user get to choose the month and the date right away and then view the right informations (choosing 'January' & and '2001' from the menus will give them 'january_2001.htm', for example)
- Is this secure and everything (I work for a large company)
i wish I could get on IM or ICQ to talk to you about this, but I can't, they are down for me for some reason
I don't know why it wouldnt be secure. Basically all it is is a <meta refresh> tag with a dynamic url.
I can't get on aim either....hmm odd
And to answer your other question, here's how the process would work. User picks date and year and hits submit. They then go to my page, which would then use the <meta refresh> tag to forward them to the right page. Seems simpleand secure to me!
-
thx for the help, UpNorth.
How long would this take, it has to be instaneous...
Also, if you could help me get up the scripting, I may be able to get my own CF server type thing on the network so I don't have to use your service...but for now i will stick with your solution.
How long with the entire process take after they hit the button?
-
FK Times - Editor in Chief My Good Little Birdie
Originally posted by flea
thx for the help, UpNorth.
How long would this take, it has to be instaneous...
Also, if you could help me get up the scripting, I may be able to get my own CF server type thing on the network so I don't have to use your service...but for now i will stick with your solution.
How long with the entire process take after they hit the button?
Well go to http://www.freecfm.com/t/tutorialtown/display.cfm?id=40
it is basically doing the same thing, except that it doesnt add the hit info to the databse. Should be just as fast as the javascript method. I have all the code down now, except I don't remember the string literal operator. Give me a sec of trail and error and I should have it uploaded by 2 (central)
-
FK Times - Editor in Chief My Good Little Birdie
also..what directory will the files to go to be in exactly? and what will the form field names be exactly?
and i meant http://www.freecfm.com/t/tutorialtown/redir.cfm?id=40
-
okay, upnorth, basically I just need redirect the menu to your site and the .cfm file and the scripting will take care of the rest?
-
FK Times - Editor in Chief My Good Little Birdie
oh shoot flea I hate to bugger out on you like this but I hafta run to pick somebody up for my mom! If theres any other CF people around this is the basic idea of the code
<cfset redir = 'http://www.path.toyour/directory' & #form.month# & '_' & #form.year# & '.html'>
<cflocation url="#redir#">
Except I'm not sure about the string literal operator which may need changed.
You should be able to do it in jsp too flea...
I'm really sorry!
-
argh!! when are you going to be back UPNorth????
-
there is a way of doing it with just javascript!
email me and i'll send u the info
-
okay thanks, Sargant. I sent you an email. please respond ASAP!!
thx
also, you can AOL IM me or ICQ me. the info is in my footer. just click on the buttons.
-
Retired Mod
it's not that hard with javascript man
you just need a function that targets the value of the first select box and pairs it with the value of the second..
so you have
for the values in the year menu you would have something like: "2000_"
then for the month you would have say.. "oct.htm"
then when those are the tow selected values it would go to 2000_oct.htm
i could build you a function if you want flea, let me know if it's not too late for you.
i just did a function for a single menu like this:
Code:
<script language="JavaScript">
<!-- go to url depending on option selected
function selectionUrl() {
{ parent.bottomFrame.location.href = document.selectionForm.demographic.options
[document.selectionForm.demographic.selectedIndex].value }
}
//-->
</script>
this function brings up a url in the bottom frame of this page, the menu is in the top frame, depending on the value choosen by the user...
it would be easy to adapt for your use.

-
aversion - you are the man. i got into work this am and expected UpNorth to help me, but he is no where to be found.
If you could just give me a little more help, maybe make me a quick and easy example. I woul def. APPRECIATE IT!! maybe i can make a footer for you if you're interested for your time and patience.
THX
caio!
-
Flea,
You said you were using dreamweaver, right?
Well DW has a jump menus builder.
It makes a code look something like this:
<form name="form1">
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Home</option>
<option>Resume</option>
<option>unnamed1</option>
</select>
</form>
Do not copy that it won't work. Just do this:
Open up DW! That part is essential!
From the top menu select "Insert"
Then select form object>>Jump Menu
From there it's easy... you just fill in the values you want in the wizard box thingee... and whala, you have a jump menu!
-
blutimus - i know, but I need TWO jump menus. read the first post.
thanks for the help, though
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|