Tag: Code
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.
Posting code in my land
Some days ago I was in trouble when trying to insert code into a post, things were working bad in Wordpress’s rich editor, ampersand was making me crazy and I had to look for new plugins to face the problem.
The solution:
Two plugins working together are making my code posting a relaxed experience:
Visual Code Editor: Makes it possible (and trouble free) to post and edit code snippets in wordpress’s visual editor. Requires WordPress 2.5 – 2.7. * Adds <pre> & <code> to block format menu. * Allows extra attributes for compatibility in some syntax highlighters (ie, <pre lang=”php” line=’5′>). * Allows iFrames. * Unescape WP’s double escaping of &. * Removes extra <pre> tags around SyntaxHighllighter Plus’s blocks. * Works in comments. By Jules Gravinese.
SyntaxHighlighter: An advanced upload-and-activate WordPress implementation of Alex Gorbatchev’s SyntaxHighlighter JavaScript code highlighting package. See WordPress.com’s “How do I post source code?” for details. By Matt, Viper007Bond, and mdawaffe.
That is.
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.