I had a problem running some ajax code in IE and I believe the problem turned out to be having the "console.log();" code in there.
Try commenting that out and see if it runs ok in IE. Rick > -----Original Message----- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of jay > Sent: Saturday, January 24, 2009 9:00 AM > To: jQuery (English) > Subject: [jQuery] Re: AJAX data in IE > > > When I click any of the links I get jQuery undefined script error line > 119 in IE > > On Jan 24, 8:20 am, Charlie22 <ch...@post.cz> wrote: > > sry it didnt work, because console.log there.. > > > > On 24 Led, 14:12, Charlie22 <ch...@post.cz> wrote: > > > > > > > > > thx for tip, but no success. Try to check this > > > page..http://83.240.47.84/skyrace22/pilots.php > > > works everywhere, only IE failed.. > > > > > On 24 Led, 13:38, Mike Alsup <mal...@gmail.com> wrote: > > > > > > > $(function(){ > > > > > $('.tablesorter').tablesorter({widgets: ['zebra']}); > > > > > $('#subMenu a').click(function(){ > > > > > var trida = $(this).attr('href'); > > > > > console.log(trida); > > > > > $('#content>*').remove(); > > > > > $.ajax({ > > > > > url: 'pilots.php', > > > > > cache: false, > > > > > type: 'POST', > > > > > dataType: 'html', > > > > > data: 'trida='+trida, > > > > > success: function(html){ > > > > > $('#content').append(html)} > > > > > }); > > > > > return false; > > > > > }); > > > > > > > }); > > > > > > > this code works great, but not in IE. Problem is causing by value > > > > > "data". > > > > > If I set: data: 'trida=15', than everything goes OK, but if I set > > > > > valeu from variable, IE return only a little part of requesting page. > > > > > So what is wrong in my AJAX code? > > > > > > Try using an object for your data arg so that jQuery properly encodes > > > > the values. So instead of: > > > > > > data: 'trida='+trida, > > > > > > try this: > > > > > > data: { trida: trida },- Skrýt citovaný text - > > > > > > - Zobrazit citovaný text -- Skrýt citovaný text - > > > > > - Zobrazit citovaný text -- Hide quoted text - > > > > - Show quoted text -