Page 1 of 2
JQMenu and Items with OnClick.Ajax = True

Posted:
30 Sep 2014 11:12
by mkarimpour
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
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
30 Sep 2014 11:57
by Jorge Sousa
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.
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
30 Sep 2014 12:02
by mkarimpour
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
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
30 Sep 2014 12:31
by Jorge Sousa
Ok
Then you must be using RenderAsync, aka, RenderRegionAsync
what is the code that you're using to do this?
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
30 Sep 2014 12:58
by mkarimpour
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
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
30 Sep 2014 15:59
by Jorge Sousa
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
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
01 Oct 2014 13:56
by mkarimpour
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
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
01 Oct 2014 15:12
by Jorge Sousa
Hi
Please send us an email, and if you can, go to skype, its faster to arrange the session start time
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
02 Oct 2014 10:26
by Jorge Sousa
Hey mkarimpour
When you're ready send us an email then.... with the teamviewer id and password
Re: JQMenu and Items with OnClick.Ajax = True

Posted:
06 Oct 2014 07:03
by mkarimpour
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