what am I doing wrong? No errors

guanete42

New Member
\[code\]function showComments(wallID){ $.ajax({ url: "misc/showComments.php", type: "POST", data: { mode: 'ajax', wallID: wallID }, success: function(msg){ var $msg = $('#showWallCommentsFor'+wallID).find('.userWallComment');// if it already has a comment, fade it out, add the text, then toggle it back inif ( $msg.text().length ) { $msg.fadeOut('fast', function(){ $msg.text( msg ).slideToggle(300); });} else { // otherwise just hide it, add the text, and then toggle it in $msg.hide().text( msg ).slideToggle(300); } } });}\[/code\]msg, the response i get: ( firebug )\[code\] <span class='userWallComment'><span style='float: left;'><img style='border: 1px solid #ccc; width: 44px; height: 48px; margin-right: 8px;' src='http://stackoverflow.com/questions/3736780/images/profilePhoto/thumbs/noPhoto_thumb.jpg'></span></span><span style='font-size: 10px; margin-bottom: 2px;'><a href='http://stackoverflow.com/questions/3736780/profil.php?id=1'>Navn navn</a> - ig?r kl. 01:55</span><br>DETTE ER EN TEST<br><div class="clearfloat"></div></span>\[/code\]It sends and execute the ajax call properly, and it have something in response, but it doesnt toggle it?This is the div:\[code\]<div id="showWallCommentsFor<?php echo $displayWall["id"]; ?>" style="display: none;"></div>\[/code\]
 
Back
Top