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

Microsoft JScript runtime error: Object expected

3 Answers 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 11 Sep 2008, 09:33 AM
Hi All,

I am using Master And content page.

In Master page
I have used RadScriptManager,RadAjaxManager and RadAjaxLoadingPanel.

In Content Page

I am using RadTabStrip,RadMultipageView,RadAjaxManagerProxy.
In RadPageView I added RadGrid,RadDatePicker and Button.

I have added ajax setting on RadTabstrip and radMultiPageView control.

I have added 3 tab tab1,tab2,tab3.

Ajax setting are folllows
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
      <ajaxsettings>       
         <telerik:AjaxSetting AjaxControlID="rtabTemp">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadMultiPageMain" />
              </updatedcontrols>
          </telerik:AjaxSetting>
         
                  
         <telerik:AjaxSetting AjaxControlID="RadMultiPageMain">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="rtabTemp" />
              </updatedcontrols>
          </telerik:AjaxSetting>
  </ajaxsettings>
    </telerik:RadAjaxManagerProxy>


//Client side function are follows

Sys.Application.add_load(applicationLoadHandler);

            function applicationLoadHandler()
{
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").OnRequestStart = RequestStart;

      }

 

            function onTabSelecting(sender, args) {
                if (args.get_tab().get_pageViewID()) {
                    args.get_tab().set_postBack(true);
                }
            }

            function RequestStart(sender, args) {

                //alert(args.EventTarget);
                if (args.EventTarget == "ctl00$Content$btnExportdata") {
                    args.EnableAjax = false;
                }
                else if (args.EventTarget == "ctl00$Content$btnExportToExcelSSOpen") {
                    args.EnableAjax = false;
                }
                else
                    args.EnableAjax = true;
              
            }

///

Issue>

When i nevigating from one tab to another tab it gives me javascript error
it generate js error after 6 or above nevigation.


Microsoft JScript runtime error: Object expected


Thanks

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 11 Sep 2008, 10:38 AM
Hello Hrushikesh,

In case you use RadScriptManager on your page, review the explanation from the following forum post and test the custom build from there to see whether this helps,

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Peter
Top achievements
Rank 1
answered on 24 Apr 2015, 12:31 AM
That forum post link is broken.
0
Vessy
Telerik team
answered on 27 Apr 2015, 02:39 PM
Hi Peter,

Yes, the forum link is broken as the reply is posted more than 6 years ago. Unfortunately, back then we had had very different url convection preventing me to restore the link to the target topic. Despite of that he suggested by my colleague solution is related to a 2008 custom build which, most probably, will not be applicable to the more recent releases of the controls.

This is why, can you please explain in more details the exact circumstances in which the error occurs on your side so we can try to help you further? It would be great if you isolate the problem into a sample runnable project and send it so we can examine it on our side.

Looking forward to your reply,
Vessy
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Peter
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or