[PLUGIN] Dialog Box

Post your completed addons to share with the community

Post » Sat Dec 10, 2011 6:08 pm

Here's a new plugin which could be useful for some projects.
It calls the prompt(), alert() and confirm() of the browser, that's why it can't be have the same look.
For now, there's none ID parameter that can be assigned to each dialogs (especially for confirm & input dialogs), I'm working on it but you can use variables instead.


Dialog Box
Version: 1.0 (10th December 2011).
Tried in Internet Explorer 9.0.3 / Opera 11.51 / Chrome 15.0.874 / Safari 5.1.2 (Is Cancel button clicked condition doesn't work since 5.1+) / Firefox 8.0 / Mobile Safari (iOS 4)


Download DialogBox.rar


ACTIONS.
DIALOGS TYPE.
Open an alert dialog(message) Open an alert dialog. OK button
Open an input dialog(message, input by default) Open an input dialog. OK & Cancel buttons.
Open a confirm dialog(message) Open a confirmation dialog. OK & Cancel buttons.


CONDITIONS.
CONFIRM DIALOG.
is OK button clicked Return true when the user clicked on OK button in the Confirm dialog.
is Cancel button clicked Return true when the user clicked on Cancel button in the Confirm dialog.
INPUT DIALOG.
is OK button clicked Return true when the user clicked on OK button in the Input dialog.
is Cancel button clicked Return true when the user clicked on Cancel button in the Input dialog. Doesn't work in Safari 5.1+
is Input is empty Return true if the user doesn't input anything in the Input dialog.


EXPRESSIONS.
TEXT.
getInputText Return the text that the user wrote in the Input dialog.


TODO List for this plugin.
- Add ID to confirm and input dialogs.
- Add customized non-system dialogs.
- Try to solve the isCancelButtonClicked issue with Safari 5.1+.
- A french version.


Let me know your suggestions, requests and corrections (as about language) as well as any bug report.
Enjoy ;)
septeven2013-01-12 17:21:57
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Sun Dec 11, 2011 12:03 am

Nice~ C2 could be a html editor.
B
97
S
22
G
177
Posts: 4,113
Reputation: 103,531

Post » Tue Apr 24, 2012 1:01 am

@septeven

For "input dialog":

Might condition:"is OK button clicked" become a cf_trigger condition?
So that it can be trigger once after clicking "OK".
rexrainbow2012-04-24 01:08:06
B
97
S
22
G
177
Posts: 4,113
Reputation: 103,531

Post » Tue Apr 24, 2012 12:46 pm

@rexrainbow
I'll try to do this asap
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Sun Apr 29, 2012 12:14 am

@septeven

Sorry, I made a mistake again. This plugin can work fine if I put "is OK button clicked" after "input dialog"

For example:
[code]+ on start of layout:
- input dialog
    + is ok botton clicked
    - do something[/code]

So it does not need to change anything.
B
97
S
22
G
177
Posts: 4,113
Reputation: 103,531

Post » Sat Jun 02, 2012 9:50 am

Hi ,

How can we use this plug in type for Confirm box and alert boxes with return type.

Thanks,
M.Maheswar
B
1
Posts: 1
Reputation: 377

Post » Sat Jun 02, 2012 12:43 pm

@maheswarreddy4
Sorry but I don't really understand what are you saying...
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Wed Aug 15, 2012 3:42 am

Hi, I like the plgin. I couldn't get it working with Chrome(21.0.1180.79 m). But it worked just fine in Firefox(14.0.1). Also It would be nice to have custom buttons, and have more than two :)
B
16
S
4
G
1
Posts: 47
Reputation: 2,542

Post » Wed Dec 04, 2013 9:51 pm

Hey its not showing up. Try Alert and Confirm dialog box.

Call it after both AJAX complete and fail calls, no show on the dialog boxes?

Help please.
B
5
Posts: 78
Reputation: 406

Post » Thu Dec 05, 2013 8:19 am

please provide a capx, the dialog box works correctly here
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest