Page 1 of 1

IWCGJQShowMessage

PostPosted: 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

PostPosted: 07 Jul 2014 09:49
by Jorge Sousa
No

Re: IWCGJQShowMessage

PostPosted: 07 Jul 2014 09:54
by etwoss
Does it work with you?

Re: IWCGJQShowMessage

PostPosted: 07 Jul 2014 10:17
by Jorge Sousa
Hi

In jQueryDemo_V2 it does work

Re: IWCGJQShowMessage

PostPosted: 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

PostPosted: 07 Jul 2014 10:59
by Alexander Bulei
Hi,

Fixed the ShowNotification method, available in the next build.

Thanks.

Best Regards.

Re: IWCGJQShowMessage

PostPosted: 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;