Kia Niskavaara wrote:

     >
     > Thank you for your suggestion. Yes, it does work. One problem though:
     > I've got lots of tabs. And the src of all iframes get loaded at once.
     > I'd prefer if each iframe got loaded when I click on that tab,
    using the
     > loading.gif -- like the remote:true (ajax) functionality. Is that
    possible?


    Then why not load the iframe html via Ajax? It's the same as loading any
    other HTML...

    e.g. every link points to a html file containing something like this:

    <iframe src="..."></iframe>


Great idea! At first glance it seemed to be working. But now I've noticed that loading indicator hides before the iframe is loaded.

Yes, the indicator gets hidden as soon as the Ajax request is completed, not when the iframe is loaded. I'm sorry, that isn't supported.

You'd have to hack that in, e.g. the onload handler of the iframe would have to restore the tab title instead of the ajax success handler.



--Klaus

Reply via email to