CodeCanyon

jQuery MsgBox

  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
nicojmb says
Purchased

Please, update the script to support Jquery 1.7.+

Thanks!

4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
  • Spain
Lombar says
Purchased

Hola. Alguna vez comentas que para usar el script en HTML5 y con Explorer hay que poner una modificación o script. ¿cual es? ¿Nos puedes dar mas datos?

Hi. Sometimes you said that we must include some script to use youir script on HTML5 and Explorer. Can you give us more information?

P.D.: Puedes contestar en inglés si piensas que por interés general vaya en ese idioma. Gracias
4 months ago
Author
aeroalquimia aeroalquimia replied

Hola. No, si alguna vez lo he comentado es porque habrá sido un problema con el DocType.

Si el sitio está bien diseñado en HTML5 y tiene los scripts de compatibilidad de HTML5 con IE6 (por ejemplo boilerplate), entonces no hay ningún problema.

English version: There’s no problem at all :)

Best Regards.

4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
c2h says
Purchased

Hi,

Very fine job : I love it.

Maybe a detail : I want to have a javascript function : BoxYesNo(), which may return the button pressed. It looks like that :

<script type=’text/javascript’> function BoxYesNo (message){ BackValue=””;

{type: “confirm”,buttons : [{type: “submit”, value: “Yes”},{type: “submit”, value: “No”}]}, function(result) { BackValue = result; }); return BackValue; } </script>

The problem is that the callback function seems to be asynchronous.

Is there a way to fix it ?

Best regards

Christian

4 months ago
Author
aeroalquimia aeroalquimia replied

The function is asynchronous. I can’t stop the execution of the code waiting the response.

4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
c2h says
Purchased

Here’s the right code…

<script type=’text/javascript’> function BoxYesNo (message){ BackValue=””; $.msgbox( message, {type: “confirm”,buttons : [ {type: “submit”, value: “Yes”},{type: “submit”, value: “No”} ]}, function(result) { BackValue = result; }); return BackValue; } </script>

4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
butchdulaney says
Purchased

Outstanding! Converted a project from confirm and ajax modal dialog panels in a very short time.

One question: What are the valid input types we can display on a msgbox? I see the Text type, but what about a Date picker and Combobox?

Thanks

4 months ago
Author
aeroalquimia aeroalquimia replied

Hi,

It only supports text inputs.

Regards.

4 months ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
flexin says
Purchased

Hello,

First of all – thanks for a great piece of code. I’m having a problem however. when using

$.msgbox(‘test message’);

it returns the following error:

Uncaught TypeError: Object has no method ‘queue’ $.extend.MsgBoxObject.show17.js:95 $.extend.msgbox17.js:143 $.ui17.js:9 jQuery.Callbacks.firejquery.js:1046 jQuery.Callbacks.self.fireWithjquery.js:1164 jQuery.extend.readyjquery.js:435 DOMContentLoaded

I tried searching this discussion forum, but it doesn’t look as if someone else ran into this one before – do you have any idea?

3 months ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
flexin says
Purchased

I apolgise – I fixed the error by loading in the correct order (I was calling the $.msgbox method before the plugin was ctually loaded (which is strange thourhg, as the $.msgbox method was called within the onLoad method, so I thought I was save, but I guess I wasn’t :)

Anyway – this got fixed. I have one more question – if we have 3 warnings or errors, is there a way we can easily show them in one dialog? Otherwise it might all become a little annoying, no?

Each time we communicate with the server through Ajax, we might receive messages which will be shown, so we would like them to be shown in one popup if there are more messages to be shown… Is this possible, or is this perhaps planned for a new version of the plugin? :)

3 months ago
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
sodrasoo says
Purchased
Hi, I’m having problems duplicating the functionality of the standard confirm dialog. Currently i need to use it in two instances:
<a onclick="if (! confirm('An internet connection is required in order to email this PDF')) { return false; }" href="#" rel="email">Email PDF</a>

and also

<a onclick="if (! confirm('An internet connection is required in order to view this external url')) { return false; }" href="http://www.google.com">Visit URL</a>

I only need either Accept or Cancel however the return doesn’t appear to work when i attempt with msgBox.

thanks for your help!

Brian

3 months ago
Author
aeroalquimia aeroalquimia replied

Because msgbox runs asynchronously.

This can be good a solution:

<a class="plzconfirm" title="An internet connection is required in order to view this external url" href="http://www.google.com">Visit URL</a>
<script type="text/javascript">
jQuery(document).ready(function($) {
  $(".plzconfirm").live("click", function(e) {
    $.msgbox($(this).attr("title"),{
      buttons : [
        {type: 'submit', value:'Yes'},
        {type: 'cancel', value:'No'}
      ]
      }, $.proxy(function(e) {
        if (e) {
          window.location = $(this).attr('href');
        }
      }, this)
    );
    return false;
  });
});
</script>
3 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
enterform says
Purchased

Excellent! Definitely the best script of its kind that I have seen. Very well crafted and super easy to customize or just use out of the box.

2 months ago
Author
aeroalquimia aeroalquimia replied

Wow :) Thank you.

2 months ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
martinbroos says
Purchased

Hi Just used your script again for a website. Keeps amazing me how easy this is to use. One note , i had to have custom buttons which i already made in a button class.

At this moment i had to alter the script and add the class myself, is it possible you can make an option for it where you can give the button a class. Besides that i also like an option to implement a title to the box.

Thnx!

2 months ago
Author
aeroalquimia aeroalquimia replied

Yes, it’s a good idea.

2 months ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
  • Lebanon
zeinsystems says
Purchased

hi nice script but i can’t find a way to use one box for many delete confirmations that send the Id of the object being deleted …...

2 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
  • Brazil
cristianopo says
Purchased

Excellent script, but I can not “replace” the alert box that used with this code that displays the error after sending the form:

<script language=”javascript” type=”text/javascript”> alert (’<? php echo $ error;?>’); </ script>

There is possibility to use this script to substitur an alert box after sending the form?

1 month ago
  • Has been a member for 0-1 years
tzing says

hello ,how do I setting the width for msgbox? thank you:)

1 month ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Turkey
cosmotheory says
Purchased

how to combine with http://codecanyon.net/item/ajax-translator-revolution-lite-jquery-plugin/246175 ??

1 month ago
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
Undertow says

Hey.

Is possible to load these functions on page onload?

Thanks!

1 month ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
  • Mexico
gonzalex2 says
Purchased

Hola que tal acabo de aquirir, este hermoso articulo, pero mi duda como lo configuro para que pueda enviar algun formulario por mail, estoy intentando de colocarle algun formulario o mejor dicho colocar HTML dentro del pop-up

29 days ago
Author
aeroalquimia aeroalquimia replied

Hola,

Este script es muy limitado para crear formularios y mostrarlos en el popup. Te convenia mas comprar el lightbox evolution. Sin embargo, puedes crear los inputs comunes y enviarlos a la direccion php que indiques con el siguiente código:

    $.msgbox('', {
      type: 'prompt',
      form: {
        active: true,
        action: "http://tudominio.com/demo.php" 
      },
      inputs: [
        {type: 'text', label: 'Usuario:', required: true, name:"username"},
        {type: 'password', label: 'Password:', required: true, name: "password"}
      ],
      buttons: [
        {type: 'submit', value: 'Aceptar'},
        {type: 'cancel', value: 'Cancelar'}
      ]
    }, function(name, password) {
    });
28 days ago
by
by
by
by
by