I really like the concept of 4.5 for client-server js interaction. Read the docs, but the implementation I find a little hard (it's new

How to achieve this?
Kind regards, Harry
Moderators: Jon, Steve, Ian, Dave
Code: Select all
fields.result.value = "Message you want to display";
fields.RESULT.getFieldControl().show(); // show the control displaying the field. you could also use controls.FIELDCONTROLx.show();
Code: Select all
$('.dialogText').dialog({
title: "My Super Awesome Dialog",
modal: true,
buttons: {
"Yes": function () {
$( this ).dialog( "close" ); // closes the dialog
$('#updateForm').trigger('click'); // triggers another button on the form with an id of updateForm
},
Cancel: function () {
$( this ).dialog( "close" );
}
}
});
Code: Select all
var result = $eb.executeFunction("validateUserInput", ...);
if(result !=="success"){
$("<p>" + result + "</p>").dialog({
modal: true,
buttons: {
"Ok": function() {
$(this).dialog("close");
},
Cancel: function() {
$(this).dialog("close");
}
}
});
}
Users browsing this forum: No registered users and 4 guests