Bug Tracker

Modify

Ticket #3338 (closed bug: invalid)

Opened 5 years ago

Last modified 4 years ago

div is null

Reported by: RaiDeR Owned by:
Priority: major Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: Cc: RaiDeR, flesler
Blocking: Blocked by:

Description

In any way I do not can in what problemma jquery gives out an error in time: $('#advert').html(data); What can problemma be in? How to correct it?

Error: div is null  http://***/files/js/jquery-1.2.6.pack.js Line 997

function check_mcontent() {

mcontent = $('#mcontent').attr('id'); if (!mcontent) {

$('#pcontent').html('<table width="1000" cellspacing="0" cellpadding="0" border="0"><tr><td width="600" valign="top" align="left"><div id="mcontent" style="width: 670px"></div></td><td><div id="advert"><img src="/files/images/loading.gif" /></div></td></tr></table>');

$.post('/libs/ajax/block_inn.php?rand='+Math.random(), {},

function(data){ $('#advert').html(data);

});

}

}

Change History

comment:1 Changed 5 years ago by flesler

  • Cc RaiDeR, flesler added
  • need changed from Patch to Test Case

Can you turn this loose data into a formal test case ? a minimalistic html file with the requires html and js to reproduce the problem. Thanks.

comment:2 Changed 4 years ago by dmethvin

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

Old bug with no test case.

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.