javascript - IE 9 - Object doesn't support property or method 'Format' -



javascript - IE 9 - Object doesn't support property or method 'Format' -

need little help here.

i decided transfer of javascript function in 1 .js file. functions working in other browser except ie.

note: code below store in separate js file "my_js.js"

var dialogconfirmed = false; function dialogconfirmation(obj, title, dialogtext) { if (!dialogconfirmed) { $('body').append("<div id='dialog' title='" + title + "'>'" + dialogtext + "'</div>"); $('#dialog').dialog ({ height: 150, modal: true, resizable: false, draggable: false, close: function(event, ui) { $('body').find('#dialog').remove(); }, buttons: { 'yes': function() { $(this).dialog('close'); dialogconfirmed = true; if (obj) obj.click(); }, 'no': function() { $(this).dialog('close'); } } }); } homecoming dialogconfirmed; }

usage

<asp:button id="btnalert" runat="server" text="alert" onclientclick="return dialogconfirmation(this, 'popup header', 'popup body message');" onclick="btnalert_click" />

when clicking button throws , error pointing method "format"

**microsoft jscript runtime error: object doesn't back upwards property or method 'format'**

but checking code doesn't utilize 'format'. thought on error? i'm using ei 9 on workstation.

i have wrote same code , itz working fine. please seek once. thanks.

<%@ page language="c#" autoeventwireup="true" codebehind="webform1.aspx.cs" inherits="webapplication8.webform1" %> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="scripts/jquery-1.9.1.js" type="text/javascript"></script> <script src="scripts/jquery-ui-1.10.1.custom.js" type="text/javascript"></script> <script type="text/javascript"> var dialogconfirmed = false; function dialogconfirmation(obj, title, dialogtext) { if (!dialogconfirmed) { $('body').append("<div id='dialog' title='" + title + "'>'" + dialogtext + "'</div>"); $('#dialog').dialog ({ height: 150, modal: true, resizable: false, draggable: false, close: function (event, ui) { $('body').find('#dialog').remove(); }, buttons: { 'yes': function () { $(this).dialog('close'); dialogconfirmed = true; if (obj) obj.click(); }, 'no': function () { $(this).dialog('close'); } } }); } homecoming dialogconfirmed; } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:button id="btnalert" runat="server" text="alert" onclientclick="javascript:return dialogconfirmation(this, 'popup header', 'popup body message');" /> </div> </form> </body> </html>

javascript jquery asp.net

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -