Hi,
In one of the page we are trying to add script tag on the top of the head tag or on the top of the body tag.
That page contains wizard control and there are few steps.
We are adding different user controls in each steps.
We are able to put script tag in the first page load.
But from second step we are unable to add it.
<telerik:RadScriptBlock runat="server">
<script type="text/javascript">
$(document).ready(addScriptElement);
function addScriptElement() {
$('body').prepend(
"<script id='transScript'>var dataLayer = dataLayer || [];dataLayer.push({'stepName': 'Details','stepVirtualURL': 'virtual-details'})<\/script>");
};
</script>
</telerik:RadScriptBlock>
We are using Master page.
Is there any ways we can do this?
Best Regards,
Damodar
In one of the page we are trying to add script tag on the top of the head tag or on the top of the body tag.
That page contains wizard control and there are few steps.
We are adding different user controls in each steps.
We are able to put script tag in the first page load.
But from second step we are unable to add it.
<telerik:RadScriptBlock runat="server">
<script type="text/javascript">
$(document).ready(addScriptElement);
function addScriptElement() {
$('body').prepend(
"<script id='transScript'>var dataLayer = dataLayer || [];dataLayer.push({'stepName': 'Details','stepVirtualURL': 'virtual-details'})<\/script>");
};
</script>
</telerik:RadScriptBlock>
We are using Master page.
Is there any ways we can do this?
Best Regards,
Damodar