Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("a#plink").live('click' , function(event){
- $.ajax({
- url: "ajax/ajax.php?func=View_Post&pid="+$(this).attr("pid"),
- type: "GET",
- dataType: "html",
- beforeSend: function(){$("#div1").text("Loading...")},
- success: function(msg){func2(msg)}
- });
- $("#div1").css('height' , 'auto');
- event.preventDefault();
- });
- function func2(msg){
- $("#div1 > img").load(function(){$("#div1").html(msg)});
- }
Add Comment
Please, Sign In to add comment