Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > new site, new issues

new site, new issues
Thread Tools
mdc
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Apr 18, 2005, 04:41 PM
 
i was bored/unhappy with my old site design, so i came up with a new one.

i like it, but there is one issue. the css styleswitcher javascript on safari 10.3.9 (new webkit or new safari?).
there are three style choices; which will change the css file being used. when you click on one of these it should write a cookie for which style you want.

on safari it does not write the cookie until the browser window is closed. on every browser (and safari before 10.3.9) it writes the cookie immediately.

does anyone have any ideas if there is any way to fix this?

thanks
(any comments and criticism on my new site?)
mikecosentino.com
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Apr 19, 2005, 12:43 AM
 
Why not just use a session variable for the style if not cookied?
     
mdc  (op)
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Apr 19, 2005, 06:25 PM
 
could you please go into more detail about this for me?
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Apr 19, 2005, 06:54 PM
 
Er.........

Say if someone chooses a style (through a form I would believe) then they are directed to a php page taking a variable ($style = style1, $style = style2) with them, that page would have a switch statement, case style1 loading css1, case style2 loading css2 etc., etc., whatever the cookie was doing.
     
mdc  (op)
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Apr 20, 2005, 03:12 AM
 
sorry for sounding so. . . dumb, but i am kinda clueless when it comes to php.

but much thanks for your help. i found this on a list apart and it works flawlessly.

thank you so much.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:26 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2