Tag: Javascript
Launch A Content Box!
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.
Making a request with Mootools
Making a request with mootools is as easier as next lines are:
function doRequest(){
var data = "param1=1¶m2=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);
}
I am Victor Santafé, a 24 years old guy currently living and working in Colombia. I am a System Engineer, I love my profession, I love everything about Software Engineering and Programming Languages, I love music, photography and everything related to arts.