Hi, i am using this function ew.modalDialogShow on custom files and its working fine… i need to get the response when successfully done but i am facing an error on dialog close and successful update/add.http://localhost/undefined 404 (Not Found) further detail{statusCode: 404,…}
error: {class: “text-warning”, type: “Not Found”, description: “Route ‘undefined’ not found.”}
class: “text-warning”
description: “Route ‘undefined’ not found.”
type: “Not Found”
statusCode: 404How to resolve this error. purpose is to show the response/toastany idea or help in this regards will highly be appreciated. i am using version phpmaker2023.
muttou wrote:
http://localhost/undefined 404 (Not Found) further detail
error: {class: “text-warning”, type: “Not Found”, description: “Route ‘undefined’ not found.”}
It seems that your server side returned a URL “http://localhost/xxx” which does not exists. You should check HTTP response and check what the server side returned. You may use Page_Redirecting server event to change the return URL, but if your purpose is to show an alert, your server side should return JSON, e.g. { successMessage: “My success message” }.