tags:

views:

30

answers:

1

The Code-

$.ajax({
    url: "edit.php",
    success: function(html)
    {
     $("#last").html(html).hide().slideDown('slow');
         alert("hello");
    }
});

Mozilla shows it all fine. Where as IE (being the normal PMS *) doesn't load anything into #last but does show the alert, what could be the problem?

I thought javascript was browser independent?

A: 

You are missing quotes around the url:

$.ajax({
    url: 'edit.php',
    success: function(html) {
        $('#last').html(html).hide().slideDown('slow');
        alert('hello');
    }
});
Darin Dimitrov
The quotes are there, sorry typo.
Sussagittikasusa
If you remove the `.hide().slideDown('slow')` part, is it working properly? Also why are you calling the `.hide()` method? Also shouldn't you inverse the order of `.hide` and `.slideDown` calls: `$('#last').html(html).slideDown('slow').hide();`
Darin Dimitrov
Yes, that works :]. But i'm not able to get the animation now :[
Sussagittikasusa
Any idea how to work it?
Sussagittikasusa