CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

NewWindow() using a TFrame + TIWCGJQDialogEx

General discussion

by Aggie85 » 28 Mar 2014 05:59

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
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Alexander Bulei » 28 Mar 2014 12:44

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.
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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Aggie85 » 28 Mar 2014 14:06

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
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Aggie85 » 31 Mar 2014 16:53

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
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Alexander Bulei » 31 Mar 2014 18:08

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.
You do not have the required permissions to view the files attached to this post.
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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Aggie85 » 31 Mar 2014 18:50

That worked!! Thank you very much.

I didn't have the DataType set correctly!

Best Regards,

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24


Return to General - Archive

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.