Hi, Just implement the falg so that specific data will show into the div. For Example: $.ajax({ type: "POST", url: "some.php?ajx=1", data: "name=test", success: function(data){ $("#div").html(data); } });
in file some.php if($_REQUEST['ajx'] == 1) { echo 'content will come here.'; } else { echo 'elese print the content like this'; } Regards, Anurag Pal On Tue, Aug 18, 2009 at 3:04 PM, ghost2008 <mariobei...@googlemail.com>wrote: > > Hello there, > > I am not sure, if this works. I make a function call with the ajax > option of jquery: > > $.ajax({ > type: "POST", > url: "some.php", > data: "name=test", > success: function(data){ > $("#div").html(data); > } > }); > > If I try this, the whole response data is shown in the specific #div. > Is there any possibility to load only the content of "#div" from > some.php? > > Thanks for your answers. > Regards