Page 1 of 3

SimpleDialog show

PostPosted: 24 Apr 2014 17:16
by francesco
Hello.
I got stuck in using JQMSImpleDialog.

From 3rdPartyPlugin demo i saw the use of it but it is not 100% clear to me how to replaace

Code: Select all
WebApplication.ShowMessage(mystring)


with SimpleDialog counterpart.

Could you please post a simple demo?

Re: SimpleDialog show

PostPosted: 28 Apr 2014 10:24
by Alexander Bulei
Hi francesco,

I will provide your simple demo asap.

Best Regards.

Re: SimpleDialog show

PostPosted: 28 Apr 2014 10:41
by francesco
THank you, add it also to the demos provided with cgdevtools please.

Re: SimpleDialog show

PostPosted: 09 May 2014 09:59
by francesco
Hello, did you make this sample?

Re: SimpleDialog show

PostPosted: 09 May 2014 15:22
by Alexander Bulei
Hi francesco,

Sorry for delay, but I recommend you to use the standard dialog of jquery mobile .
Basically, simpledialog is deprecated, because is a jquery plugin and was made for previous version of jquery mobile,and now we can't remove it.

Attached simple demo of dialog.

Best Regards.

Re: SimpleDialog show

PostPosted: 13 May 2014 10:33
by francesco
I run your sample, but i have:

Exception message : Control 'IWForm1' has no parent window
Exception class : EInvalidOperation

I have XE2 and i read that there is a bug on frames, i don't know if this is the reason.

could you please update it to fix it?

Re: SimpleDialog show

PostPosted: 13 May 2014 11:20
by Jorge Sousa
Hello

there is nothing to fix, except that maybe you're running IW12 and this demo was made for IW14?

If yes delete and recreate the ServerController.OnNewSession, with the same code in the event handler,

ASession.Data := TIWUserSession.Create(nil);

Re: SimpleDialog show

PostPosted: 13 May 2014 11:58
by francesco
I am running IW14 on XE2. so?

Re: SimpleDialog show

PostPosted: 13 May 2014 12:06
by Jorge Sousa
So, unless you changed the source code, or maybe you didn't add the wwwroot (Delphi IDE menu CgDevtools + Selected Project + Sychronize wwwroot), everything should be running fine. I can put the binary somewhere, so that you can confirm.

Re: SimpleDialog show

PostPosted: 13 May 2014 12:06
by Alexander Bulei
Hi francesco,

What is your version of IW?

Best Regards.