I usually do so:
By your page empty div: <div id="temp" style="display: none"> </ div>
and use the following method:

$.ajax({
  url:'/index.php',
  type:'GET',
  success: function(data) {
      $('#temp').html(data);
      $('body').html($('#temp').html());
      $('#temp').html('');
  }
})
   Gk___
Sent from Minsk, Belarus



2009/10/20 WebHamster <rbruehlm...@pilatus-aircraft.com>:
>
> Hi all ...
>
> I have some small problems with Jquery ...
>
> I have a index.php site, inside this file it gives some <div>'s with
> ID's. When i load the index.php file (over $.ajax), it isnt accessible
> for me  ... i thinks its better when i make a example...
>
> $.ajax({
>   url:'/index.php',
>   type:'GET',
>   success: function(data) {
>       var responseText = $(data);
>       $('body').html(responseText.find('body').html());
>   }
> })
>
> This example does not work by me, make i something wrong? Another
> issue is, that i can only find elements that are enclosed by a <div>
> tag, but a <body> tag i cant make the <div> arround, because outside
> of <body> <div>'s will not be recognized ...
>
>
> Anybody have me a hint for this? Thanks a lot and have a nice day ...
>
>
> Cheers
> WebHamster
>

Reply via email to