Tag: Code


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

Posting code in my land

March 20th, 2009 — 1:39pm

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 &amp;. * 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 MattViper007Bond, and mdawaffe.

That is.

Comment » | Wordpress

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