The .js file is included in the server CustomFiles: files/push_notification.js I'm calling the following on a button click in the client main form:
procedure PushNotification(sTitle, sMessage: String);
var
sJS: String;
begin
sJS := Format('jQuery(document).ready(function($){$.notify("%s",{title: "%s", icon: ""});});', [sMessage, sTitle]);
UniSession.AddJS(sJS);
end;
But I get the following error:
I can put the JS code into the script directly and it works fine but I can't get the interaction between calling the "notify" function and the library .js file to work. I assume it's not finding the library?
It seems to be one of those aspects not well documented, I'd really appreciate if someone could tell me what I may be missing...
JSTest.zip