If found this entry on another forum: http://www.nabble.com/jqModal-ajax-question-t4664038s27240.html
I implemented the following which works for me: <a href="#" onClick="javascript:loadUrl('2');return false;">Click Me</ a> <div class="jqmWindow" id="detail_window"> Please wait... <img src="img/busy.gif" alt="loading" /> </div> <script language="JavaScript"> var infoWindow_url = false; $().ready( function() { $('#detail_window').jqm( { onShow: function(hash) { hash.w.load(infoWindow_url); hash.w.show(); }, ajax:false }); } ); function loadUrl(id) { infoWindow_url = 'location_detail.php?id=' + id; $('#detail_window').jqm().jqmShow(); } </script> I am sure there is a way to make this prettier, but I havent the time at the moment. Hope this helps. J On Nov 12, 12:49 am, raptor <[EMAIL PROTECTED]> wrote: > hi, > I have let say an element which I use as for dialog's let say : > <div id=dialog><div id=content></div></div> > > then i use : > > $('#dialog').jqm({ ajax: url, target: '#content' }); > > so far ok.. it works. But now I want to reuse this dialog. > But if I try to bind again with different url2: > > $('#dialog').jqm({ ajax: url2, target: '#content' }); > > It still uses the old url for ajax fetch ?? > How can I change this behavior, so I can pass different urls ? > > Opps forgot the most important thing, I'm using jqModal ;)