नेस्टेड AJAX 'सफलता' फ़ंक्शन के भीतर से $ (इस) को संदर्भित करने वाले मुद्दों को लेकर ... मुझे पता है कि यह एक दायरा मुद्दा है, लेकिन सफल अपडेट पर संवाद बंद करने के लिए एक साफ तरीका नहीं दिख रहा है। किसी भी मदद के लिए धन्यवाद।
$("#dialog_support_option_form").dialog({
width: 400,
height: 180,
bgiframe: true,
autoOpen: false,
modal: true,
buttons: {
'Save Support Option': function(){
$.ajax({
type: 'POST',
url: "support_options/create_support_option.php",
data: $(this).find('form').serialize(),
success: function(data){
$("#list_support_options").html(data);
$(this).dialog('close');
}
});
},
'Cancel': function(){
$(this).dialog('close');
}
},
close: function(){
$(this).find('input').val('');
}
});
बूम, बैंग, ज़िंग का उपयोग नहीं करने की उम्मीद कर रहा था। ठीक वही जो मेरे द्वारा खोजा जा रहा था। इस विकल्प के बारे में अफवाह सुनाई लेकिन उसे नहीं मिला। धन्यवाद। – uberdanzik
शानदार, आपने मुझे भी मदद की – Binaryrespawn