IWCGJQShowMessage

Posted:
04 Jul 2014 14:13
by etwoss
Hi
Running the demo i can't get IWCGJQShowMessage.ShowNotification working (IE and Chrome)
Any idea why not?
Eric
Re: IWCGJQShowMessage

Posted:
07 Jul 2014 10:17
by Jorge Sousa
Hi
In jQueryDemo_V2 it does work
Re: IWCGJQShowMessage

Posted:
07 Jul 2014 10:43
by etwoss
Hi
Tested again
Hmmmm..... all buttons work except the notification, not in Chrome , IE and FireFox
No errors in debug
Strange
Eric
Re: IWCGJQShowMessage

Posted:
07 Jul 2014 10:59
by Alexander Bulei
Hi,
Fixed the ShowNotification method, available in the next build.
Thanks.
Best Regards.
Re: IWCGJQShowMessage

Posted:
07 Jul 2014 11:01
by etwoss
Hi
OK,
Thanks
Did find that it will work if i change JS.Text; from
' alertify.log("Test notification!", "success" , true, null); '
to
' alertify.log("Test notification!", "success" ); '
function TIWCGJQShowMessage.GetNotificationJS(const AMsg: string; const AType: TIWCGJQShowNotificationType;
const AWait: Integer; const ACanClose: Boolean; const ALogID: string): string;
var
JS: TIWCGJScript;
s: string;
LId: string;
begin
JS:= TIWCGJScript.Create;
try
if ALogID = '' then
LId:= 'null'
else
LId:= QuotedStr(ALogID);
with JS do
begin
Add(GetSetPropsJS);
if AWait > -1 then
s:= Format(', %d',[AWait]);
AddF('alertify.log("%s", "%s" %s, %s, %s);',[AMsg,IWCGJQShowNotificationTypeStr[AType],s,JQBoolStr(ACanClose),LId]);
end;
Result:= JS.Text;
finally
JS.Free;
end;
end;