コンテンツを動的に変更できません。.selector.qtip('api')。set('content.text'、new content)を試しましたが、何も行われず、.selector.qtip('option'、contentを試しました。テキスト'、新しいコンテンツ)
("[ID*='lnkLogIn']").live("click", function (event) {
$(this).qtip("destroy");
$(this).qtip({
id: 'modal',
content: {
text: "Loading...",
ajax: "/DesignerUtils/Component/Other/Login.aspx",
title: {
button: true
}
},
position: {
my: 'center', // ...at the center of the viewport
at: 'center',
target: $(window)
},
show: {
event: false,
ready: true,
solo: true, // ...and hide all other tooltips...
modal: true // ...and make it modal
},
hide: false,
style: 'ui-tooltip-light ui-tooltip-rounded modal1',
events: {
render: function (event, api) {
api.set('content.text', event);
$(this).qtip('api').set('content.text', 'new content');
function errorHandler(jqXHR, message) {
// Set the error and show/hide it
$('.error', api.elements.tooltip).html(message || '').toggle(!!message);
}
$(this).find('#register').live('click', function () {
$.ajax({
type: "POST",
url: "../log.asmx/GetRegisterForm",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
$("[ID*='lnkLogIn']").qtip('api').set('content.text', msg); // <---- HERE I WANT DINAMICALY CHANGE CONTENT
},
error: function (xhr, status, error) {
// Show the error
alert(xhr.responseText);
}
});
});
$(this).find('#Login').live('click', function (event) {
var username = $(this).parent().find('.username').val();
var password = $(this).parent().find('.password').val();
$.ajax({
type: "POST",
url: "../log.asmx/GetRSSReader",
data: "{username: '" + username + "', password: '" + password + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
if (msg) {
setTimeout(function () { window.location.reload() }, 200);
}
},
error: function (xhr, status, error) {
// Show the error
alert(xhr.responseText);
}
});
});
}
}
});
});
});
変えなければならない場所を選びました。