security - jQuery Modal Dialog, ie6 secure non-secure error, https ssl -
security - jQuery Modal Dialog, ie6 secure non-secure error, https ssl -
(please don't bother asking why back upwards ie6.)
we're creating custom alert/confirms using jquery modal dialog. i've created div xsl (in examples, took of xsl out , set in raw html avoid confusion). div triggered using jquery. wrote couple functions (that open dialog, pass message, , function) can implement new alert/confirm using javascript (basically replacing alert(); uialerterror();).
some of info not important. can more specific, main issue here in ie6 "this page contains both secure , nonsecure items, want display nonsecure items?" error. works correctly in ie7, ie8, firefox, safari, , chrome.
from i've read there mutual issues such as: http:// needing https:// (or http:// //, alter relative opposed absolute), src's empty, mixed content, etc. underlying theme of of (from i've gathered) getting things load secure, since we're on secure page. not issue!
i've isolated problem downwards jquery (i tested new code; got error. commented new code out; error went away. uncommented xsl, left jquery commented out; error still gone. commented jquery in, error came back).
here javascript:
here functions wrote replace alert(); :
function uialerterror(msg, ok_func){ document.getelementbyid('alert_id_img').src="images/dialog_warning.png"; uialert(msg, ok_func); } function uialertcheck(msg, ok_func){ document.getelementbyid('alert_id_img').src="images/dialog_check.png"; uialert(msg, ok_func); } function uialert(msg, ok_func){ document.getelementbyid('alert_id_msg').innerhtml = msg; $("#alert_id").dialog("open"); $("#alert_ok").click(function(){ if(ok_func == undefined || ok_func == ''){ $("#alert_id").dialog("close"); }else{ eval(ok_func); $("#alert_id").dialog("close"); } }); }
here jquery:
$(function() { $("#alert_id").dialog( "destroy" ); $("#alert_id").dialog({ width: 325, modal: true, resizable: false, draggable: false, minheight: 90, autoopen: false }); });
i'm sure has either jquery implementation or jquery itself.
this page not hosted publicly.
thanks help! tony
i have same issue working jquery , xslt + ajax on ie6.
the problem destroy. set alert(1) before destroy , alert(2) after it, , see mixed security occurs between.
in code looks this:
$("#box").dialog("close"); alert(1); $("#box").dialog('destroy').remove(); alert(2);
i'm still looking improve way of disposing of dialog, since i'm using ajax, page keeps #box around , have 2 instances of #box if not disposed.
jquery security dialog modal-dialog
Comments
Post a Comment