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

Unable to refresh tab script

1 Answer 116 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Nirmal
Top achievements
Rank 1
Nirmal asked on 27 Nov 2011, 08:27 PM
Hi,

I am trying to implement kendo in our project. Where I have created 4 tab scrip. I want to refresh this tab script on button click. But it is not working. I have used  <    $("#tabstrip").data("kendoTabStrip").reload("#Exposure");  >.
 I will be highly thankful to you if you kindly help me for the same.

1 Answer, 1 is accepted

Sort by
0
Nirmal
Top achievements
Rank 1
answered on 28 Nov 2011, 07:10 AM
Hi,

In my project I have 4 splitter panes, and one of them contents tab strips.
 I am trying to  change contenturl through ajax request on button click.  
Also within tab strips I have kendo grid.
For the time grid is creating but on button click when new data is comming, it is removing grid.
Following is my ajax code

     function ajaxURL(url,target) {
  // native XMLHttpRequest object

  document.getElementById(target).innerHTML ="Loading...";
  if (window.XMLHttpRequest) {
    req = new XMLHttpRequest();
    req.onreadystatechange = function() {ajaxDone(target);};
    alert
    req.open("GET", url, true);
    req.send(null);
    // IE/Windows ActiveX version
  } else if (window.ActiveXObject) {
    req = new ActiveXObject("Microsoft.XMLDOM");
   
    if (req) {
      req.onreadystatechange = function() {ajaxRLDone(target);};
      req.open("GET", url, true);
      req.send(null);
    }
  }
  setTimeout("ajax(page,'scriptoutput')", 5000);
}

function ajaxRLDone(target) {
   
  // only if req is "loaded"
  if (req.readyState == 4) {
    // only if "OK"
    if (req.status == 200 || req.status == 304) {
        alert("Hi...");
      results = req.responseText;
      alert("Hi...");
      document.getElementById(target).innerHTML = results;
      alert("Hi........");
    
        alert("dhdhd");
    } else {
        alert("Hi...");
      document.getElementById(target).innerHTML="ajax error:\n" +
      req.statusText;
    }
  }
}

Thanks in Advance
Nirmal

Tags
TabStrip
Asked by
Nirmal
Top achievements
Rank 1
Answers by
Nirmal
Top achievements
Rank 1
Share this question
or