jQuery load function does not work properly on chrome and safari (Windows)
Hi, When I load a page with jQuery load() function API. It does not load the style section on the header using Safari and Chrome.
Problem with inserting <link> into <head> in IE with 1.4
So for a site I maintain, InsideCCS, I have the following code for dynamically inserting stylesheets on a page: var newCSS = []; $.each(options.styles, function(index) { newCSS.push('<link href="/styles/'+options.styles[index]['href']+'" media="screen" rel="stylesheet" type="text/css" class="dynamic_css" />'); }); $('head').append(newCSS.join("")); This code can be seen at line 156 in http://insideccs.com/scripts/global.js. This worked perfectly well using jQuery 1.3.2 (and back through to 1.2.6
Strange behavior when using .live with mouseenter & mouseleave
I am just wondering if I am doing something wrong, but it looks like a bug to me - when using this code the submenu is displayed, then if I used bind - everything works, if I instead went for live, when I try to hover the submenu it disappears. I guess it has something to do with the live event not being handled properly (mouseout fires when leaving the parent LI and entering the first LI child of the UL child, but mouseleave should not fire because the LI child is actually contained in the mouseout-ed
Jquery .ajax , .get and .getJSON broken with firefox 4.0 beta 3
The callback method is never executed although I tried all varieties including the .ajax low level method with success and complete function. The same functions work with safari.
clone method causing Stack Overflow in IE under jQuery 1.4.2 (but not jQuery 1.3.2)
I have an application that is showing a stack overflow error in IE when moved from jQuery 1.3.2 to jQuery 1.4.2. The error occurs when calling the clone() method, passing in true to clone events with the element. I'm guessing that this is related to the change in 1.4 to clone data as well as events when passing in true to the clone() method. Is anyone familiar with this error and how I might be able to mitigate it? Thanks, Brian Dukes
IE won't remove dropped draggables
I've set up a sortable list and a space where you can drag items to where they'll be deleted. The relevant code is as follows: [code] function initUI() { // Set up people list $("#people").sortable( { containment: "document", tolerance: "pointer", connectWith: "#del_space", update: function(event, ui) { updateList(); } }); // Set up delete space $("#del_space").droppable( { accept: "#people > li", drop: function(event,
IE8 permission denied for jquery.min.js
Hi, I'm submitting a form through ajax, using the Validation plugin. When I submit my form in IE8, I get this error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; FDM; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0) Timestamp: Mon, 18 Jan 2010 04:38:41 UTC Message: Permission denied Line: 19 Char: 27021 Code: 0 URI: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js It works fine in Chrome and FF. Has
Inconsistency in getting size of an element under IE8 when Prototype is loaded
Prototype add a "scrollTo" function to elements, which make a test fail for jquery under IE8 standard mode In jquery-1.4.2.js, around line 6200, there's a function to get/set width or height of an element. It ends by this piece of code : return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window? // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[
$.ajax() calls success handler when network is down, v1.4.1.
Hello all, It seems in jQuery 1.4.1 (haven't tested in other versions), doing an AJAX call while the machine is not connected to the internet results in a call to the success handler rather than the error one. Example run on Chrome 4/Windows 7: $.ajax({ url: 'http://www.google.com/', type: 'GET', error: function() { console.log('Error!'); }, success: function(x) { console.log('Success. Response: "' + x + '"'); }, complete: function(xhr) { console.log(xhr.status);
textStatus unavailable from ajaxError
The value of textStatus doesn't seem to be available when using the global handler ajaxError, so it doesn't appear to be possible to determine what the reason for call failure is - this is probably most evident when defining a timeout through ajaxSetup. Is anyone aware of a workaround for this, and/or is this omission slated to be addressed any time in the near future? Thanks.
Bug with $('select option').hide()
Hi there. I've discovered that the code in subject doesn't work in any browser except firefox. Here is minimal html with the bug: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>select test</title> <script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('input').click(function()
"Uncaught ReferenceError" only on Chrome
Hi, how are you?, I have been developping a web for a few time, and yesterday I watched in Chrome doesn't works Jquery!. I use normally Firefox and it works perfectly, but on Chrome show many errors like this one: Uncaught ReferenceError: Login is not defined (anonymous function)localhost:23 onclick I attach the <head> (because I saw normally the problem is here): <head> <script type="text/javascript" src="administracion/jquery/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="administracion/jquery/jquery-ui-1.8.9.custom.min.js"></script>
IE: jQuery and Prototype conflict
Hi, For some reason, my page has to use both prototype and jquery. However, there is a weird problem about getting width and height of an element using jQuery. Here is my test page: <!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"> <head> <title>Test Conflict</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script>var $j
NO_MODIFICATION_ALLOWED_ERR in Safari using xhtml with a $.get() request
When using a valid website served as application/xhtml+xml and requesting content using $.get() Safari/Chrome will throw the following error (referring to the development version of 1.4.2 of jquery): NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7: An attempt was made to modify an object where modifications are not allowed. – jquery.1.4.2.js:4448 4448 is part of jQuery.extend({}), line 4447/4448 are the following: // Go to html and back, then peel off extra wrappers div.innerHTML = wrap[1] + elem +
Internet Explorer, jQuery 1.5.2 and Invalid Argument at line 7968
Hi guys, I'm having this problem recently and I need a solution for it. Internet Explorer shows up the error "Invalid Argument", and point the line 7968, char 5 (jQuery uncompressed). Error details: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Tablet PC 2.0; .NET4.0E) Timestamp: Tue, 5 Apr 2011 19:05:31 UTC Message: Invalid argument. Line:
Superfish behaviour in mozilla when you press BACK button (history -1)
Hi, The link to website: http://tiny.cc/h8sbg The problem comes up when you use top navigation in mozilla, and then press back button. The page gets loaded from cache, but with menu item selected, and submenu dropped down. I tried to add on dom ready events to clear that, before and/or after the menu is loaded, also with page loaded, but nothing seem to happen. it just gets rendered open. Thanx anyone for the help. Goran
Using replaceWith() to insert HTML5 <audio> or <video> in Firefox results in two copies of the inserted object on top of each other
I couldn't seem to find any other questions here that overlapped with mine, and Google only came up with one other person with a testcase. I'm using a method suggested at DaringFireball to address HTML5 video autobuffering no matter what in Safari. The fix is to have a poster frame that, when clicked, activates jQuery's replaceWith() to replace said image link with the appropriate HTML5 <video> tag. Example. Bingo, problem solved. I wanted to do exactly this with a page that has a bunch of short
$.remove() memory leak
Hey guys I've searched the internet for days now and have found a lot of articles and discussions about memory leaks in earlier versions of jQuery but nothing about v1.4.2. I'm facing the following problem: - I'm writing a web app that has a search engine which builds a table with the results. - The table sometimes holds over 1000 results (max tested: 1200). - Building the table (ajax) works perfectly and raises the memory usage in some MBs but everything's normal. - When I delete the table using
jQuery stopped loading script in 1.4.2
Hey! I recently tried to upgrade from 1.3.2 tot 1.4.2, but I'm having some issues. I'm not sure this should be in the 'Using jQuery Plugins'-section... At the moment I'm using jQuery 1.3.2 and the plugin Ajaxify 2.00 (this one: http://max.jsrhost.com/ajaxify/). The script I'm using is this: $('.link_ajax').livequery(function(){ $(this).ajaxify({ tagToload:{'#AjaxText':'#middle_ajax', '#AjaxTitle:'#top_ajax'}, loading_fn: function(){ cmsMessage('loader',loaderMessage);
Parsing XML with tag names containing hyphens
Hi, I am using jQuery for XML parsing and editing, but there seems to be issues with tag names containing a hyphen (with jQuery 1.4.2, in FF & Safari): var doc = jQuery("<root><title-1/><title-2/></root>"); doc.find("title-2").parent()[0].tagName; //=> expected: 'ROOT' // got: 'TITLE-2' jQuery('<div>').append(doc).remove().html(); //=> expected: "<root><title-1/><title-2/></root>" // got: "<root><title-1><title-2></title-2></title-1></root>" Does somebody have a workaround for parsing XML documents
Error using jQuery 1.5.X and Firefox 4
Hi! I updated to firefox 4 and ran in to a strange problem that some of you might better understand ... Problem I have a pretty complex page developed using jQuery 1.4.X --> 1.5.X and the page works withouth any errors in IE 8, IE 9 , and Chrome 10 but fails with error in FireFox 4 when using jQuery 1.5.X but is working when using jQuery 1.4.X The code failing is returning the following error : $(".spSelectList_item").css is not a function The Code below is failing when using jQuery 1.5.X and FF4
.val(value) and ASP.NET TextBoxes
I have an ASP.NET TextBox with AutoPostBack=true. When I run $(myInputElement).val(value); in Internet Explorer 8, the AutoPostBack no longer works. I'm guessing that the problem lies more with IE8 than jQuery, since none of the other browsers break, but I'm curious if anybody else has seen this problem or knows of a workaround?
jQuery 1.4.2 $.ajax crashes IE6/7
Hello there! I'm having a really hard time debugging one of our latest reported bugs. The problem occurs "randomly", not on every page load, sometimes I can "click" around for a minute or two before IE6/7 crashes. By crash I mean that the IE-window shuts down and I get the option to send the crash info to Microsoft. In FF, Chrome, Safari, IE8 everything is working perfectly. What the page does is issuing 2 AJAX Jsonp calls and building some menus with the data returned. The data brought back can
NOT_FOUND_ERR: DOM Exception 8 - fragment.appendChild( ret[i] )
I have a problem with a script in safari. firefox and ie work. The script fetches from another page content whats in a div and give it out on the current page. but in safari nothing is loading. I get the error "NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a node in a context where it does not exist." in the row 113 (min) or 4500 (uncompressed) of the jquery 1.4.2. using jQuery 1.2.6, it goes, but other scripts and function do not work then. how can I fix this problem? my script
$(window).is('div') returns error (jQuery 1.4)
$(window).is('div') (or any other element) returns "g.nodeName is undefined". This may be expected behavior, but this worked normally with 1.3.2 (returned false).
.css() reports value of "clip" inconsistently
Given: a CSS definition of this sort: div {clip:rect(0px 30px 30px 0px); /* (values set arbitrarily) */ } Using IE 8, if I attempt the following: $(document).ready(function () { alert( $("div").css("clip") ) }); The alert reports "undefined" unless the clip is defined in an inline style, i.e. <div style="clip:rect(...);"></div>. When the style is inline, it returns space-separated values, e.g. "rect(0px 30px 30px 0px)," even if the clip is defined with comma-separated values. In FireFox 3.6.12
creditcard2 has a bug related to SOLO, and a few VisaElectron bin ranges missing
Hi all We are currently using the credit card validation on a commercial site and I noticed a few bugs. First for SOLO. The validation for the bin range starting with 6767 is not working because of a space after the comma but before '6767': ards [8] = {cardName: "Solo", lengths: "16,18,19", prefixes: "6334, 6767", checkdigit: true}; Also for VisaElectron quite a lot of bin ranges are missing form the validation. (like for example the 491880 range). A little FYI: Latest bin ranges can be found here
Dynamic radio buttons cannot be changed (IE)
Hi All, I've found a very weird issue with my form. I'm dynamically generating radio buttons, but in Internet Explorer (tested in versions 7 & 6), you cannot change the radio buttons after they've been added. In Firefox (testing in 3.6) it's fine. I've mocked up some code below which shows the issue. It generated up to 10 radio buttons (by random number) and checks that radio button programmatically. However you cannot manually select an already generated radio button. HTML: <form action="list.htm">
Downloaded zip file damaged
I've setup a custom theme on the jqueryui site, and I'm trying to download it since yesterday, but I always get a damaged zip file...is anyone experiencing the same issue?
Problem with ajax call in version 1.4. Error callback not called
I recently migrated from jquery 1.3 to version 1.4. I am using Ajax to get the results from a php backend file. When the networkconnection is not available (no internet-connection) i normally got a error callback. As of version 1.4 I however get a success callback (with emty data). This causes my application to function abnormally :( Does anyone know why this is currently the case? I noticed that some JSON handling is more strict, but i don't see any reason for this behaviour. Can anyone shed some
IE 7 Receiving a Parse Error Calling a Web Service
I'm using 1.4.1 and I have two html files, the first one contains $(document).ready(function() { $('#recordHit').load("http://localhost/soapcall2.html"); }); the second file, soapcall2.html contains just the following (no <html/>,<head/> or <body/> tags) <script> var ServiceUrl = '/ws/'; var CreateSession = ServiceUrl + 'general.asmx?op=CreateUserSession'; var AddRecord = ServiceUrl + 'record.asmx?op=CreateRecord'; var TerminateSession = ServiceUrl + 'general.asmx?op=TerminateSession';
fadeIn/fadeOut/Pulsate produces jagged text in Firefox 3.6.8
The following code demonstrates the problem, it doesn't happen when the text is black, but when setting the color to red it seems as if the blending goes completely wrong.(fadeIn/fadeOut does the same) See attached image: Tried other browsers(IE, Chrome) and it worked ok there. Windows 7 64-bit. This is the code that gives me the problem: <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
BlockUI breaks under 1.4.1
Have a asp.net mvc project using jquery-ui-1.7.2. and BlockUI. When I changed jQuery version from 1.3.2 to 1.4.1, the CSS pertaining to the block ceased to render. The functions fired (verified by in-line alerts) and firebug had no complaints. Moved back to 1.3.2 and the blocker rendered perfectly.
beforeSubmit in forms plugin doesn't cancel returning false
My title pretty much sums up the problem. On the forms plugin by malsup, returning false for the beforeSubmit function doesn't cancel the submit at all. Thanks.
IE8 gets into SlowMo while using .animate
i build some cool animation gallery in JQuery + JQueryUI. now in FFox and Chrome it works perfect then in explorers it start to be a little slower IE6 - slow IE7 - Slower IE8 - So slow that u can't call it animation. this is the gallery: http://www.youbeaut.co.il/gallery.php?id=10 and this is the JS code: http://www.youbeaut.co.il/js/gallery.js any1 knows whats going on? btw, i tryed to add the emulate ie7 meta, still dosn't solve it.
jQuery 1.5.1 and Adobe Air
Greetings Everyone, I have been using jQuery for some time know with great success and today I decided to try my hand at creating an Adobe Air application in Dreamweaver. I made a simple html page (see below) with a button and a span tag to interact with. The page works fine when I run it thought Firefox but when I try to preview (or run it) in Air it doesn't work at all. I did some trouble shooting and discovered that Air is reporting an error when loading jQuery 1.5.1. The error is (which
Jquery reporting wrong x/y positions
I've updated this post to include a much simpler example. Problem: The pageX and pageY properties of the mouse event is incorrect for elements inside a <div> which is inside a <td>, but ONLY when the <div> has its css position property set to "absolute", "relative", or "fixed". This is while using jquery 1.4.2. <html> <head></head> <body> <table> <tr> <td width="100">stuff</td> <td> <!-- if style is removed from this div, the problem goes away --> <div id="tabs2" style="position:relative">
GZIP Iisue with code.jquery.com CDN ?
Hello, Starting Wednesday, when doing an availability test of our site, there have been issues with the CDN. The file that's being loaded is https://code.jquery.com/jquery-3.1.0.min.js The file downloads and browsers are still able to load it, but we get this error: System.IO.InvalidDataException: The magic number in GZip header is not correct. Make sure you are passing in a GZip stream.
My jquery works on IE but not on Firefox
I've load form.php page on index.php page with .load() function. Then include form.js in the form.php that validate and submit the form. It works on IE but not on firefox. But If I load the form.php page directly on firefox it works. What is the problem!?
find() in IE
<html> <head> <script language="javascript" type="text/javascript" src="jquery-1.4.4.min.js"></script> <script language="javascript" type="text/javascript"> var xml = '<?xml version="1.0"?><root><t1>c1</t1><t2>c2</t2></root>'; alert($(xml).find('t1').text()); </script> </head> <body></body> </html> in FF this script returns 'c1' and $(xml).find('t1').length == 1 in IE - empty string in alert and $(xml).find('t1').length == 0 How
Next Page