Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-17-2009, 03:28 PM   PM User | #1
waterintofunk
New Coder

 
Join Date: Jun 2009
Posts: 12
Thanks: 6
Thanked 0 Times in 0 Posts
waterintofunk is an unknown quantity at this point
Country/State selection with redirect?

Hi folks,

I'm trying to build a pretty simple form that will redirect a user to a particular page based one the geographic location that they choose. I've actually found a pretty nifty script here but for the life of me, I can't get it to redirect a user when they hit a submit button. To be honest I'm kinda new to javascript (I'm more of an actionscript guy), however this seems like it shouldn't be as hard as I'm making it out to be. I can't get over the feeling that I'm missing something really simple.


Thanks in advance
waterintofunk is offline   Reply With Quote
Old 06-17-2009, 05:01 PM   PM User | #2
tomws
Senior Coder

 
tomws's Avatar
 
Join Date: Nov 2007
Location: Arkansas
Posts: 2,644
Thanks: 29
Thanked 330 Times in 326 Posts
tomws will become famous soon enoughtomws will become famous soon enough
Since you didn't provide any code, it's impossible to know the problem without a crystal ball. Some users here have those, though, so maybe they can help.

It's not really a "redirect" if they're actually clicking a form button. It's then moved into the realm of form processing. Use the form's action attribute to point to the processing page. It should generate content appropriate for the location, or else you could actually redirect at this point.
__________________
Are you a Help Vampire?
tomws is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:52 AM.


Advertisement
Log in to turn off these ads.