This is definitely possible. Create your jqModal window with the AJAX user interface on it. Set up event handlers as usual so that the form is submitted via AJAX. You can use $("#myWindow").jqmHide() as normal if you want to close it programmatically.
Scott - I'd advise keeping discussions like this on the list, that way the solution can be found by others looking for it in the future.
--rob
<div><span class="gmail_quote">On 7/11/07, <b class="gmail_sendername">
Scott Trudeau</b> <<a href="mailto:scott.trudeau@gmail.com">
scott.trudeau@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think you can do this. Ping me tomorrow at scott AT pando DOT com with more detail to see if what you're trying to do is something I've recently done.
Scott<div><span class="e" id="q_113b2a9ddf246112_1">
<div><span class="gmail_quote">On 7/10/07,
<b class="gmail_sendername">Jack Killpatrick</b> <<a href="https://mail.google.com/mail?view=cm&tf=0&to=jack@ihwy.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jack@ihwy.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Anyone?
I ended up giving up (for now) and switched to using thickbox for the
modal, but would rather use jqModal for this. FWIW, I don't want to
embed the ajax stuff that the modal needs to do in the parent page,
because the functionality is something that can be opened from any page
in the site, so I want it to be contained in the code for the modal that
is opened.
- Jack
Jack Killpatrick wrote:
>
> 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
> <a href="http://jquery.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jquery.com</a> site was down earlier tonight when I went fishing for the
> latest code to try to use, so I tried using jqModal.
>
> TIA,
> Jack
>
>
>
>
>
>
</blockquote></div>
<br clear="all">
</span></div><span class="sg">--
.|..
Scott Trudeau
scott.trudeau AT gmail DOT com
<a href="http://sstrudeau.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://sstrudeau.com/</a>AIM: sodthestreets
</span></blockquote></div>
<br clear="all">
--
Rob Desbois
Eml: <a href="mailto:rob.desbois@gmail.com">
rob.desbois@gmail.com</a>
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.