[jQuery] Re: IE Problems
Sorry Double Post... ignore this one and look at Jquery 1.6rc6 Dialog Boxes Internet Explorer Bugs Thanks -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of KevinM2k Sent: 19 February 2009 15:11 To: jQuery (English) Subject: [jQuery] IE Problems Hi, I am using 1.6rc6, in firefox everything is absolutely great, but the problems come in Internet Explorer (6 and 7) Firstly the code i'm using to generate the dialog boxes is: function openDialog(title,node,w,h) { $('#'+node).dialog({ width : w, modal : true, height : y, title : title }); $('#'+node).dialog('open'); } In internet explorer however the height option seems to be totally invalid, for example if I pass through a height of 300, it gets a height of around 50, in almost all occasions it takes around 250 off the height, can this be explained anywhere? If I use a height of auto, it does show the form correctly however that is not how I want it to be. The shadow of the dialog box is also causing problems, in Firefox it is all the way around the dialog and looks great (which by the way doesn't expand with the dialog box if using auto for height), however in Internet explorer the top left is in the correct position, but due to padding property not making the box bigger as it does with firefox, the shadow does not show all the way around but only on the left and top edges of the dialog box. One more issue in IE, is in the ui.theme.css the very top css property (.ui-widget) has a font size of 1.1em, if I leave this font size in, the dialog box doesn't show in IE, but does in firefox, if I take it off or change font size to a % or px, it comes up (with all the issues described above). Any help on this would be great as its been causing my problems all day. Thanks Kevin
[jQuery] Re: IE problems with jQuery
The extra comma was indeed the problem!! Thanks much Mike!! On Nov 18, 5:01 am, Mike Alsup [EMAIL PROTECTED] wrote: [ 1, 2, 3, ] // IE chokes on the last comma Mike
[jQuery] Re: IE problems with jQuery
The GET call is being made, the problem seems to be in the success processing. DebugBar pops up a message: Line: 3 Character: 1 Code: 0 Error Message: Syntax error URL:http://ganymede/ This isn't very helpful as in Line 3 of what??/ Any explanations for a dumb newbie? Most likely the JSON data returned could not be evaled. Check it for trailing commas as IE is very picky about that. For example, the following can be evaled on all browsers except IE: [ 1, 2, 3, ] // IE chokes on the last comma Mike
[jQuery] Re: IE problems with prepend since 1.2.3?
To reply to my own befuddlement to maybe help others wrestling with IE, prepending something to the page's title doesn't work. Calling a function that prepended information from the JSON into the title tag was failing, and causing subsequent functions to fail. So, it wasn't version 1.2.3, but it is a quirk of jQuery that you can't modify the title tag. It could go wider than the title tag and include anything in the head, but I've not tested that scenario yet. And I say quirk of jQuery because I've found a wrong-around using straight javascript for now. -jody
[jQuery] Re: IE problems with prepend since 1.2.3?
Please paste in the code that calls the prepend function, the problem is most likely there. Karl Rudd On Thu, Feb 21, 2008 at 2:31 PM, jody [EMAIL PROTECTED] wrote: IE6 and IE7 since upgrading to jQuery 1.2.3 is targeting line 264 in the jquery.js (uncompressed) with the error message, Unexpected call to method or property access. Here's the bit in jQuery it's referencing: prepend: function() { return this.domManip(arguments, true, true, function(elem){ if (this.nodeType == 1) this.insertBefore( elem, this.firstChild ); }); }, Specifically line 264 is claimed to be the culprit: this.insertBefore( elem, this.firstChild ); . Per usual, Firefox, Safari, and Opera work fine. It could well be my code that's triggering my latest battle with IE, but I thought I'd at least ask here. I've spent the last 2-3 hrs or so refactoring, etc. to see if messy code was causing the problem, but no luck. I consistently get this same error from the MS script debugger. Maybe this is something someone else has run into, if so, any help is appreciated. Thanks, jody
[jQuery] Re: IE problems with prepend since 1.2.3?
Actually, I jumped the gun too soon I found out after more testing today. Elements are being prepended fine--the MS debugger is giving a false error. Instead, what's happening is IE doesn't like my ajaxStop call for whatever reason (well, it's likely a race condition that IE stumbles over but other browsers handle, but still a race condition that needs fixing). So now I'm off to debug that. Again, the culprit is more likely my code not jQuery. -jody