anyone know how...

You can talk about anything here

Moderator: Akira

Post Reply
User avatar
BD
First Veteran
Posts: 1757
Joined: Wed Feb 26, 2003 12:01 am
Location: OC, CA
Contact:

anyone know how...

Post by BD »

If you go to http://www.wine.com a you get prompted for a state, which saves for later use.

Anyone know an easy (i.e. canned) way of doing this? Their code is giving me a headache.

Thanks
Image
Image
Image
User avatar
Baron[CotC]
Caesar
Posts: 1711
Joined: Wed Feb 26, 2003 1:29 am
Xfire Username: redbaroncotc
Location: Alberta, Canada
Contact:

Post by Baron[CotC] »

Isn't it just saving a cookie?
Caesar - Clan of the Camper - http://www.clanofthecamper.com
Image
D.A.R.K.[CotC]
Legatus - Legion 2
Posts: 1186
Joined: Tue Feb 08, 2005 9:11 pm
Location: Michigan

Post by D.A.R.K.[CotC] »

That little popup disables the whole website until you select a state... seems like more than just a simple cookie that's involved....

and yeah, the code really is a headache... only the person who wrote it would understand it...
dark [CotC]

Image

Image

"Try not. Do, or do not, there is no try"
User avatar
BD
First Veteran
Posts: 1757
Joined: Wed Feb 26, 2003 12:01 am
Location: OC, CA
Contact:

Post by BD »

ya, but it's also unhiding the div and storing it on the webpage... i used to kow this stuff
Image
Image
Image
D.A.R.K.[CotC]
Legatus - Legion 2
Posts: 1186
Joined: Tue Feb 08, 2005 9:11 pm
Location: Michigan

Post by D.A.R.K.[CotC] »

I probably won't go into web designing for my future career....
dark [CotC]

Image

Image

"Try not. Do, or do not, there is no try"
User avatar
BD
First Veteran
Posts: 1757
Joined: Wed Feb 26, 2003 12:01 am
Location: OC, CA
Contact:

Post by BD »

yeah, I either have to learn me some e-commerce or dump this client... heh
Image
Image
Image
User avatar
Baron[CotC]
Caesar
Posts: 1711
Joined: Wed Feb 26, 2003 1:29 am
Xfire Username: redbaroncotc
Location: Alberta, Canada
Contact:

Post by Baron[CotC] »

well the state is most likely stored as a cookie. I haven't looked at his code, you'll probably find he's running server-side scripts we cant see anyway.

As for teh popup blocking the rest of the site until you select a state...

-- Check for a cookie if one doesnt exist then we need to make a popup
-- create an invisible popup that covers the entire website and prevents clicking through it
-- create a pick-a-state popup as the top layer that takes the user's choice and saves it as a cookie
-- then refresh the page and start at the check for cookie step again

-- if a cookie exists skip all the neat code and just go about normal business
Caesar - Clan of the Camper - http://www.clanofthecamper.com
Image
Post Reply