• ECDB.Base64

            ECDB.Base64( image_file_name ) *

          • ECDB.Debug

            ECDB.Debug( arguments ) *

            It outputs log for debugging. It is same as console.log().
            This function statement is removed in minification process automatically.

            ECDB.Debug(a, b, c);
          • ECDB.GetCSS

            ECDB.GetCSS( rsd_id, function( res ) { ... })

            It loads the CSS string dynamically, and run callback function with CSS string res.
            The CSS is written in RSD's CSS section.

            ECDB.GetCSS("abcdefgh", function(css) { $("<style/>").text(css).appendTo("head"); });

            Prototype Functions for ECDB Instance

            After the execution of new ECDB(), the instance of ECDB is created.
            Using this instance we support various prototype functions.

          • ECDB.GetHTML

            ECDB.GetHTML( rsd_id , function( res ) { ... })

            It loads the HTML string dynamically, and run callback function with HTML string res.
            The HTML is written in RSD's HTML section.

            ECDB.GetHTML("abcdefgh", function(html) { $("<div/>").html(html).appendTo("body"); });
          • ECDB.HTML

            ECDB.HTML( selector ) *

            It gets the innerHTML from HTML section statically. selector can be used like jQuery selection.
            Without selector, entire inner HTML will be acquired.
            In case of markdown, the selector cannot be used.

            $("<div/>").html(ECDB.HTML());
            $("<div/>").html(ECDB.HTML("#help"));
            $("<div/>").html(ECDB.HTML("#help > div.select"));

            notes : selector must be string literal(parameters cannot be used).

          • ECDB.Image

            ECDB.Image( image_file_name ) *

          • ECDB.Include

            ECDB.Include( rsd_ids ) *

            Includes only source code (JavaScript/coffee script) of RSD statically.

            ECDB.Include("abcdefgh","ijklmnop");

            notes : rsd_id must be 8-digits string (parameters cannot be used).

          • ECDB.Require

            ECDB.Require( rsd_ids ) *

            Includes source code and CSS of RSD statically.

            ECDB.Require("abcdefgh","ijklmnop");

            notes : rsd_id must be 8-digits string (parameters cannot be used).

          • ECDB.Require_once

            ECDB.Require_once( rsd_ids ) *

            Includes source code and CSS of RSD statically just once.

            ECDB.Require_once("abcdefgh","ijklmnop"); // Just once!

            notes : rsd_id must be 8-digits string (parameters cannot be used).

          • ECDB.TODO

            ECDB.TODO( string ) *

            It is used for project management system string is the ID of the TODO issue.
            This function statement is also removed in minification process automatically.

            ECDB.TODO("bug to be fixed for ...");
          • ECDB.backgroundImage

            ECDB.backgroundImage( dom, image_file_name ) *

            Above functions can translate and use the RSD image files which are uploaded by Agile Developers.
            ECDB.Base64() returns the base64 string of the image.
            ECDB.Image() returns jQuery object of the image.
            And ECDB.backgroundImage() changes the background image of the given dom to the image.
            The image files which are used in CSS/HTML section are also translated automatically.
            When file name has the directory structure(eg. /images/sample.png), only file name is used(->sample.png).

            function() { top.Body().empty();
            // We have pre-installed picture: fish.png, bird.png and lion.png
            ECDB.Image("fish.png").appendTo(top.Body())
            .css({position:"absolute", top:"10%", left:"20%"});
            ECDB.Image("lion.png").appendTo(top.Body())
            .css({position:"absolute", top:"40%", left:"20%"});
            ECDB.Image("bird.png").appendTo(top.Body())
            .css({position:"absolute", top:"70%", left:"20%"});
            $("<textarea/>").val(ECDB.Base64("fish.png")).appendTo(top.Body())
            .css({position:"absolute", top:"10%", left:"30%", width:"40%", height:"15%"});
            $("<textarea/>").val(ECDB.Base64("lion.png")).appendTo(top.Body())
            .css({position:"absolute", top:"40%", left:"30%", width:"40%", height:"15%"});
            $("<textarea/>").val(ECDB.Base64("bird.png")).appendTo(top.Body())
            .css({position:"absolute", top:"70%", left:"30%", width:"40%", height:"15%"});
            }
            function() { top.Body().empty();
            // We have pre-installed picture: fish.png, bird.png and lion.png
            var h = top.Divide(top.Body(),[33,34,33]).body();
            ECDB.backgroundImage($(h[0]),"fish.png");
            ECDB.backgroundImage($(h[1]),"lion.png");
            ECDB.backgroundImage($(h[2]),"bird.png");
            }

            notes : image_file_name must be string literal(parameters cannot be used).