it won't work

the right way is

$.get("totals.php",function(data){
$("#targetDiv").html(data);
});

^.^

Michael

On 8/24/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> I am not totally sure how get() works.  (Im lame)
> However, I am pretty sure load() works for you in this case.  Like:
>
> $("#targetDiv").load("totals.php");
>
> The first part needs to know where to put the output of the PHP.
>
> Glen
>
> On 8/23/07, Rotsen <[EMAIL PROTECTED]> wrote:
> >
> >
> > I am new to this group and JQuery.  I am reading a lot of stuff about
> > it but I nee to ask a question for something that I to create.
> > I have an area in my html page where I want to call a php script that
> > prints a total.
> > Is it as simple as this:
> >    $.get("totals.php" );
> >
> > Am I  in the rigth track?
> >
> > Thanks,
> >
> > Nestor :-)
> >
> >
>

Reply via email to