Tag: Mootools


Launch A Content Box!

March 27th, 2009 — 12:47pm

Developed by Victor Santafé
Inspired by MoodalBox
Released under MIT License

Something simple for your scripts. Launch A Content Box (LACB) can help you if you need to create content boxes directly from your javascript source using DOM or if you have any other kind of created element you need to show when any event occurs.

Why did I develop a new modal window manager script? because I was asking for a “loading” box in the center of the screen to indicate user that something had being processed in the server and should wait for it to continue, besides I wanted to create boxes as needed, I mean whenever I wanted and directly from source. I decided to develop my own script, when done I discovered it could be something else, so with LACB you can launch whatever you want and a “Loading Box” too.

Developed by a fanatic of simple but functional scripts, I hope it helps you too.

Continue reading »

1 comment » | Projects

Making a request with Mootools

March 17th, 2009 — 5:18pm

Making a request with mootools is as easier as next lines are:


function doRequest(){

var data = "param1=1&param2=2";

new Request({
           url:'pagetorequest.java',
           method:'post',
           onSuccess: doOnSucess
         }).send(data);
}

function doOnSucess(response){
          alert("I am happy, and you?");
          alert("the response is:" + response);
}

Comment » | Javascript, Programming languages

Back to top