David,
You can do something like:

<a href="this.htm" class="typeA">this</a>

$('a.typeA').click(function(){
$('#modal').jqm({ajax: this.href, trigger: '.typeA', modal: 'true',
target:'target'}).jqmShow();
return false;
});

On 7/26/07, David Mernin <[EMAIL PROTECTED]> wrote:


I am stuck with the same problem...

Hope someone can help! =)

On Jul 11, 3:26 pm, rolfsf <[EMAIL PROTECTED]> wrote:
> 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 thejqModal'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-...
> Sent from the JQuery mailing list archive at Nabble.com.




--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to