http://docs.jquery.com/Ajax/load

Just use the file name as an argument. You can pass data either as a
string ("name=Jeca&sur=Tatu") or as an object, and a callback function
to be executed when it's done:

$("#myobj").load("Page2.php",{id:1325,name:'something'},
function(data) { alert('I've just loaded: '+ data) });

- ricardo

On Oct 20, 8:32 pm, Flavio333 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> what I am trying to do is this... I have a link on a page when i click the
> link i want it to load "Page2.php?+..." into "myobj".
> here is some of the code i was working with... hope someone can help...
> Thank you.
>
>  <script>
>   $(document).ready(function(){
>    $("#generate2").click(function(){  
>          $("#myobj").fadeOut("fast");
>   $("#myobj").slideToggle("slow");
>         $("#myobj").load(" ****what goes here**** ");
>          $(this).toggleClass("active");
>         });
>          });
>   </script>
>
>   *********
>
> <div id="myobj" align="center">
>   <?php do { ?>  
>    "Page2.php?idctg_ctg=<?php echo $row_categorys['idctg_ctg']; ? " ><?php
> echo $row_categorys['name_ctg']; ?> <br>
>   <?php } while ($row_categorys = mysql_fetch_assoc($categorys)); ?>
>    </div>
> --
> View this message in 
> context:http://www.nabble.com/load-dynamic-content-into-myobj-tp20080199s2724...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to