Bug Tracker

Modify

Ticket #5133 (closed bug: invalid)

Opened 4 years ago

Last modified 14 months ago

IE, internet explorer, innerhtml, html(), .html(), $().html update of innerHTML does not work

Reported by: jorenchong Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

refering to  http://dev.jquery.com/ticket/1029

The main problem is that after an ajax call, the ,html() is not be updated. You can do an empty(), but that does not help at all. I have figured this out in several hours (damn it was mindcracking) ... The trick is to do an AJAX call within an AJAX call at the success and gaurantee you have your site working as you wanted!

Here an exemple :

$.ajax({url:'modifyarticle.php',type:'POST',data:{id:this.id,article:'spa',mode:'single',article:'spa',action:'delete'}, cache:false,success:function(msg) {alert(msg);$.ajax({url:'getallarticles.php?articles=spa',type:'GET',cache: false, success: function(data) {$('#outputspa').html(data);}});}});

Hope this will help someone

Jo

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

This doesn't appear to be a bug report.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.