jAlert a jQuery Alert Box Plugin

jAlert is a very easy to use alert box plugin for the javascript framework jQuery. I developed this plugin to use in my own projects and now that I have my own blog I decided to share it with the world.
jalert

Here is a quick example on how is used:

$(document).ready(function()
{
//have an alert box displayed on body load.
$('body').jAlert('Welcome to jAlert Demo Page', "success");

});

Requirements:

Demo:

Download:

I would love to see how you are using jAlert so please post your links in the comments or send me an email. Also, feel free to send your suggestions or any question you guys might have.

Tags: , , ,

This entry was posted on Sunday, February 22nd, 2009 at 4:54 pm and is filed under JavaScript, jQuery. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

8 Responses to “jAlert a jQuery Alert Box Plugin”

Tired Robot » Blog Archive » Julian Castaneda » Blog Archive » jAlert a jQuery Alert Box Plugin February 23rd, 2009 at 10:19 am

[...] Julian Castaneda » Blog Archive » jAlert a jQuery Alert Box Plugin John   Comment RSS « Suspekt… A PHP Security Blog [...]

julian velazquez zapata March 25th, 2009 at 7:06 pm

TOCALLO

QUE TAL COMO LE VA

DE CASUALIDAD NO TENDRA UN EJEMPLO APLICABLE TAN SENCILLO COMO UN ALERT PERO EN JALERT.

ISE UNAS PRUEBAS CON JALERT PERO ME MARCABA ERRO EN IE7 BUENO SI NO ES MUCHO PEDIR LE ENCARGO UN EJEMPLOS

NOS VEMOS EN EL FUTURO…!

Julian March 26th, 2009 at 7:52 pm

Hey que mas tocallo! Gracias por visitar mi blog.

Bueno pues en el post esta el link al demo page donde salen unos simples ejemplos. Si le hace view al source, vera que ahi esta el codigo que utilize para generar los distintos alert boxes. Tambien en el rar file yo inclui un folder llamado demo, ese es el mismo demo que esta aca

Cualquier cosa si sigue teniendo problemas o cualquier otra pregunta me lo deja saber yo veo como puedo ayudarle.

Se me cuida.

Liao Gangzheng May 19th, 2009 at 3:37 am

Hi, I need a dialog box that user can either click on ‘OK’ or ‘Cancel’. can you do that?

Julian June 24th, 2009 at 3:27 pm

Liao,
Sorry for the late reply, but I was out of the country. The Current version of jAlert does not support dialog box functionality. But I might consider adding it in future iterations.

julian velazquez zapata July 6th, 2009 at 3:55 pm

Tocallo que tal

Ni cuenta me di de la respuesta del jalert

despues de varios meces lo voy a provar de nuevo.

are otro intento aver si funciona

nos vemos en el futuro…!
y que la paz y le feclicidad esten de tu lado simpre

Jazmin August 10th, 2009 at 9:43 am

Hola que tal!
Me encontre por internet un exemplo similar al tuyo de un jAlert, jConfirm,etc..
Me interesa utilizar el jConfirm. aqui es el exemplo de como lo utilize :D


function dialogBox(){
var c;
jConfirm('Tem certeza que deseja excluir o Elemento?','IPHAN - SGPI',function(r){
c=r;
jAlert(r,'Confirmation Results');
});

if(c){
return true;
}
else
false;
}

necesito guardar el valor de r en la variable c para hacer el if y regresar a donde fue llamada la funcion true o false.
pero no estoy cosiguiendo hacer eso :( .
Cuando realizo el debug el entra en el metodo y toma el valor pero si en el debug no hace nada solo mustra el primer jConfirm.
alguna ayuda??
gracias

Julian August 10th, 2009 at 10:03 am

Hola Jazmin,

en realidad nunca he usado jConfirm, entonces no estoy familiarizado con jConfirm. Yo cree jAlert como una alerternativa para mostrar mensajes informativos de una forma facil.

Despues de hacer un search en el web creo que encontre el ejemplo que mencionaste, y al parecer el jAlert que mencionan ahi es distinto a el jAlert que yo hice, pero voy a ver si juego con el ejemplo que pusiste aca a ver si encuentro el problema.

gracias por visitar!!

Leave a Reply