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

Javascript doesn't load when other tabs are selected.

1 Answer 29 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
vincent
Top achievements
Rank 1
vincent asked on 03 Sep 2008, 02:20 AM
We are using the TabStrip with 5 tabs.  We load the tabs On-Demand.  Everything loads correctly except the javascript doesn't seem to be working.  Since the tabs are loaded dynamically, we cannot view source to see what is wrong with the javascript.  But that same javascript moved into a page that is not dynamically loaded works just fine.  This leads me to believe that the tabstrip is not writing the javascript properly.

Could you please advise?

Thanks in advance.

Vince.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Sep 2008, 08:20 AM
Hi vincent,

The load on demand demo is using RadAjax to load the user controls. In order for the script to execute you need to put it inside RadScriptBlock controls:

<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
<script type="text/javascript">
function someFunction () {
}
</script>
</telerik:RadScriptBlock>

All the best,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TabStrip
Asked by
vincent
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or