[jQuery] Re: How to pass variable from link

2007-05-30 Thread qt

Hello MikeR

Thank you for your reply.
I read the article about $.ajax but somehow could not figure out a
working  peace of code.

Do you have an example?

In PHP/HTML the link to do this would look something like this:
edit

What do I have to put into the a-container and what does the jquery-
function look like?

Any snippet would be highly appreciated!

QT

On May 29, 4:18 pm, MikeR <[EMAIL PROTECTED]> wrote:
> http://docs.jquery.com/Ajaxwould be a good start =).
>
> You'll want to make an Ajax call ($.ajax, $.get, $.post... whichever)
> and use "data" to pass back data to PHP.
>
> qt wrote:
> > Hello list
>
> > Let's say I have a list of items (retrieved from a mysql-db with PHP).
>
> > To edit the records, one has to click a link (item 1 > a>) which opens a form (achieved with the show/hide jquery).
>
> > How can I pass the id of an item back to php.
>
> > I guess I have to use the $.get or $.post function, but I am stuck on
> > this.
>
> > All help is highly appreciated!
>
> > Thanks.
> > QT



[jQuery] Re: How to pass variable from link

2007-05-29 Thread MikeR

http://docs.jquery.com/Ajax would be a good start =).

You'll want to make an Ajax call ($.ajax, $.get, $.post... whichever)
and use "data" to pass back data to PHP.

qt wrote:
> Hello list
>
> Let's say I have a list of items (retrieved from a mysql-db with PHP).
>
> To edit the records, one has to click a link (item 1 a>) which opens a form (achieved with the show/hide jquery).
>
> How can I pass the id of an item back to php.
>
> I guess I have to use the $.get or $.post function, but I am stuck on
> this.
>
> All help is highly appreciated!
>
> Thanks.
> QT