neoSweet Alerts Plugin - Forum

Forum Navigation
You need to log in to create posts and topics.

neoSweet Alerts Plugin

Page 1 of 2Next

neoSweet Alerts plugin is available. This is a replacement for the JavaScript popup boxes. The plugin is based on the SweetAlert2 JavaScript project and also incorporates the amazing Animate CSS library. This is a free plugin.

An online tutorial is available on my website, where you can test all the neoSweet commands and download the plugin.
Download and Tutorial

 

 

Vadim, farhad2008 and 6 other users have reacted to this post.
Vadimfarhad2008CDY@44fkapnistjavadrajabihakamismartmediaroccocoglianosuyonob

@darbdenral

Great! Great variety of popup options! Thank you very much for the new features!
We have another addition to the ranks of plugin developers! Hurrah!

Darbdenral has reacted to this post.
Darbdenral

@darbdenral great plugin! Thanks so much!
I have just added you to the "Plugin Developer" selected club :)
But please, next time use your own plugin prefix instead of "neo" to avoid conflicts.

Thanks again!

 

Darbdenral has reacted to this post.
Darbdenral

@darbdenral I have been testing your plugin and it's awesome! A really great contribution.
I have also discovered you already have a Chromium plugin too "EzChrome" in beta stage, but seems quite advanced.
Incredible work. Congratulations!!!

Best regards.

Darbdenral and Anthony LaTorre have reacted to this post.
DarbdenralAnthony LaTorre

This is a great replacement for the java message boxes.  Well done.

Darbdenral has reacted to this post.
Darbdenral

@darbdenral  Thanks so much! I already use sweet alert with other projects, it is a very good idea.

Darbdenral has reacted to this post.
Darbdenral

This is a wonderful plugin.
A thousand thanks @darbdenral

Ps: in 'sweetImage' is there a limitation or is it a bug? The height can be set but the width remains the same despite setting values.

Rocco

Darbdenral has reacted to this post.
Darbdenral

@roccocogliano Yes it is a bug.. thanks, plugin has been updated and squashed!

For the sweet image command I added 2 new parameters,  popup window width and padding.  The tutorial code has been updated to reflect those changes.

@luishp much admiration :) Also, do you want me to change the name of the plugin?

Thanks everyone for the compliments!  My first VisualNeoWeb plugin was fun and challenging. :)

luishp, Vadim and roccocogliano have reacted to this post.
luishpVadimroccocogliano

Good job @darbdenral
Thanks again.

Hi @darbdenral,

Thank you for our good plugin !  Very pleasant !

Just a question, how to attach a variable to a sweet alert, to receive informations ( for example  password, url, text entered in inputText, clicked button...) ?
Best regards,

Quote from CDY@44 on November 1, 2021, 10:45 pm

Hi @darbdenral,

Thank you for our good plugin !  Very pleasant !

Just a question, how to attach a variable to a sweet alert, to receive informations ( for example  password, url, text entered in inputText, clicked button...) ?
Best regards,

Sure,

First create a subroutine named InputResult but you can use any name.  Now select your subroutine from your list of subroutines in the sweet alert parameters box.  The plugin will send the result to that subroutine as a string parameter if successfully submitted..  So your subroutine needs to have a parameter of type string to accept and pass that on to your subroutine.

The online examples use a subroutine named InputResult.  The parameter name used in that subroutine is [inputValue] and of type string.

Here's the contents of the subroutine InputResult for the password input..

. SweetPassword returns value if confirm button ok
sweetAlert "results" "[inputValue]" "success" "ok" ""

 

CDY@44 has reacted to this post.
CDY@44

That was actually the code for a standard input box, not password.  But all the input boxes use the same method, one string parameter.  The result string is a normal string in all the inputs except the sweetProgress, that one send an array of type string .

Inputs

. Input result
sweetAlert "results" "[inputValue]" "success" "ok" ""

 

here is a password box example..

. SweetPassword returns value if confirm button ok
If [passValue] == "cancel"
sweetAlert "results" "Cancelled" "error" "ok" ""
Else
sweetAlert "results" "Results: [passValue]" "success" "ok" ""
EndIf

The sweetDialog uses a boolean parameter..

. SweetDialog returns true if confirm button ok
If [msgval] == true
sweetAlert "results" "Success" "success" "ok" ""
Else
sweetAlert "results" "Cancel: [msgval]" "error" "ok" ""
EndIf

The radio uses type integer parameter

.Red Green Blue Black
If [radioID] == 0
sweetAlert "Red Selected" "" "info" "ok" ""
ElseIf [radioID] == 1
sweetAlert "Green Selected" "" "info" "ok" ""
ElseIf [radioID] == 2
sweetAlert "Blue Selected" "" "info" "ok" ""
ElseIf [radioID] == 3
sweetAlert "Black Selected" "" "info" "ok" ""
Else
sweetAlert "Unknown Selected" "" "info" "ok" ""
EndIf

 

CDY@44 has reacted to this post.
CDY@44
Quote from Darbdenral on November 1, 2021, 10:27 pm

@roccocogliano Yes it is a bug.. thanks, plugin has been updated and squashed!

For the sweet image command I added 2 new parameters,  popup window width and padding.  The tutorial code has been updated to reflect those changes.

@luishp much admiration :) Also, do you want me to change the name of the plugin?

Thanks everyone for the compliments!  My first VisualNeoWeb plugin was fun and challenging. :)

It seems to me that he still has problems.

I'm still referring to 'sweetImage'. Or I don't know how to make it work.

Greetings
Rocco

@roccocogliano Does your plugin show SweetAlert v1.01 ?  You may need to refresh the page without cache and download again..

No cache trick using Chrome browser..
Hold shift button down in Chrome and push the Chrome refresh button..

I just tested on another computer and it worked fine..

Here is the command I used

 

sweetImage "Favoloso!" "Alert with a custom image." "" "Ok" "https://unsplash.it/800/300" 800 300 800 "" ""

 

roccocogliano has reacted to this post.
roccocogliano

@roccocogliano Another possibility.. You must not use the internal debugger to run your code..

So use Chrome, Firefox, Edge..

- Brad

 

Hi @darbdenral

Thank you for explanations ! It's clear now !

Darbdenral has reacted to this post.
Darbdenral
Quote from CDY@44 on November 2, 2021, 1:33 am

Hi @darbdenral

Thank you for explanations ! It's clear now !

You bet!  I'll be sure to update the tutorial with these examples.. ;)

Quote from Darbdenral on November 2, 2021, 12:37 am

@roccocogliano Does your plugin show SweetAlert v1.01 ?  You may need to refresh the page without cache and download again..

No cache trick using Chrome browser..
Hold shift button down in Chrome and push the Chrome refresh button..

I just tested on another computer and it worked fine..

Here is the command I used

 

sweetImage "Favoloso!" "Alert with a custom image." "" "Ok" "https://unsplash.it/800/300" 800 300 800 "" ""
sweetImage "Favoloso!" "Alert with a custom image." "" "Ok" "https://unsplash.it/800/300" 800 300 800 "" ""
sweetImage "Favoloso!" "Alert with a custom image." "" "Ok" "https://unsplash.it/800/300" 800 300 800 "" ""

 

@darbdenral It was just a matter of cache, just like you said.

Thanks again

Darbdenral has reacted to this post.
Darbdenral

Hi @darbdenral.

do you want me to change the name of the plugin?

No, it's not necessary. Just please keep it in mind for your next plugin. It will also help anyone to know it's yours just by looking at the prefix :)
Thank you!

Darbdenral has reacted to this post.
Darbdenral

@darbdenral

Felicitaciones por el plugin se ve muy bien

Pregunto, si se aplica en una pagina a la cual se le modifico el Estilo para que se vea bien en el movil ya no se ve bien tu plugin, no se adapta al nuevo tamaño

Tiene solucion eso?

A modo de ejemplo, un plugin similar al tuyo que se llama "MemMensajesPlg" se adaptan los diferentes mensajes mas alla del estilo que le hayamos configurado a la pagina

Darbdenral has reacted to this post.
Darbdenral
Page 1 of 2Next