Dec 04, 2008, 4:02 PM
[CLOSED] Tab Refreshes when activated
Hey,
On click of a button, I call the following code :
Thanks,
On click of a button, I call the following code :
var addTab = function(parent, selected_patient) {
var pname = selected_patient.get('patient_name');
var pno = selected_patient.get('patient_no_with_area');
var url = "http://conference.polypathy.com?pno=" + pno;
var tab = String.format("<iframe width='100%' height='100%' src='{0}' frameborder='0'></iframe>", url);
parent.add({ title: pname, closable: true, html: tab,id:pno }).show();
}
The tab is added successfully to the tabpanel. If I open 2 such tabs, and click on the 2nd one and go back to 1st one, it refreshes its content. Basically Autopostback whenever the tab is made Active. How do I disable it in this scenario?Thanks,