I have an UltraWebTab control on my Page, having to two tabs that have their Content Pane Target URL properties set to some url. Autopostback is false and no tab change event is captured on server-side. When this page is opened in Firefox it loads the page in the tab from server whenever the tab is changed, where as in Internet Explorer the pages in tab are loaded first time and not reloaded in tab change.
Steps to Reproduce:
1. Create a new web page and add UltraWebTab in it 2. Add a tab page and set its Content Pane -> Target URL to www.yahoo.com 3. Add another tab page and set its Content Pane -> Target URL to www.msn.com 4. Run the page in FireFox 2.0. Switch between tab page. Page will be reloaded.5. Run the page in IE 7. Switch between tab page. Page will be loaded first time and on tab change the pages will not be reloaded.
Has anybody here experienced the same problem? How did you resolve this problem.
Hi,
If application will create <iframe> as a child element of Tab's template, then content of that <iframe> may be loaded only once and keep it while changing visibility of that tab (selected/unselected state). Iin this case tab uses <div> container/wrapper for its content and divWrapper.style.display=none/block is used.
In case of TargetUrl the content of tab is represented by <iframe> and visibility of that tab (selected/unselected state) is changed by iframe.style.display=none/block. If display of iframe is none, then IE keeps content, but all other browsers do not.
Hi
this is not true.
there is some thing in the CSOM of webtab control.
if i create an object with two tabs and instead of assigning contentpane.targeturl
i put iframes in both tabs
and assign urls to iframe this time contents of Iframe will not refresh
The thing that I find interesting in FireFox3 is that you tab off of the tab that has the target url loaded (with text in the form)... and you stay off of it for a while (it should have been unloaded from memory according to your post). However, when I go back to the tab in question it's contents are in tact, for about 2 seconds and then it reloads the page. That makes me think that FireFox is keeping it (because it was still there) but the tab is triggering a reload.
I've got the same issue. It's really a shame that FireFox and IE function differently in this instance. I _really_ like the feature to load another Url inside of a tab so I can keep some of the bulk out of the main page for lesser used tabs... but my users will throw a fit if they can't switch between tabs and have their content stay populated (like, if they were filling out a feedback form, they switched a tab to check something and then when they go back it's empty... ugg). I have found a work around for it yet.
That behavior is correct. As far as I know the only IE loads hidden iframes and keeps them when their visibility is changed. That is a nice feature, but it takes a lot of resources, so other browsers do not do that. Only visible iframes are loaded and they are unloaded when iframes become invisible.
I would suggest you to set LoadAllTargetUrls property (supported by IE only) to false.