hi friends! i would like to use the jqModal plugin in an addressbook-like application, where, from the list of contacts, clicking on an icon next to a contact show the full contact information in a jqModal window.
the html i have is unobtrusive: <a href="fetch_contact_details.app.php?contact_id=8" title="Click to read all contact data" class="view jqModal"> </a> jqModal gets its parameters like this: $().ready(function() { $('#ex2').jqm({ajax: 'examples/2.html', trigger: 'a.ex2trigger'}); }); so what i need is to replace 'examples/2.html' by the value of $ (<trigger>).attr('href') But i'm either not seeing the obvious or it seems like it is not possible because jqModal extends the modal window element (receiving the loaded data), not the clicked element - the trigger. $('#modalWindow').jqm({ajax: $(this).attr('href'), trigger: 'a.jqModal'}); does not make the ajax call work. Any idea how i can make it work? jqModal is a wonderful plugin i would hate to have to use thickbox again. thanks, Alexandre