|
Rank: Advanced Member Groups: Member
Joined: 12/24/2008 Posts: 43
|
Hi
I have a page using a combination of EO Menu, Callback Panels and Dialogs and when I trigger a callback via a button click, I get the following error:
Expected ';'
The call stack is:
GlobalErrorHandler [ErrorHandler.js] Line 3 Script aatg [eo_web.ashx] Line 6 Script aath [eo_web.ashx] Line 6 Script aaud [eo_web.ashx] Line 6 Script aauc [eo_web.ashx] Line 6 Script aaue [eo_web.ashx] Line 6 Script aaua [eo_web.ashx] Line 6 Script aaub [eo_web.ashx] Line 6 Script aatv [eo_web.ashx] Line 6 Script aaun [eo_web.ashx] Line 6 Script Anonymous function [eo_web.ashx] Line 6 Script i [eo_web.ashx] Line 6 Script h [eo_web.ashx] Line 6 Script aaul [eo_web.ashx] Line 6 Script > onreadystatechange [eo_web.ashx] Line 6 Script
Looking at the line of code at onreadystatechange [eo_web.ashx], could it be this:
this.ao.onreadystatechange=function(){h.aalo(true)};
Should h.aalo(true) not have a semi colon before the closing brace?
Kind Regards Sean
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Your stack trace shows the error is in ErrorHandler.js, that's not our code. So you will have to start from there first.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 12/24/2008 Posts: 43
|
Hi
ErrorHandler.js is just where my global javascript error handler function is located and the value of e is the error that has been thrown earlier in the stack.
function GlobalErrorHandler(e) { debugger; stackTrace(arguments.callee); }
Is it possible that the line of code below from the EO libraries has this syntax error?
this.ao.onreadystatechange=function(){h.aalo(true)};
Kind Regards Sean
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
I see. That line should be fine. If the problem were in that line, the stack trace wouldn't show all the other calls.
The last line in the stack trace (aatg) is a function that executes your JavaScript code block rendered through the Callback. That function itself is fine (otherwise the CallbackPanel control would never function at all). So the problem most likely is in the JavaScript code in your page.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 12/24/2008 Posts: 43
|
Hi
Chrome is a little bit more helpful:
SyntaxError: missing ; before statement scope varaibles for EO1054.f.aatg are:
a = "_eo_guardDocWrite=true;EO1054.f.ahn('_eo_ScheduleHistory1_DialogFilters_ctl00_srchStartCalendar_EODateTimePicker_popupimg')_eo_guardDocWrite=false;"
note the missing ; before the second _eo_guardDocWrite ?
This is the line that firefox complains about?
Whilst I am using EO DateTimePicker control, I dont recognise this code?
Any help you can offer is greatly accepted..
Cheers Sean
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
I think you are right. This appears to be the root of the problem. We will provide you an update build shortly with this issue fixed, you can then try it out and see if it resolves the issue for you.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have posted a new build that should fix this problem. Please see your private message for the download location.
Thanks!
|
|