CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

IWCGJQShowMessage

by etwoss » 04 Jul 2014 14:13

Hi

Running the demo i can't get IWCGJQShowMessage.ShowNotification working (IE and Chrome)
Any idea why not?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 07 Jul 2014 09:49

No
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by etwoss » 07 Jul 2014 09:54

Does it work with you?
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 07 Jul 2014 10:17

Hi

In jQueryDemo_V2 it does work
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by etwoss » 07 Jul 2014 10:43

Hi

Tested again

Hmmmm..... all buttons work except the notification, not in Chrome , IE and FireFox
No errors in debug
Strange

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 07 Jul 2014 10:59

Hi,

Fixed the ShowNotification method, available in the next build.

Thanks.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 07 Jul 2014 11:01

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;
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58


Return to JQShowMessage

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.