webstuffshare.com

In previous tutorial i was explained how to replace a boring confirmation box into a cute one. You’ll no longer see a pop up confirmation box but a flying bubble confirmation box upside your link. Then I was thinking it will be very usefull for future application development to use this script and that’s why i decided to create it as a jQuery plugin.

So here is the line, jConfirmAction is a jQuery plugin that aims to replace a plain confirmation box with a cute one. This plugin will help you to create a flying bubble confirmation box upside your link. Basically this plugin will create a DIV element that contains confirmation box after your clicked element, then it will appear with fading in and dissappear with fading out. See the example on the demonstration page.

To create that one you just need to include jConfirmation plugin to your page, create a link, specify a class name, ask jConfirmAction to create a confirmation box and that’s it you have a cute confirmation box.

Prepare the link :

<a class="ask" href="somepage.html">Delete Me</a>
<a class="ask" href="anotherpage.html"><img src="images/trash.png" border="0" alt="" /></a>

Ask jConfirmAction to create a confirmation box :

//Default
$('.ask').jConfirmAction();
 
//Customized Language (Indonesian)
$('.ask-custom').jConfirmAction({question : "Anda Yakin?", yesAnswer : "Ya", cancelAnswer : "Tidak"});

jConfirmAction has three arguments that aims to customize language for the confirmation box :
question : A text for your question (default : Are You Sure?).
yesAnswer : A text for Yes answer (default : Yes).
cancelAnswer : a text for Cancel/No answer (default : No).

Since jConfirmAction using css to display the confirmation box’s style, we can modify the box’s style based on our needs. For next release, i want to support various animation style to display and remove the confirmation box. Thanks and spread the world! :)

Tags :   CSS    Forms    Free Stuff    jQuery  

Share :           jQuery Plugin : jConfirmAction (via @hdytsgt)



webstuffshare RSS



  Similar Stuffs  

  34 Shouts to “jQuery Plugin : jConfirmAction”  

    bot4x


    Hidayat Sagita


    Hidayat Sagita


    Hidayat Sagita


    Scott


    Hidayat Sagita


    Hidayat Sagita


    Tom


    Hidayat Sagita


    pomeh


    Manuel Silva


    Hidayat Sagita


    jesus mata


    max.me


    Manuel Silva


    James Moberg


    Hidayat Sagita


    Bob


    andrew


    andrew


    Hidayat Sagita



  Shout Something  

  Follow Webstuffshare  
RSS
  FREE Subscribe  

Get Free Webstuffshare Daily Updates.

  Hot Stuffs  
  Recent Shouts