Hi,
We are using Sitefinity 3.5.1714
We have a requirement to use JavaScript within a Generic Content control. I tried to add java script. But the scripts tags <script type="text/javascript"> </script> gets erased when I click on I’m Done button. The page is rendering the script as junk content instead of executing it.
Please guide us to resolve this issue.
Following is the sample content I’m trying to put it on Generic Content control.
<
html
>
head
script
type
=
"text/javascript"
function displaymessage()
{
alert("Hello World!");
}
</
body
form
input
"button"
value
"Click me!"
onclick
"displaymessage()"
/>
p
>By pressing the button above, a function will be called. The function will alert a message.</
Thanks,
RK
title
></
function displaymessage() { alert("Hello World!"); }
telerik:RadEditor
runat
"server"
ID
"RadEditor1"
OnClientLoad
"RadEditorLoad"
ContentAreaCssFile
"~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css"
ToolsFile
"~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml"
EnableEmbeddedSkins
"False"
Skin
"Sitefinity"
DialogsCssFile
"~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorDialogs.css"
NewLineBr
Height
"360px"
Width
"98%"
AllowScripts
"true"
ImageManager
ViewPaths
"~/Images"
UploadPaths
DeletePaths
MediaManager
"~/Files"
FlashManager
DocumentManager
CssFiles
telerik:EditorCssFile
Value
"~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorCssFile.css"
Hi, AS per the Nikolay’s (Telerik team member ) comments on one of the Forums question, I came to know that Sitefinity 3.5 has issues with Script tag i.e. Script tag stripped from Generic Content Control and you provided fix with Sitefinity 3.5 Service Pack1. Reference links:
http://www.sitefinity.com/devnet/forums/sitefinity-3-x/bugs-issues/3-5-javascript-stripped-from-generic-content.aspx
http://www.sitefinity.com/devnet/forums/sitefinity-3-x/general-discussions/sitefinity-3-5-sp1-available-for-download.aspx I couldn’t able to find the location to download Sitefinity 3.5 SP1. Can you provide the url to download the same? Currently we are using Sitefinity 3.5.1714 version.
Thanks, RK
Make Sitefinity work best for you.
Learn how