Well I seem to have been able to fix this. Still now 100% sure what the problem was though!
I originally had some header & footer info in the html page to be ajaxed into the modal window. I had it set up this way as I ahd hope dto allow uses with JS disabled to redirect to the page when the Modal version failed. I removed this as I was doing some code clean up and now my problem is fixed. I assume that some of that code was causing interference on the second display. Has anyone any nuggets of knowledge they can share about this behaviour? Cheers Tom On Feb 22, 3:37 pm, Tom <[EMAIL PROTECTED]> wrote: > Hi > > I use the following function to open modal windows by passing the > correspondingly ID & html url . > > function jqmWindow(div_id , page){ > $('div_id).jqm({ > //trigger: '#edit', > ajax: page, > target: false, > modal: true, /* FORCE FOCUS */ > onHide: function(h) { > h.o.remove(); // remove overlay > h.w.fadeOut(444); // hide window > }, > overlay: 10 > }).jqmShow(); > > } > > I use .jqmShow to open the window instead of the trigger which I have > commented out. > > The modal window opens and then I close it again by clicking a button > with class='jqmClose' associated to it. > > If I try to open the same modal window a second time it fails to work > and I get this error from firebug. > > H[this._jqm] has no properties > > jquery.jqModal.js (line 34) > > $.fn.jqmShow=function(t){return this.each(function(){if(! > H[this._jqm].a)$.jqm.open(this._jqm,t)});}; > > What am I doing wrong? I am using version * $Version: 2007.08.17 +r11 > > Cheers > Tom