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

Javascript code being stripped

1 Answer 96 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
claudz
Top achievements
Rank 1
claudz asked on 29 Sep 2008, 05:30 AM

Hello Telerik Team,

We are trying to add a bit of javascript to a list item so that it gives a hyperlink that will open a collapsed group in a grouped list view.

For example:
<A onclick="javascript:ExpCollGroup('4-1_','img_4-1_');return false;" href="javascript:">link</a>

This is the same code that sharepoint places on an + icon on the page to expand/collapse the group.

However, the javascript code is being stripped.

Is there anyway to allow javascript code in a list?

Thanks,
Claudz

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 30 Sep 2008, 12:44 PM
Hi Claudz,

Please reivew the following help article that describes how to achive the desired behavior:
http://www.telerik.com/help/moss/editor/scripts%20in%20radeditor.html

I hope this helps.

Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
claudz
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or