I have replaced the following:
$(_o.trigger).bind("click",{'s':s},function(e) {
return (!hash[e.data.s]['active'])?$.jqm.open(hash[e.data.s],this):false;});
// sending the hash instead of it's index
open:function(mh,trig){ // using the hash directly
var h=mh; h.t=trig;
var c=h.c; h.cc='.'+c.closeClass;
var z=c.zIndex; if (c.focus) z+=10; if (c.overlay == 0) z-=5;
if(!$.isFunction(h.q)) h.q=function(){return $.jqm.close(mh)};
h['active']=true;
....
close:function(mh){var h=mh; h['active'] = false;
Now, I'm new to javascript and to jQuery, and I don't know if the solution
is optimal, but it worked for me.
Still have to work with some call back issues, but I think I just saw
something about that posted yesterday.
If you have comments on my changes or a better solution please let me know.
On 2/20/07, Abdallah <[EMAIL PROTECTED]> wrote:
Nope, nothing in he forums.
I hacked some code last nite, and I think I have a solution, but it's a
patch to jqModal. I'll post it in a bit.
On 2/19/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> Abdallah,
> Try rebinding it, I ran this in firebug once the pages was loaded and
> then I clicked on the edit link and it worked.
>
> ran:
>
> $("#ex1b").jqm({ajax: "@name", trigger: "
> a.edit_trigger"}/*,
> function(h) { h.w.css("opacity",0.92).slideDown();
},
> function(h) { refreshListing(w, o, n, r, a); }*/
> );
>
>
> So, I would suggest that you put that code in your pages you are pulling
> in or (assuming that is what you are already doing) do a search thru the
> forum and I think someone else had a similar issue and was solved with that
> answers provided.
>
> --
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
Abdallah Deeb
--
Abdallah Deeb
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/