[jQuery] jqModal, Ajax onLoad Problem On Jquery 1.2.3
Hi everyone.
I have got some problem jqModal and jquery 1.2.3, and here it is. <br clear="all">
I am creating simple modal like this.
$('#modalcontent').jqm({ajax: url,target: 'div.jq_content', trigger: false, modal:true, onLoad: modal_load }).jqmShow();
function modal_load (hash)
{
modalReady(this);
}
And it fires my "modal_load" function when ajax content loaded without any problem.
My loaded modal content contains inline script like this.
function modalReady(context)
{
$('a', context).click(function(){return false;});
}
In jquery 1.1.4 no problem, but when i used jquery 1.2.3 i am getting "modalReady<span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch"> is not defined" error.
</span><span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch"></span>jqModal load ajax content with this code:
r.load(u, function() {
if (c.onLoad) c.onLoad.call(this, h);
if (cc) h.w.jqmAddClose($(cc, h.w));
e(h); });
I checked that, jquery 1.1.4 and jquery 1.2.3 have very diffrerent "load" functions. I guess 1.2.3 does not evaulate inline scripts.
So, how can i solve this problem? I have to use jquery 1.2.3.
--
Yılmaz Uğurlu ~ jabber : <a href="mailto:metoikos@jabber.org">metoikos@jabber.org</a> ~ <a href="http://www.2nci.com">http://www.2nci.com</a> ~ İzmir