Hello!
I'm running into a problem that is driving me batty. I've read all I can find, but so far have found no answers. Maybe someone can help; I think I'm missing something real simple. My first inclination is that I am having a pathing problem.
My DNN installation is fairly straightforward; I haven't modified the file structure, so the js folder lives in [ROOT]/js. Both properties ClientAPIScriptPath and TabStripScriptPath are equal to "js/". I'm getting a JScript error near the bottom of the page that reads: "Microsoft JScript runtime error: 'dnn' is undefined."
The line of code that is causing the problem is this:
<script>dnn.controls.initTabStrip($('dnn_ctr401_gisProductsView_tsProductRelatedStuff'));
Here is the markup for the tab control:
<dnn:DNNTabStrip
id="tsProductRelatedStuff"
SelectedIndex="0"
runat="server"
DefaultLabel-CssClass="tablabel"
DefaultLabel-CssClassSelected="tablabelselected"
DefaultLabel-CssClassHover="tablabelhover"
DefaultContainerCssClass="tabcontainer"
CallbackStatusFunction="statusFunc"
TabClickFunction="tabClick"
ClientAPIScriptPath="js/"
TabStripScriptPath="js/" >
<dnn:DNNTab id="tabArticles" runat="server" Label-Text="Articles" CallBackType="Simple" TabCallbackPostMode="None" TabRenderMode="CallBack">This will show all related Articles</dnn:DNNTab>
<dnn:DNNTab id="tabSpecs" runat="server" Label-Text="Technical Specs" CallBackType="Simple" TabCallbackPostMode="None" TabRenderMode="CallBack">This will show all related Technical Specs</dnn:DNNTab>
<dnn:DNNTab id="tabNewsReleases" runat="server" Label-Text="News Releases" CallBackType="Simple" TabCallbackPostMode="None" TabRenderMode="CallBack">This will show all related News Releases</dnn:DNNTab>
<dnn:DNNTab id="tabDownloads" runat="server" Label-Text="Downloads" CallBackType="Simple" TabCallbackPostMode="None" TabRenderMode="CallBack">This will show all related Downloads</dnn:DNNTab>
<dnn:DNNTab id="tabDemo" runat="server" Label-Text="Demo" CallBackType="Simple" TabCallbackPostMode="None" TabRenderMode="CallBack">This will show a demo</dnn:DNNTab>
</dnn:DNNTabStrip>
I've tried several different values for the paths to the JS folder, but the only ones that blow up on me are the ones that I think would most likely be finding it OK ("~/js/" and ",/js/" along with the current value, "js/). When I don't get an error, the control displays just fine and even switched between tabs OK, but no JScript is changing the styles on hover.
I would post a URL, but this is on my local box (XP Pro, IIS 5.1). Anyway, I'm sure I'm missing something simple, so any help would be appreciated.
Thanks!
Davey Bolling