0

The following jQueryUI code works in Chrome, not in FireFox ?

  $(".reachme").click(function(){
    $("#reachme").animate({right:'250px'}, 2000, 'easeInOutBounce');
  });
4
Contributors
14
Replies
54
Views
3 Years
Discussion Span
Last Post by Siberian
0

It really helps if you provide your posts with more relevant information. For example, where is the relevant HTML code for this?

Here is a working example and tested both using Chrome and Firefox. Works fine.

<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<style>
#reachme {
  background:red;
  height:100px;
  width:100px;
  position:absolute;
  top:0px;
  left:0px
}

.reachme {
  position:absolute;
  top:100px;
  left:0px
}
</style>
</head>

<body>

<div id="reachme"></div>
<button class="reachme">Animate</button>

<script> 
  $(".reachme").click(function(){
    $("#reachme").animate({left:'250px'}, 2000, 'easeInOutBounce');
  });
</script> 

</body>
</html>
0

My HTML/CSS validates, which is why I didn't post !
I have jQuery1.110.min & jqueryUI1.10.4.custom in the head of the page. I have the code after the DOM loads, but the script doesn't load in firefox ?

0

This is the following code I put in the script, it's still not working in firefox, that is the path you mean to follow ?

$("").click(function(**event**(or e)){
0

I've been searching for an answer, it appears it's quite common but solving it on case-by-case basis :(

0

Here is a link to the pre-page so to speak :) Click on the word Reach.me and compare with Chrome and FireFox it's fairly obvious, Chrome a black box will bounce in and with FireFox, nothing will happen.

Edited by Siberian

0

The word 'event' was used in the fucntion before changing it to 'e' as per request, neither works :(

0

ARghhh this is frustrating why it's not working in FireFox !

Edited by Siberian

0

I can't believe I didn't see the error for a week, #$%#$% pisses me off.

Syntax Error !

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.