CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Questions about components

Questions & Answers about IWCGJQuery Suite.

by akrolis » 31 Jul 2014 11:23

Hello

I'm testing the components to see if it would be feasible to use them in a project I'm developing, but I've encountered a couple of problems.

My work environment is, delphi 2007, intraweb 11.0.60 trial version and CG IW JQuery 2.2.1.11 evaluation version .

2.8 GHz Intel CoreCuad 4 GB Ram.

1 - Does not work in any version of internet explorer.
2 - It is very slow when loading a frame on a TIWCGJQTab.

Attached is a picture with the frame that takes 7 seconds to load.
Is not performing any action which may cause the load is slow, only show de frame.

Regards.

Image
akrolis
 
Posts: 7
Joined: 10 Jul 2014 15:41

by Jorge Sousa » 31 Jul 2014 14:16

Hello

Can you replicate any of these things in our demo?

1 - Does not work in any version of internet explorer.


This can only be a misunderstanding, but we don't know the extent of your evaluation project.

2 - It is very slow when loading a frame on a TIWCGJQTab.


What method are you using?
how many bytes it's sending when you load?
How many time does your code take?
Do you have AQTime or some other profiler tool, that can inspect the times per methods?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by akrolis » 04 Aug 2014 16:57

Hi there

1 IE was because there was not indicated in the DocType property value "<! DOCTYPE html>" Sorry.

2 I have used the size of the response to load the frame and the value was 1.5 MB, has surprised me so great value and I reviewed was happening. The problem I've seen is that adding a component type "TIWCGJQLabel" at the end of the response repeated the following line appears 128 times.

<literal> <[CDATA [$ ("# IWCGJQLABEL1IWFGEXPEDIENTES_0") removeClass ("ui-state-disabled").]]> </ literal>

also added for each label. which causes the size of the response increases a lot by each "TIWCGJQLabel" we added.

Changing the type "TIWCGJQLabel" for "TIWQLabel" the problem has disappeared and the response size is 195Kb.

Also happens with "TIWCGJQCheckBox".
akrolis
 
Posts: 7
Joined: 10 Jul 2014 15:41

by Jorge Sousa » 04 Aug 2014 17:20

Hi

The problem I've seen is that adding a component type "TIWCGJQLabel" at the end of the response repeated the following line appears 128 times.


Hum, i have the feeling that you're using RenderRegionAsync / AjaxReRender?, without CGCallbackDisableResponse / CGCallbackEnableResponse as it is in JQuery_Demo..
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by akrolis » 05 Aug 2014 08:29

Hello

This is the method with which I am loading the form, the call is making from another frame.


Code: Select all
       
        CGCallBackDisableAjaxResponse;
        try
            if not Assigned(GExpedientes) then
            begin
                GExpedientes := TIWFGExpedientes.create(Self,@ParamForm,Self);
                GExpedientes.Name := GExpedientes.Name+'_'+Self.Name;
                GExpedientes.Parent := Self.Parent;
                GExpedientes.Align := alClient;
            end;

            GExpedientes.EsPrimero := True;
            GExpedientes.Show;

            Self.Hide;

            RecargarConsulta := True;
        finally
            CGCallBackEnableAjaxResponse;

            if Self.Parent <> nil then
            begin
                if Self.Parent.ClassType = TIWCGJQTab then
                begin
                    TAbTMP := TIWCGJQTab(Parent);
                    TIWCGJQTabs(TAbTMP.Parent).AjaxReRender(True,False);
                end;
            end;
        end;



GExpedientes is a TFrame not a TIWCGJQFrame, could be the problem?

Regards.
akrolis
 
Posts: 7
Joined: 10 Jul 2014 15:41

by Jorge Sousa » 05 Aug 2014 09:42

Hi

It's not conclusive,

normally you should be calling GExpedientes.IWFrameRegion.AjaxReRender (or RenderRegionAsync(GExpedientes.IWFrameRegion))

you're calling TIWCGJQTabs(TAbTMP.Parent).AjaxReRender(True,False);

but what really is strange is how this could happened:

The problem I've seen is that adding a component type "TIWCGJQLabel" at the end of the response repeated the following line appears 128 times.

<literal> <[CDATA [$ ("# IWCGJQLABEL1IWFGEXPEDIENTES_0") removeClass ("ui-state-disabled").]]> </ literal>
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to Q & A

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.