JQuery संवाद मुझे हाल ही में बहुत दर्द दे रहा है। मेरे पास निम्न div है जिसे मैं पॉप अप करना चाहता हूं। (ध्यान न दें कि कक्षाओं वाक्य रचना में दोहरे उद्धरण चिह्नों को नहीं दिखाते)Jquery Dialog - प्रारंभिकरण के बाद div गायब हो जाता है
TABLE class=widget-title-table border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD class=widget-title><SPAN class=widget-title>Basic Info</SPAN></TD>
<TD class=widget-action>
<DIV id=edit-actions jQuery1266325647362="3">
<UL class="linkbutton-menu read-mode">
<LI class="control-actions">
<A id="action-button" class="mouse-over-pointer linkbutton">Delete this stakeholder</A>
<DIV id="confirmation" class="confirmation-dialog title=Confirmation">
Are you sure you want to delete this stakeholder?
</DIV>
</LI></UL></DIV></TD></TR></TBODY></TABLE>
इस के लिए JQuery है ...
$(document).ready(function() {
$('#confirmation').dialog({
bgiframe: true, modal: true, autoOpen: false, closeOnEscape: false,
draggable: true, position: 'center', resizable: false, width: 400, height: 150
});
});
और संवाद '
var confirmationBox = $('#confirmation',actionContent);
if (confirmationBox.length > 0) {
//Confirmation Needed
$(confirmationBox).dialog('option', 'buttons', {
'No': function() {
$(this).dialog('close');
},
'Yes': function() {
$('ul.read-mode').hide();
$.post(requestUrl, {}, ActionCallback(context[0], renderFormUrl), 'json');
$(this).dialog('close');
}
});
$(confirmationBox).dialog('open');
}
द्वारा open'ed है
समस्या प्रारंभ में ही शुरू होती है। जब दस्तावेज़ लोड होता है, तो <div #confirmation>
मार्कअप से हटा दिया जाता है! मुझे पहले एक समान समस्या थी, लेकिन मैं यहां उस समाधान का उपयोग नहीं कर सकता। इस पृष्ठ पर मेरे पास एकाधिक पॉपअप divs हो सकते हैं।
जब मैंने इसे खोलने से ठीक पहले प्रारंभिक जोड़ा; फॉर्म पॉप अप किया। लेकिन जब मैं इसे बंद करता हूं, div हटा दिया जाता है; तो मैं पॉपअप फिर से देखने में सक्षम नहीं हूँ।
क्या आपने फ़ायरबग में कंसोल को देखा है कि क्या कोई त्रुटियां हैं या नहीं? – Samuel
कंसोल – Zuber
पर कोई त्रुटि नहीं दिखाई गई है आप jquery ui – ant