javascript - Unable to return data from $.post to display using jquery? -
my html content this:
<table> <tr> <th>log1 column</th> <th>log2 column</th> <th>log3 column</th> </tr> <tbody id="bottomlogtable"></tbody> </table> somehow i'm not getting return data $.post in #bottomlogtable location firebug says 200 ok, meaning data returned.
$("#logclick").live("click", function() { $.post("node2542.txt", function(data) { $("#bottomlogtable").append(data); // not display returned data $("#bottomlogtable").html(data); // not display returned data }); }); any suggestions or ideas me going in right direction in resolving issue?
edit: if receive response still not working may cross-domain issue. may try putting text file in exact same domain page see if work...
and may worth mentionning live deprecated in last version of jquery...
as of jquery 1.7, .live() method deprecated. use .on() attach event handlers
Comments
Post a Comment