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

[Solved] RadScriptManager & javascript errors

6 Answers 322 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Remko
Top achievements
Rank 1
Remko asked on 05 Mar 2008, 02:10 PM
I don't get any errors when using my development environment, but do experience the 'telerik undefined' problems reported in other threads when the site is published, but only on test pc's (IE6 sp2 + latest telerik promethius).
After a postback, then a refresh everything is fine.

I think my problem is related to the regular javascript that I place in my page. I am using a RadscriptBlock to enclose all the javascript functions. The javascript is within the <head> </head>section (I've tried moving it up and down)

Is there a  recommended placement or rules on how and where to place my javascript, with radscript or radcodeblock (i couldn't really get what the documentation was saying about the difference, it was a bit too thin for me)
I use the radscriptmanager & radstylesheetmanager as the first very two controls in the form.

When i change back to the asp:scriptmanager, i don't get any problems. But I would rather try to be more performant by using the rad controls, thats why i bought them :-)

any advice/help would be welcome

Thanks,
Kevin.

6 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 05 Mar 2008, 02:41 PM
Hello Kevin,

I suggest you review the threads linked below which explain possible causes for the problem you encountered along with an appropriate solution:

http://www.telerik.com/community/forums/thread/b311D-hcgdb.aspx
http://www.telerik.com/support/kb/article/b454K-mgt-b454T-cgt-b454c-cgt.aspx

Additional information about RadScriptManager/RadStyleSheetManager and RadCodeBlock/RadScriptBlock usage you can gather from the RadControls Prometheus' online documentation:

http://www.telerik.com/help/radcontrols/prometheus/?RadScriptManager.html
http://www.telerik.com/help/radcontrols/prometheus/?RadStyleSheetManager.html
http://www.telerik.com/help/radcontrols/prometheus/?ajxRadScriptBlockRadCodeBlock.html

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Remko
Top achievements
Rank 1
answered on 05 Mar 2008, 04:18 PM
aaah,
I knew it was me being a dumbass. I had the radcodeblock inside the javascript tags !! duh!
Must admit, it was obvious when I saw the online documentation, the packaged documentation was not as obvious showing the radcodeblock example.
Thanks,
Kevin.
0
Remko
Top achievements
Rank 1
answered on 06 Mar 2008, 04:07 PM
well, i spoke too soon.
I still get a 'telerik undefined' aftger publishing the site.
I covered all the referenced suggestions, but still no resolution.
Spent the day, on and off, trying various combinations of with and without RadStylemanager or Radscriptmanager, radcodeblocks and radscriptblocks.

The undefined shows immediately before even the first status download (bottom left, counting down number of items to go) etc...

The only solution i have is to remove the Radscriptmanager and Radstyle manager and put in the normal asp:scriptmanager instead.

any further ideas?

Thanks,
Kevin.
0
Erjan Gavalji
Telerik team
answered on 07 Mar 2008, 09:31 AM
Hi Kevin,

A very strange problem indeed!

Is it possible for you to open a formal support ticket and send us your project? If it is too complicated, it would be better for us if you try to isolate the problem in a simpler project.

Can you also point us a public URL, where we can observe the bug?

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Remko
Top achievements
Rank 1
answered on 07 Mar 2008, 11:22 AM
no public url available yet i'm afraid.
Your ticket ID is : 125629  opened.
Thanks,
Kevin.
0
Remko
Top achievements
Rank 1
answered on 07 Mar 2008, 12:52 PM
Thanks for the excellent response from Telerik.

Just to make it a bit more obvious for anyone else with similar problems that I had. This goes in the <configuration> section of the web config. I know it is sort of mentioned in the various thread references but I didn't place this correctly.

<

location path="Telerik.Web.UI.WebResource.axd">

<

system.web>

<

authorization>

<

allow users="*"/>

</

authorization>

</

system.web>

</

location>

Tags
Ajax
Asked by
Remko
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Remko
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Share this question
or