Benjamin Sterling wrote:
> I actually have another question, and I appreciate you help so far, 
> but I need to execute a function everything a view is pulled in to 
> change text, but I do something like below and no luck.
>
>     $('#ex1a').jqm({ajax: strUrl, trigger: elem},
>                    function(h){
>                        switchTxt();
>                        h.w.show();
>                     },
>                    function(h){h.w.jqmClose();$('.jqmWindow').empty();});
>
> switchTxt(); would normally be put in my ajax calls when the call is 
> successful, any help on this would be great.
>
Benjamin,

  I am at odds @ what you're trying to accomplish (as I can't guess @ 
the function of switchTxt()). If you need a to use custom AJAX routines, 
you can do so in a onOpen callback (without passing ajax as a parameter 
to jqModal). e.g.;

$('#ex1a').jqm({trigger: elem},
 function(h){
  h.w.html('loading....').show();
  h.w.load('remote.html',function() { switchTxt(); });
 });

Hope this helps,

~ Brice

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to