This is a migrated thread and some comments may be shown as answers.

[Solved] Intermittent clientside js error with ClientEvents-ResponseEnd

1 Answer 70 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 16 Jul 2009, 12:22 PM
Hi,

I have a aspx page with a form on it that is ajaxified using a RadAjaxPanel. The aspx uses a master page.

I have hooked into the ClientEvents-OnResponseEnd event of the panel to fire a clientside javascript function (basically for manipulating the URL sent to Google Analytics).

The js function (trackAjax) is contained within the master page.

However, when first loading the page, I sometimes, but not always, get a javascript error in my browser "trackAjax is undefined".

Any ideas what may be causing this?

Thanks,

Matt

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 21 Jul 2009, 03:14 PM
Hello MattWorrall,

This is indeed a strange issue and based on your description I am not able to determine the exact cause of it. Can you check whether the trackAjax javascript function is rendered before the RadAjaxPanel definition on the page?

You can also post the markup/code behind of your master and content page in this forum thread (using the 'Format code block' option from the upper right corner of the forum editor) to examine it further. Thus I will do my best to provide up-to-the-point explanation/fix.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
John
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or