I'm trying to use these two effects to transition between different pages. The html context:

   <body onload="loadPage('index.html');" id='home'>

       <div id="root">

           <iframe id="contentFrame" style="display: inline;" src=""
           width="100%" height="100%" frameborder='0' scrolling='no'
           marginHeight='0' marginWidth='0'>
           </iframe>

       </div>

   </body>

the code to attempt this:

   function loadPage(s) {
            Effect.Fade('root');
            $('contentFrame').src = s;
            Effect.Appear('root');
   }

The actual behaviour is to show the page (without any fade effect) and then disappear. Shouldn't fade make the <div> container invisible, load the content into the <iframe>, then visible the <div>?

Thanks in advance.
bernard

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to