CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

JQMenu and Items with OnClick.Ajax = True

by mkarimpour » 30 Sep 2014 11:12

Dear friend,

I have a JQMenu with two items that OnClick.Ajax = True. The first is a change password form with three JQEdit and one JQButton. The second is a operational form with JQGrid, JQDropDow, JQCheckBox and others. When I click the first item from JQMenu, the change password form was shown perfectly. Then I click the second menu and the form was shown perfectly. Now I click the first item again, I get the following error:

In FireFox(Ver 32.0.3)
"this[0] is not defined" in Render Async!. Processing Full Submit...

In InternetExplorer(Ver 11)
"unable to get property 'grid' of undefined or null reference" in Render Async!. Processing Full Submit...

If I remove the JQGrid component form second form or set the Items.OnClick.Ajax = False, every thing are okay.
What is the problem? Please Help?

!!!Caution!!!: I want and need that JQMenu.Items.OnClick.Ajax = True.

CustomerID: 211130074
Your Sincerely
Mehdy Karimpour
mkarimpour
 
Posts: 77
Joined: 08 Jul 2012 07:21

by Jorge Sousa » 30 Sep 2014 11:57

Hi

It depends on how your doing things

The first is a change password form


If it's a form, Intraweb will transform an ajax event into a full submit, and yes, this leads to errors.

Can you submit a test case project? t.i.a.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by mkarimpour » 30 Sep 2014 12:02

cgdevtools_support wrote:Hi

It depends on how your doing things

The first is a change password form


If it's a form, Intraweb will transform an ajax event into a full submit, and yes, this leads to errors.

Can you submit a test case project? t.i.a.


Hi,
Both forms are inherited from IWCGJQFrame.

Best Regards
Your Sincerely
Mehdy Karimpour
mkarimpour
 
Posts: 77
Joined: 08 Jul 2012 07:21

by Jorge Sousa » 30 Sep 2014 12:31

Ok

Then you must be using RenderAsync, aka, RenderRegionAsync

what is the code that you're using to do this?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by mkarimpour » 30 Sep 2014 12:58

Hi,
Both forms are inherited from IWCGJQFrame that contains IWFrameRegion: TIWCGJQDialogEx. For showing I use the following code:

Code: Select all
if CGIsCallBackProcessing then
    IWFrameRegion.AjaxReRender(True, True)
else
    IWFrameRegion.Show;

I did-not find RenderAsync method.

Best Regards
Your Sincerely
Mehdy Karimpour
mkarimpour
 
Posts: 77
Joined: 08 Jul 2012 07:21

by Jorge Sousa » 30 Sep 2014 15:59

Hi

Unless you cannot reproduce in a test case, we cannot know what is.
In FireFox(Ver 32.0.3)
"this[0] is not defined" in Render Async!. Processing Full Submit...

In InternetExplorer(Ver 11)
"unable to get property 'grid' of undefined or null reference" in Render Async!. Processing Full Submit...


you must set ServerController.JavascriptOptions = (true,true)

and debug in browser, using F12, goto script tab, and provoque the error, and tell us the stack.

Or we make a remote session for you to learn
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by mkarimpour » 01 Oct 2014 13:56

Hi,
I have time now, if it is possible please learn me by a remote session to debug my scripts.
If other time we can make this session, let me to know that time.

Best Regards
Your Sincerely
Mehdy Karimpour
mkarimpour
 
Posts: 77
Joined: 08 Jul 2012 07:21

by Jorge Sousa » 01 Oct 2014 15:12

Hi

Please send us an email, and if you can, go to skype, its faster to arrange the session start time
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 02 Oct 2014 10:26

Hey mkarimpour

When you're ready send us an email then.... with the teamviewer id and password
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by mkarimpour » 06 Oct 2014 07:03

Hi,
Sorry for my late.
I want to say, if it is possible, please record the session and put here for download and if not, we can make a session today for online session with TeamViewer or Skype, every time that you can.

CustomerID: 211130074
Your Sincerely
Mehdy Karimpour
mkarimpour
 
Posts: 77
Joined: 08 Jul 2012 07:21

Next

Return to JQMenu

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.