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

Combining all telerik scripts in one file results in too much recursion

2 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
deval
Top achievements
Rank 1
deval asked on 18 Oct 2010, 01:24 PM
Hi,

I use several telerik asp.net ajax controls (latest version) in my project. These controls reside in several usercontrols which use Output Caching. I followed the help article to disable embedded scripts and to register them manually. This works fine and so far I have no problems. But, I'm facing some problems when I load the page with the cached user controls in an iframe where the hosting page, which includes this iframe, also uses telerik controls but with EmbeddedScripts = true. The AnimationScript causes an error "Too much recursion"

}}return this.oldstep(e);  // This is the error point};

Maybe I'm not doing it correctly and you have some advice for me:
As said I use several telerik control in my project and I want to use caching on all controls. What I did:
I took all common scripts
1. Core.js,
2. jqueryplugins (I load the jquery.min.js from google cdn seperatley), 
3. NavigationScripts
4. PopupScripts
5. Scrolling
6. Animation
7. Subsequently all the scripts for the controls I use (RadRotator, RadTagCloud, etc.)

and put them into ONE file and registered this file in my master page. Which works great when the page is called alone.
The reason why I load this page in an iframe is that the admin of the page can rearrange the usercontrols. This hosting page uses the RadMenu for example which is included normally (Embedded Scripts, no caching etc.). The problem with the "too much recursion" error is that all other scripts fail (rearranging the usercontrol relies heavily on javascript)
As said the normal scenario is to call the page standalone but not in an iframe. Unfortunatley I cannot change the EmbeddedScripts property when the page is loaded in an iframe.

I Hope I made a silly mistake and there is a quick fix.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 21 Oct 2010, 05:11 PM
Hi Deval,

I am not quite sure what is causing the problem on your case. I have prepared a test project based on the  provided information, but I was not able to reproduce the described error. Could you please rework it in order to show the problem, open a new support ticket and send it back? I will check it and do my best to provide a working solution as soon as possible.


Kind regards,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
deval
Top achievements
Rank 1
answered on 21 Oct 2010, 06:21 PM
Thanks,

Unfortunatly I won't have time to check it now but I'll have a look over the weekend and let you know if it worked.

Deval
Tags
General Discussions
Asked by
deval
Top achievements
Rank 1
Answers by
Fiko
Telerik team
deval
Top achievements
Rank 1
Share this question
or