JQuery :: BackgroundPosition Plugin - Both IE8 And FF3 Doesn't Seem To Work
Sep 24, 2009
Having some trouble with this plugin. I've tried in both IE8 and FF3, but it doesn't seem to work. Basically the background position isn't moving...the function toArray(strg) is suppose to return the following....return [parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]]; this is the line where I'm getting an error code.
The values res[2] and res[4] are coming back as NaN. I'm not sure what these values represent, or why they are Null.
I'm calling the backgroundPosition like this:
My css reads:
View 1 Replies
ADVERTISEMENT
Aug 28, 2007
I have a menu done in CSS. When you mouse over the menu i change the background position in order to display the 'hover' state. I'm using javascript to show/hide <div> when you click on a button to display proper content without reloading the page (Like a tab menu).
To display the menu in a 'hover' state when you have clicked, i use also javascript to move the background position so it stays on the hover state. But when i mouse over my other menu, they do not apply the CSS anymore.
Here is the JS i use on a 'onclick':
function menu()
{
document.getElementById('menu2').style.backgroundPosition = 'center 0'
document.getElementById('menu1').style.backgroundPosition = 'center -48px'
}
I guess it have something to do with the fact that i alter the CSS with the JS. But anyone know how to fix this without having to create my mouseover with JS and keep it in CSS?
View 3 Replies
View Related
Nov 24, 2010
I need help with an IE8 problem. I want to give as many facts as possible.
Reference: [url]
I have already banned less than IE8 from my site but have the following problem with IE8 only (works on Mac and Win in these"allowed" browsers:Safari 5+, Chrome, FF 3.5+ and Opera 10+):
I use the backgroundPosition setter / getter extensively in this animation-extensive site.
But it breaks in IE8.
I did hack this as the only way I could get IE8 to work in a frame animation algorithm, noting that I have to test for browser and version (ugh) and then use this getter:
The following is an example that appears to work but seems unstable to me: (note that "accordionState"references an object within a data store attached to the "page" element):
There are many other cases where I have get or setbackgroundPosition,especially in the 'over' and out' functions where I use hoverIntent.
As a great fan and user of jQuery, I am puzzled that this will not work in IE8. Note thatbackgroundColor does not work either, although I do use UI to do these sorts of things and it seems to work in IE.
View 1 Replies
View Related
Sep 23, 2009
Some issues with jquery animate. im trying to create a navigation menu that apon mouseover, the background image animates with a negative y value. apon mouseout, the div will animate the background position back to zero. Simple enough ay? thats what i thought. When i roll over the divs with the bg image, they do not animate, it appears like a simple background change. in other words, there is no tween or movement, just ...new position.
INCLUDES
JQUERY
CSS
HTML
As i said, the animate property will not MOTION or TWEEn in the YAXIS, it will however as i tried animate in the XAXIS. got me stumped and at deadlock.
View 6 Replies
View Related
Aug 27, 2009
I'm trying to use the Jquery Validation plugin on aspnet mvc fframework but it doesn't work, when I open the firebug console it display an error:
jQuery is not defined
[Break on this error] jQuery.extend(jQuery.fn, {
I don´t know how to fix this issue an had already added the jquery-1.3.2.js to my scripts, there is the valdiation code I'm using:
<script type="text/javascript" src="../../Scripts/
jquery.validate.js"></script>
<script type="text/javascript" src="../../Scripts/[code]....
View 1 Replies
View Related
May 23, 2011
In form plugin version2.76 and 2.77 the file upload not working:
[URL]
In the second example the script don't reach the success callback. In older versions works fine.
View 7 Replies
View Related
Aug 2, 2011
why doesn't work the "jQuery Fixed Table Header" PlugIn on a iPad? [code]
View 2 Replies
View Related
Aug 31, 2009
I'm trying to take the hex value chosen from a jQuery colorpicker plugin, and store it as a cookie using the jQuery cookie plugin. I just don't know the appropriate way to tie the two together.
[Code]...
View 1 Replies
View Related
Jun 1, 2009
I cant get the easing plugin to work with cycle plugin
1. does cycle 2.65 work with easing 1.3
2. does easing work on the scrollHorz
3. if both of these are true then what am i doing wrong
$('#slideshow').cycle({
View 1 Replies
View Related
Dec 10, 2011
I've this script:
When I press again the "a.item_add" link it doesn't work (doesn't fadein the div again). how can I "restart" the script ?
View 2 Replies
View Related
May 10, 2010
This is a makeshift sort function for a table. I want to replace a div contents with a javascript function call. It works fine if I define the individual case, but the general case doesn't work. The problem lies with the +divHold+ part. It never converges to the passed value on the 2nd iteration. This is my Div:
[Code]...
View 4 Replies
View Related
Jan 4, 2011
I recently got very interested in jQuery and found my way into it but I'm now facing this problem where I can't animate the position of a background image in IE. I've tested it in Google Chrome, FireFox, Safari, Opera and Internet Explorer. It works in the first 4 browsers but not in IE and that is a pretty big problem since a lot of people are (still ) using IE, I think.
Here is the animation:
As I mentioned, it works in every major browser except for Internet Explorer.
View 1 Replies
View Related
Sep 1, 2009
How do I return a lists background-image's backgroundPosition?
I am trying to achieve a navigation menu whereby, when the li element is rolled over a grey square moves under the li element.
Here is what I have done so far:
So when the li element is rolled over I want to be able to identify said li backgroundPosition and use that value to move the ul's background image.
I realise that this could be done simply by giving each li element a different class name then giving it a mouseover function, but this is for a dynamic Wordpress nav bar so each li element does not have a unique class name.
View 1 Replies
View Related
Jun 14, 2010
The "Permission denied" cross site issue.
I have to check from my external domain if a service is running on localhost:8080 of a local machine.
I'm using XMLHttpRequest to do it.
I'm checking a local-web-server, not a file.
Every browser doesn't work, but Firefox. So I'm looking for a work-aorund.
An iframe? a flash swf? an applet java? HTA applications?
A side question is, why does FF work? Because it's a local-web-server?
View 2 Replies
View Related
Feb 19, 2009
I'm trying to load the Cycle plugin with a JSON feed from Picasa.Everything is pulling in from Picasa just fine. I can copy the exact HTML that it generates and paste it into my code and reload, and it works fine, but not when it is dynamically added via Javascript.URL...Here is my javascript code that pulls in the feed from Picasa and then initializes Cycle. I also automatically generate the thumbnails for the pager here too. Does Cycle read from the raw html rather than from generated html? [code]
View 3 Replies
View Related
Oct 1, 2009
$(function(){
Why this is not working...?
View 1 Replies
View Related
Feb 24, 2010
Why doesnt the following code work in IE. There is an error on the same row as fillText. It says object doesnt support this property or method.
<html>
<head>
<title></title>
<script type="text/javascript" src="excanvas.js"></script>
</head>
<body>
<canvas id='chart' width='500' height='200'>
[Code]...
View 1 Replies
View Related
Jan 8, 2010
I've written the following plugin
Code:
(function($){
$.fn.myPlugin = function() {
this.each( function() {
[Code]....
I can see all the anchors within the each function, but when I click link nothings happens.
View 1 Replies
View Related
Apr 22, 2010
I tried to use fade in the code below, it works in firefox but not ie7.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[code]....
View 1 Replies
View Related
May 7, 2011
I've just tried the JQuery fadeIn effect and it works in FF, Opera and Chrome. But it doesn't in IE.
This is the JQuery code
//contact click, load data
$('#contact').click(function() {
$('#contentFill').fadeIn(1200, function() {
$.ajax({
[Code]......
View 4 Replies
View Related
Dec 1, 2011
I have a problem with hide() method on ie9: if I put this command after a flag, it (hide) doesn't work anymore.Obviously the same code works pertefect on firefox.[code]
View 3 Replies
View Related
Nov 5, 2011
My on() function doesn't work. This is my code:
$(document).ready(function(){
$('button').on('click',function(){});
});
[Code]....
I am using latest jQuery 1.7, and it is loaded correctly.
View 5 Replies
View Related
Apr 6, 2011
I'm using the Jquery Autocomplete Plugin with jquery.1.4.4. I tried to use a new version of jquery, like 1.5.1 but doesn't work.
I'm asking if there is a way to work with the new version of jquery or i must change my autocomplete and use the jquery ui autocomplete.
View 7 Replies
View Related
Aug 5, 2009
here is my site: [URL] tabs don't work under IE - all div's are visible. I should add some code? I thought that jquery works under all browsers...
View 2 Replies
View Related
Jun 20, 2009
For my work i need to make a form. At some points you have to choose an option from a dropdown select box. After you have chosen one of those some other field appear under the dropdown thing. I use the slideToggle event for this effect. In firefox its all working fine, but in ie 6.0 and 7.0 it doesnt work. What do need:A dropdown menu with a few options in it. You can choose one of those and after you select it a few other options apear under the dropdown menu.
[Code]...
View 3 Replies
View Related
Sep 13, 2010
I have a problem with a jQuery selector that works in both Firefox and Chrome but refuses to in Internet Explorer.
The jQuery line looks like
$('a[id*="show_ingredients_link"]').click(function(){
var id = this.id.replace("show_ingredients_link", "");
(".ingredient_row" + id).toggle(); return false;
});
Which is trying to select a click on the following bit of HTML (this is a Django template)
<a href="#" id="show_ingredients_link{{ i.id }}">
(Customise)
</a>
The intent is to toggle the visibility of some table rows that exist just below the (Customise) link.
I can tell this is a selector problem by adding an alert(); in the click function which isn't fired in IE.
View 2 Replies
View Related