Hi,
My site contains a chunk of javascript that I want to run only when a certain RadTab is selected by the user (i.e. MultiPageView).
This code has to be javascript as it changes images on the page without posting back.
I want this code to only run on a certain Tab to reduce overhead* on the other tabs.
*The code changes up to 15 images dynamically.
My approach to this is as follows:
var multiPage = $find("<%=RadMultiPageAdmin.ClientID %>");
var newPage = multiPage.findPageViewByID("New");
if (newPage.get_selected())
{
//run javascript
}
(The MultiPage is called RadTabStripAdmin, the tab I want is called New)
This solution works perfectly in Chrome, FireFox, Opera etc, but not in IE (only IE 10 tested)
When testing the site locally on an ASP.NET dev server, this code does work in IE10.
When the site is published and deployed to the IIS server, the following error is produced (Only in IE 10):
SCRIPT5007: Unable to get property 'findPageViewByID' of undefined or null reference
Please help!
Matt.
My site contains a chunk of javascript that I want to run only when a certain RadTab is selected by the user (i.e. MultiPageView).
This code has to be javascript as it changes images on the page without posting back.
I want this code to only run on a certain Tab to reduce overhead* on the other tabs.
*The code changes up to 15 images dynamically.
My approach to this is as follows:
var multiPage = $find("<%=RadMultiPageAdmin.ClientID %>");
var newPage = multiPage.findPageViewByID("New");
if (newPage.get_selected())
{
//run javascript
}
(The MultiPage is called RadTabStripAdmin, the tab I want is called New)
This solution works perfectly in Chrome, FireFox, Opera etc, but not in IE (only IE 10 tested)
When testing the site locally on an ASP.NET dev server, this code does work in IE10.
When the site is published and deployed to the IIS server, the following error is produced (Only in IE 10):
SCRIPT5007: Unable to get property 'findPageViewByID' of undefined or null reference
Please help!
Matt.