[jQuery] Possible IE8 Bug with jQuery
I believe I have found a bug in IE8; it's possible that it's something jQuery is doing, but I really doubt it. I'm only cross-posting this here in the hopes that someone can suggest a workaround, because I have tried everything I can think of. A code sample is available here: http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/f265c5b1-a45d-4949-85b2-86a97a884dc1 The issue I'm seeing is that changing the contents of a table cell in IE8 randomly causes the width of the td element to change. In the code sample above, I'm using toggle and replacing the content with an input element, but I have tried using just a click handler and inserting something as simple as another string of text. In every combination of styles and script I have tried, I'm still able to get IE8 to randomly change the width of td elements when their contents change. I have tried using jQuery to force the td width back to the correct value, but that doesn't seem to do anything. (Of course, the code behaves fine in both Firefox and Chrome.) So, anyone have any suggestions on what to try? Any help at all would be greatly appreciated since I'm basically out of ideas.
[jQuery] IE 7.0 Bug for Jquery 1.3.2 + ui 1.7.1
Hi, I download the stable package Jquery 1.3.2 + ui 1.7.1 from the site and just modified the sample page to try. And I keep on getting: Exception thrown and not caught error for the following simple page, basically just one jquery line with some HTML code. This happens for IE7.0 on XP. = !DOCTYPE html html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / titlejQuery UI Example Page/title link type=text/css href=css/smoothness/jquery- ui-1.7.1.custom.css rel=stylesheet / script type=text/javascript src=js/jquery-1.3.2.min.js/ script script type=text/javascript src=js/jquery- ui-1.7.1.custom.min.js/script script type=text/javascript $(function(){ $(a:not([...@href*=mysite])).append(span class='External'?/ span); }); /script /head body h1Welcome to jQuery UI!/h1 p style=font-weight: bold; margin: 2em 0 1em; font-size: 1.3em;YOUR COMPONENTS:/p !-- Accordion -- h2 class=demoHeadersAccordion/h2 div id=accordion div h3a href=aaaFirst/a/h3 divLorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet./div /div /div /body /html
[jQuery] Re: Serious bug in JQuery
I figured it out. I was using the validation framework and erroneously tried to add validation rules to a span instead of an input. Stepping through the code, I saw that it was asking for the element.form, and the spans don't have that property defined. Thanks On Dec 22, 6:33 pm, donb falconwatc...@comcast.net wrote: I would guess you've passed a parameter to a function, but done so incorrectly. For example writing xyz(bar) when you should have written .xyz( {foo: bar} ) On Dec 22, 5:25 pm, Andy Matthews li...@commadelimited.com wrote: Care to share some code? Have you done your debugging to determine what line of your code is causing the error from jQuery? Have you posted this bug to the jquery bug mailing list? andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of kayode81un...@gmail.com Sent: Monday, December 22, 2008 4:18 PM To: jQuery (English) Subject: [jQuery] Serious bug in JQuery I have a page that when loaded, it gets a javascript error. It occurs in jquery-1.2.6.js on line 662 on this line: var id = elem[ expando ]; It says elem is undefined. This occurs in IE and FF. This only occurs on this specific page. It is an aspx page. Thanks
[jQuery] Re: Serious bug in JQuery
Sorry, but no one would be able to tell what might be wrong from that description. In most cases, a bug like this is an error in how you're calling a jQuery function. If you use Firebug and have it break on all errors, you can look at the stack trace and see what call you made that triggered the problem. Or, of course, it could be a bug in jQuery itself. Post a link to a test page that illustrates the problem and I'm sure someone can help you out. -Mike From: kayode81un...@gmail.com I have a page that when loaded, it gets a javascript error. It occurs in jquery-1.2.6.js on line 662 on this line: var id = elem[ expando ]; It says elem is undefined. This occurs in IE and FF. This only occurs on this specific page. It is an aspx page. Thanks
[jQuery] Re: Serious bug in JQuery
Care to share some code? Have you done your debugging to determine what line of your code is causing the error from jQuery? Have you posted this bug to the jquery bug mailing list? andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of kayode81un...@gmail.com Sent: Monday, December 22, 2008 4:18 PM To: jQuery (English) Subject: [jQuery] Serious bug in JQuery I have a page that when loaded, it gets a javascript error. It occurs in jquery-1.2.6.js on line 662 on this line: var id = elem[ expando ]; It says elem is undefined. This occurs in IE and FF. This only occurs on this specific page. It is an aspx page. Thanks
[jQuery] Re: Serious bug in JQuery
I would guess you've passed a parameter to a function, but done so incorrectly. For example writing xyz(bar) when you should have written .xyz( {foo: bar} ) On Dec 22, 5:25 pm, Andy Matthews li...@commadelimited.com wrote: Care to share some code? Have you done your debugging to determine what line of your code is causing the error from jQuery? Have you posted this bug to the jquery bug mailing list? andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of kayode81un...@gmail.com Sent: Monday, December 22, 2008 4:18 PM To: jQuery (English) Subject: [jQuery] Serious bug in JQuery I have a page that when loaded, it gets a javascript error. It occurs in jquery-1.2.6.js on line 662 on this line: var id = elem[ expando ]; It says elem is undefined. This occurs in IE and FF. This only occurs on this specific page. It is an aspx page. Thanks
[jQuery] closing tag bug in jQuery 1.2.6?
Has someone else already posted this bug? The following code shows jquery failing to detect the termination of a tag. Load the page and click on the word login. The selector should find the empty div and display the html content (nothing). Instead shows the span closing tag and the javascript that follows. html head titlejQuery bug test Page/title script src=script/jquery-1.2.6.min.js type=text/javascript/ script /head body style=background-color:black span id=Login style=position:absolute; top:20px; left:5%; width: 90%; z-index:12; span id=LoginToggle style=float:right; color=green;Login/span div class=popupContent style=float:right; / /span script type=text/javascript !-- $( function() { $(#LoginToggle).click( function(){ alert( $ ( '#Logindiv.popupContent' ).html() ); }); } ); //-- /script /body /html If you change the div closing it works correctly. Change this: div class=popupContent style=float:right; / To this: div class=popupContent style=float:right; /div Does the same in IE7 and FF3
[jQuery] Re: element.attr() bug in jquery 1.2.6?
On May 29, 5:55 pm, John Resig [EMAIL PROTECTED] wrote: I'm confused - you're getting and modifying the onclick attribute? That seems... strange. Yeah, now that I think about it, it's pretty ridiculous. Ah, the fruits of a rushed deployment... I guess I tend to manipulate the DOM by default for most actions, but in this case, I think I need to rework this to change handlers via javascript. On May 29, 7:02 pm, Ariel Flesler [EMAIL PROTECTED] wrote: Copied from the ticket itself: The patch about should modify attr() so that it supports this situation. It won't be applied for now for 2 reasons: 1- The demo you showed doesn't work cross browser. As far as I tested, IE doesn't fire handlers set as strings with javascript. So there's no point in supporting that. 2- It needs a lot more of testing. Our test runner doesn't fail with this patch, but as attr() went to many changes lately, we'll give it special attention before modifying it again. I think I had chosen to ignore that issue ;-)...I was fortunate to be using this in an internal application where I got to insist on Firefox... Anyways, thanks for taking the time to look into it, even though it was the wrong way to do it. -phil
[jQuery] Re: element.attr() bug in jquery 1.2.6?
I'm confused - you're getting and modifying the onclick attribute? That seems... strange. --John On Thu, May 29, 2008 at 7:48 PM, Phil Christensen [EMAIL PROTECTED] wrote: Hi all, I've run into a strange issue that I believe is a bug in jQuery 1.2.6. I've posted a ticket along with a test HTML file at: http://dev.jquery.com/ticket/2959 As far as I can tell, attr() is not properly updating the value of a form attribute, although prior versions had worked fine. Any help in resolving this, or providing a workaround would be greatly appreciated. Thanks in advance, -phil
[jQuery] Re: element.attr() bug in jquery 1.2.6?
Copied from the ticket itself: The patch about should modify attr() so that it supports this situation. It won't be applied for now for 2 reasons: 1- The demo you showed doesn't work cross browser. As far as I tested, IE doesn't fire handlers set as strings with javascript. So there's no point in supporting that. 2- It needs a lot more of testing. Our test runner doesn't fail with this patch, but as attr() went to many changes lately, we'll give it special attention before modifying it again. Thanks for reporting. Cheers -- Ariel Flesler http://flesler.blogspot.com On 29 mayo, 18:55, John Resig [EMAIL PROTECTED] wrote: I'm confused - you're getting and modifying the onclick attribute? That seems... strange. --John On Thu, May 29, 2008 at 7:48 PM, Phil Christensen [EMAIL PROTECTED] wrote: Hi all, I've run into a strange issue that I believe is a bug in jQuery 1.2.6. I've posted a ticket along with a test HTML file at: http://dev.jquery.com/ticket/2959 As far as I can tell, attr() is not properly updating the value of a form attribute, although prior versions had worked fine. Any help in resolving this, or providing a workaround would be greatly appreciated. Thanks in advance, -phil- Ocultar texto de la cita - - Mostrar texto de la cita -
[jQuery] Is this bug in jquery???
i am using jquery version 1.2.3. I was trying to attach hover on area inside map. but find that its working ok in FF but not in IE. when i try to set area onmouseover= then it works for both IE n FF. is this the bug?? If IE supports onmouseover event for area tag inside map tag then hover should work. thnx Faraz
[jQuery] Possible typo/bug in jquery 1.1.3.1 source?
John, There is a comma at the end of line #694 in 1.1.3.1 jquery.js source, shouldn't this be a semi-colon? It's not part of an object literal, and may cause problems with IE6. We know how it loves extra commas. jQuery.styleFloat = jQuery.browser.msie ? styleFloat : cssFloat, to jQuery.styleFloat = jQuery.browser.msie ? styleFloat : cssFloat; Regards, Mike Kidder