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 09-07-2010, 04:47 PM   PM User | #1
CalumK
New Coder

 
Join Date: Jan 2009
Posts: 52
Thanks: 4
Thanked 3 Times in 3 Posts
CalumK is an unknown quantity at this point
Cross browser javascript issue

ok, so i am working on a type of Option Box that is heavily formatted with CSS and animated using JS $fx()

The $fx framework works fine on all browsers, and i have only used fairly simple code, and yet my page functions perfectly on Chrome and Safari.
but will not work in Firefox or IE

(Firefox does nothing, and IE has a couple of css issues and doesnt work either...)

http://calumk.com/else/blogpoststuff...ng_Option_Box/

if anyone could help me i would really appreciate it.

(obviously view in Chrome or safari to see how it is meant to respond)
CalumK is offline   Reply With Quote
Old 09-07-2010, 05:04 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
You need to use marginLeft as opposed to margin-left. Why Chrome and Safari work I don't know. They really shouldn't I guess they treat it the same way as the DOM name. This might help you.

http://codepunk.hardwar.org.uk/css2js.htm

It even says it in the manual.

Quote:
Originally Posted by fx
type — type of animation effect. The type paramter is same as the CSS property name for a DOM element.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 09-07-2010, 09:56 PM   PM User | #3
CalumK
New Coder

 
Join Date: Jan 2009
Posts: 52
Thanks: 4
Thanked 3 Times in 3 Posts
CalumK is an unknown quantity at this point
Thanks, guess i overlooked that as it was working in the webkit browsers, sorry!
CalumK 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 04:49 AM.


Advertisement
Log in to turn off these ads.