Page 1 of 1

NewWindow() using a TFrame + TIWCGJQDialogEx

PostPosted: 28 Mar 2014 05:59
by Aggie85
Howdy All!

I have been trying to replace the use of WebApplication->NewWindow() with a TFrame with a TIWCGJQDialogEx. The reason is I want to avoid the pop=up blockers.

Any how, I have tried adding a region to the dialog and the a label with properties RawText = True and Caption=URL where URL = Files/TermsAndConditions/Page.htm.

When I show the dialog, the dialog is shown but the URL I set in caption is show as the set URL (i.e. just the address).

So questions:

1) Can a TIWCGJQLabel or TIWCGJQLabelEx show a local page of information using a URL?

2) If not, any other suggestion?

Thanks,

Aggie85

Re: NewWindow() using a TFrame + TIWCGJQDialogEx

PostPosted: 28 Mar 2014 12:44
by Alexander Bulei
Hi aggie85,

Well, at current version we don't have this functionality, but we have implemented new property in V2.0.0.3463:

JQLabelEx:
- Added: new property LoadSourceOptions - Used to load the data/content from a url to label via ajax.


Best Regards.

Re: NewWindow() using a TFrame + TIWCGJQDialogEx

PostPosted: 28 Mar 2014 14:06
by Aggie85
cgdevtools wrote:Hi aggie85,

Well, at current version we don't have this functionality, but we have implemented new property in V2.0.0.3463:

JQLabelEx:
- Added: new property LoadSourceOptions - Used to load the data/content from a url to label via ajax.


Best Regards.


Thanks!

Have a great weekend!

Aggie85

Re: NewWindow() using a TFrame + TIWCGJQDialogEx

PostPosted: 31 Mar 2014 16:53
by Aggie85
cgdevtools wrote:Hi aggie85,

Well, at current version we don't have this functionality, but we have implemented new property in V2.0.0.3463:

JQLabelEx:
- Added: new property LoadSourceOptions - Used to load the data/content from a url to label via ajax.


Best Regards.


I am not quite sure what I am suppose to do to get this to work. I have enabled the LoadSourceOptions and I have tried setting every property to a URL but it just spends and the window is locked.

So please tell me in the simplest steps which properties to set to display a local URL.

Thanks!

Aggie85

Re: NewWindow() using a TFrame + TIWCGJQDialogEx

PostPosted: 31 Mar 2014 18:08
by Alexander Bulei
Hi Aggie85,

What do you mean with:

I am not quite sure what I am suppose to do to get this to work. I have enabled the LoadSourceOptions and I have tried setting every property to a URL but it just spends and the window is locked.


?

Simple usage:

delphi code
IWCGJQLabelEx1.LoadSourceOptions.Enable:= True;
IWCGJQLabelEx1.LoadSourceOptions.AjaxOptions.Url:= 'test.htm';
IWCGJQLabelEx1.LoadSourceOptions.AjaxOptions.DataType:= ajdtHTML;


test.htm:

html code
<html><head><title></title></head>
<body><p><h1 style="font-size: 12px;"><strong>CGDevTools:</strong><label style="color: green;"> Loaded test.htm via LoadSourceOptions.<lable/></h1></body>
</html>


Result:

31-03-2014 18-08-08.png


Best Regards.

Re: NewWindow() using a TFrame + TIWCGJQDialogEx

PostPosted: 31 Mar 2014 18:50
by Aggie85
That worked!! Thank you very much.

I didn't have the DataType set correctly!

Best Regards,

Aggie85