jquery - Call custom confirm dialog in Ajax.Beginform in MVC3 -


i want able use custom jquery dialog or @ least able change text of buttons ok/cancel else when using ajaxoptions.confirm property in ajax.beginform function. this:

<div>     @using (ajax.beginform("function", "controller", new { id = theid }, new ajaxoptions         {             httpmethod = "post",             updatetargetid = "theform",             insertionmode = insertionmode.replace,             loadingelementid = "icongif",             onbegin = "onbegin",             onfailure = "onfailure",             onsuccess = "onsuccess",             confirm = "are sure?" //todo: confirm different dialog?         }, new { id = "feedback-form" }))     {         //some stuff         <button onclick="derp()">submit</button>     } </div> 

is there way achieve ajax.beginform through ajaxoptions.confirm property?

no, cannot achieve confirm property of ajaxoptions. uses window.confirm javascript method doesn't allow ui customizations , browser dependent. have implement functionality yourself. example might want checkout jquery ui dialog plugin.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -