Something like this should work:

$('a[rel="dialog"]).click(function() {
    $('<div></div>').load(this.href).dialog();
    return false;
});

On Feb 18, 1:21 pm, Tonkatsufan <[email protected]> wrote:
> Hi,
>
> I would like to automatically make a number of links on my page (with
> the rel="dialog") attribute set open their target via AJAX in the
> dialog. Exactly what the Facebox plugin does.
>
> I guess it would be possible but I am not sure how to implement it.
>
> Thanks for your help
>
> tonki
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to