Hello
- Code: Select all
[b] CGCallbackDisableAjaxResponse;
IWCGJQRegion2.Visible := True; // Region with image
IWImage1.Visible := True; // Image in IWCGJQRegion2
CGCallBackEnableAjaxResponse;
RenderRegionAsync(IWCGJQRegion2,rramLazyLoadMethod,True);[/b]
1- You don't need CGCallbackDisableAjaxResponse, CGCallBackEnableAjaxResponse and RenderRegionAsync for this.
2- use CGCallbackDisableAjaxResponse and CGCallbackDisableAjaxResponse it only when create new frames.
use RenderRegionAsync when the opearations envolved are not supported, which is not the case of IWCGJQRegion2.Visible:= True
When you use a control visibility change, make sure its parent has RenderInvisibleControls = True.
3- We told you before, when you call code like IWCGJQRegion2.Visible:= True, the server doesn't call the client to operate, for executing IWCGJQRegion2.Visible := False; after
all you are doing is adding javascript to be executed when the event returns to browser. In this case will set the javascript correspondant to
IWCGJQRegion2.Visible:= True and IWCGJQRegion2.Visible:= False at once, resulting in the invisibility.