All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Webkit and Variables?

  • # August 11, 2010 at 5:51 am

    I created a few variables and put them into an IF statement.

    It almost worked cross-browser.. It even worked in IE6, however, Chrome refused to see the variables properly. (I’m assuming I would have the same problem in Safari).
    I did a bit of debugging and finally realized that the variables were the problem. I managed to fix this, but now I have an IF statement that is illegible due to it’s length.

    Is there something simple that could take care of this problem and I’m not aware of?

    # August 11, 2010 at 6:27 pm

    This reply has been reported for inappropriate content.

    You might want to check to see if you do actually have this problem in Safari. Chrome and Safari use different Javascript engines, which is the only major difference between the two browsers as far as I know.

    # August 12, 2010 at 2:38 pm

    I think I figured out what the problem was.

    Some of the variables began with a dollar sign, and chrome seems to dislike that.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed