Feb
22

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.

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.

10 Comments to “jAlert a jQuery Alert Box Plugin”

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

  • 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…!

    • 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.

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

    • 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.

  • 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

  • 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

  • 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!!

  • You have tested it and writing form your personal experience or you find some information online?

  • [...] jAlert a jQuery Alert Box Plugin [...]

Leave a comment