> $(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 },



Reply via email to