Hi All,

Anyone know if it's possible to make ajax calls from inside a jqModal popup window that was loaded via ajax? I have code like this:

   $(document).ready( function() {
       $('#userSwitcher').hide();
$('#userSwitcher').jqm({
           trigger:'a.jqmTrigger',
           ajax:'/pos2/purchase/quick_change.cfm',
           target:$('#users'),
           modal:true,
           onShow:function(h){
               h.w.show();
           }
       });
   });

<a id="aUserSwitcher" href="##" class="jqmTrigger">Switch</a>

<div id="userSwitcher" class="jqmWindow" style="width:600px;height:500px">
   <div id="users"></div>
</div>

and have included jqModal.js and jqModal.css in the calling page, then in the quick_change.cfm file I'm doing additional ajax calls:

       var url = something.html
       $.get( url, function(template){
           etc....

but that $.get() never fires AND the userSwitcher div loads up real quick, then the whole page goes white and goes nowhere: it just spins.

Bug? Is this possible via jqModal? I'm pretty sure I had something like this working with the thickbox plugin a few months ago, but the jquery.com site was down earlier tonight when I went fishing for the latest code to try to use, so I tried using jqModal.

TIA,
Jack





Reply via email to