[jQuery] jqModal help: multiple triggers, different ajax url's

[jQuery] jqModal help: multiple triggers, different ajax url's


I have a page on which I've hidden a div for use as an adaptable modal
window:
<div id="modal" class="jqmWindow">
    <div class="modalTop">
        <div class="jqmClose"> ../images/btn/btn_close.gif </div>
    </div>
    <div class="target"></div>
</div>
I have 2 different types of triggers, for which I want to load 2 different
urls into the jqModal 'target'... let's call them:
.typeA ----> this.htm
.typeB ----> that.htm
I can get either of these to work, but not both at the same time:
$('#modal').jqm({ajax: 'this.htm', trigger: '.typeA', modal: 'true', target:
'.target'});
$('#modal').jqm({ajax: 'that.htm', trigger: '.typeB', modal: 'true', target:
'.target'});
What's the correct construction to get the both working on the same page?
--
View this message in context: http://www.nabble.com/jqModal-help%3A-multiple-triggers%2C-different-ajax-url%27s-tf4065036s15494.html#a11550361
Sent from the JQuery mailing list archive at Nabble.com.