PDA

View Full Version : [CLOSED] How to reload a Tab client side?



speedstepmem4
Mar 11, 2014, 11:48 AM
Hi,

Please suggest us how to reload a Tab client side using Ext js.

Previously we were using like this:




parent.Tab1.loader.url = "Frm_TestPage.aspx";
parent.Tab1.reload(true);

Daniil
Mar 11, 2014, 12:40 PM
Hi @speedstepmem4,

Please use:

parent.Tab1.loader.lastOptions.url = "Frm_TestPage.aspx";
parent.Tab1.reload(true);

speedstepmem4
Mar 12, 2014, 4:18 AM
Hi @speedstepmem4,

Please use:

parent.Tab1.loader.lastOptions.url = "Frm_TestPage.aspx";
parent.Tab1.reload(true);



Hi Daniil,

We have provided a screen shot below as an attachment which will clearly demonstrate the error we are getting.
Kindly have a look and guide us! Reloading a tab provides undefined error in js. But we are able to assign the url in the above line of code!!!

Daniil
Mar 12, 2014, 4:22 AM
What is the "Dimension"?

speedstepmem4
Mar 12, 2014, 5:28 AM
What is the "Dimension"?


Hi Daniil,

Not worry about that. It's just a Namespace which we are adding in Resource Manager.


<ext:ResourceManager runat="server" Namespace="Dimension" />


And is "Dimension" which cause the error?

Daniil
Mar 12, 2014, 5:32 AM
Then it is OK.

Please clarify why do you think that Quick Watch shows you an error? Just the reload method returns nothing.

speedstepmem4
Mar 12, 2014, 5:51 AM
Then it is OK.

Please clarify why do you think that Quick Watch shows you an error? Just the reload method returns nothing.


Actaully in the code part provided, we are actually changing the version of the display page based on the selected item from a combo box.
After loading the url from the below code we are reloading the page with the new url. In this case, the reload returns nothing which causes the page to be in same state as before (i.e) not displaying the new url or page. Hope you get the point.



parent.window.Dimension.Tab1.loader.url = "Frm_Dashboard_001.aspx";

Daniil
Mar 12, 2014, 6:04 AM
I don't see that you tried this suggestion.



Please use:

parent.Tab1.loader.lastOptions.url = "Frm_TestPage.aspx";
parent.Tab1.reload(true);