Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery ui-dialog confirm button issue
    primarykey
    data
    text
    <p>Here is some Html + jQuery ui dialog code genereated by asp.net for the browser ..</p> <p>to my eyes it looks fine but the issue is, confirm button triggers click event for the link with the class specified, although the event does not get triggered.</p> <p>[Update: I changed the "$(".lDel_23").click();" to document.location.href= "javascript:__doPostBack('ctl00$ContentPlaceHolder1$ListView_Sections$ctrl1$LinkButton_Delete','')" and it called the function .. so the problem seems to be the click trigger not able to work correctly with the href of the link set to a javascript method .. although trying the manual click works the jQuery click trigger calling doesnt .. does that make any sense ???? ]</p> <pre><code> &lt;a href="#" id="aDel_23"&gt;&lt;/a&gt; &lt;a id="ctl00_ContentPlaceHolder1_ListView_Sections_ctrl1_LinkButton_Delete" title="Delete" class="lDel_23" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$ListView_Sections$ctrl1$LinkButton_Delete','')"&gt;&lt;/a&gt; &lt;div id="dialog_23" title="Confirm Delete"&gt; Delete Section [section name] &lt;/div&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $("#dialog_23").dialog({ autoOpen: false, modal: true, width: 400 }); // Link to open the dialog $("#aDel_23").click(function(event) { event.preventDefault(); $("#dialog_23").dialog({ buttons: { 'Confirm': function() { $(this).dialog('close'); $(".lDel_23").click(); }, 'Cancel': function() { $(this).dialog('close'); } } }); $('#dialog_23').dialog("open"); }); }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload