Hi. You can use this plugin with your own function. function makeModal(action) { $('#ex2').jqm({ajax: action,target: 'div.jq_content', trigger: false, modal:true }).jqmShow(); }
<a href="target.php" onclick="makeModal(this.href);">test modal</a> 2007/12/8, pixeline <[EMAIL PROTECTED]>: > > > 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 > > -- Yılmaz Uğurlu ~ jabber : [EMAIL PROTECTED] ~ http://www.2nci.com ~ İzmir