The fastest easiest way to get it right.

Plugins and FadeIn

When you create custom admin screens using x6 plugins, it is always a good idea to make your page invisible as it loads, because some of the plugins do not appear correctly until browser-side jQuery plugin code has reformatted them. If we did nothing about this, the user would see a page load all jumbled looking, then see the page straighten itself out. This is not very professional, so we would prefer them to see the page only after it is all straightened out.

The simplest way to do this is to add the class "fadein" to the top-most HTML container on your page. This will cause the page to load invisibly, then all plugins will be initialized so the page is formatted correctly, then the page will fade in nicely.

<?php
class x6example extends androX6 {
    function x6main() {
        $top = html('div');
        $top->addClass('fadein');
        
        #
        #  Lots of complex html using fancy jquery
        #  plugins is put here
        #

        $top->render();
    }
}

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2