JavaScript Popup Windows

667 views
Skip to first unread message

Falor, Brian

unread,
Mar 22, 2010, 11:49:30 AM3/22/10
to live...@googlegroups.com

was wondering if it is possible to alter certain aspects of the JavaScript Popup Window, such as color, font, and especially removing the phrase “Warning: JavaScript Window – “ using JavaScript when you are calling the window with xfa.host.messagebox(“Whatever”, “Whatever”, 3);

 

Is there any other script you can include with this to change or alter the aspects described above or does it have to be done with some kind of 3rd party software?

 

Thank you,

 

_____________________________________

Brian Falor | GES Intellikit Developer

Main 702.515.5500   |  Fax 702.515.5953
Direct 702.515.5986 |  Mobile 702.576.4958
GES_tag_horizontal
www.ges.com | bfa...@ges.com

 

going_green.gifPlease consider the environment before printing this e-mail

 

 

CONFIDENTIAL NOTICE: This e-mail transmission (and the attachments, if any, accompanying it) may contain confidential information. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any forwarding, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

Jono Moore

unread,
Mar 22, 2010, 12:16:15 PM3/22/10
to Adobe LiveCycle Developers
There's not much you can do about it.

Acrodialogs from Windjack Solutions does a good job and does move the
javascript warning to a less conspicuous spot.

I haven't used it a lot but it is great software for building fancy
dialogues. You build them in Acrobat and then paste the code into
LiveCycle.

http://www.windjack.com/products/acrodialogs.html

On Mar 22, 8:49 am, "Falor, Brian" <BFa...@ges.com> wrote:
> was wondering if it is possible to alter certain aspects of the JavaScript Popup Window, such as color, font, and especially removing the phrase "Warning: JavaScript Window - " using JavaScript when you are calling the window with xfa.host.messagebox("Whatever", "Whatever", 3);

Duane Nickull

unread,
Mar 22, 2010, 12:25:43 PM3/22/10
to Adobe LiveCycle Developers
Here is the full JavaScript API

Method signature:
int messageBox(string param1 [, string param2] [, int param3] [, int param4])

param1: The message to display.
param2 (optional) : The title to appear in the dialog's window title.
param3 (optional) : The icon to display: '0' (Error (default)), '1' (Warning), '2' (Question), and '3' (Status).
param4 (optional) : The buttons to display: '0' (OK (default)), '1' (OK, Cancel), '2' (Yes, No), and '3' (Yes, No, Cancel).
returns: Returns the type of the button that was pressed by the user: '1' (OK), '2' (Cancel), '3' (No), and '4' (Yes).

The strings are mutable.

Duane
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.



---
Adobe LiveCycle Enterprise Architecture - http://www.adobe.com/products/livecycle/
My TV Show - http://tv.adobe.com/show/duanes-world/
My Blog – http://technoracle.blogspot.com/
My Band – http://22ndcenturyofficial.com/
Twitter – http://twitter.com/duanechaos

Falor, Brian

unread,
Mar 22, 2010, 12:39:01 PM3/22/10
to live...@googlegroups.com

Thanks guys.  I know about all the parameters Duane has shown below and use them occasionally and had heard of the Windjack software, but was hoping to find something in a JavaScript that I could add to the script parameters Duane addresses below and use to kind of “warm up” the actual window itself – things like font manipulation (face, italics, boldness, colors, etc.) and window colors as well as something I might be able to do with the warning blurb to either get rid of it or, like Windjack does – subdue it a bit.  When the window pops up, it is a blue header and grey background and has the Warning text before showing the actual window title you wish to convey.  As it is, it is rather harsh looking.  As a developer, I’m not too bothered with it the way it is, but I’m finding that our users don’t particularly care for the window the way it is and would like to see something a little “warmer” and not so “cold” so to speak.  I take it there is nothing in some kind of a simple JavaScript that I could add to the existing script as described by Duane below to enhance the window itself and not just what it contains and the returns from the buttons?

 

_____________________________________

Brian Falor | GES Intellikit Developer

Main 702.515.5500   |  Fax 702.515.5953
Direct 702.515.5986 |  Mobile 702.576.4958
GES_tag_horizontal
www.ges.com | bfa...@ges.com

 

going_green.gifPlease consider the environment before printing this e-mail

 

CONFIDENTIAL NOTICE: This e-mail transmission (and the attachments, if any, accompanying it) may contain confidential information. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any forwarding, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

--

Falor, Brian

unread,
Mar 22, 2010, 2:58:15 PM3/22/10
to live...@googlegroups.com

I think I’ve found the solution I’m looking for.  app.execDialog() (going back to standard Acrobat JS) seems to be MUCH more diverse than the standard xfa.host.messagebox() used by LiveCycle – and it seems to work in LC forms too.  It also seems to be the bottom line for the Windjack software.  It appears as if they take you through a wizard process that builds the dialog box for you instead of you having to build it yourself.  If someone did not wish to purchase 3rd party software such as Windjack and didn’t mind writing all the code involved to build their own dialog box, it does appear to be a more appealing alternative.

 

_____________________________________

Brian Falor | GES Intellikit Developer

Main 702.515.5500   |  Fax 702.515.5953
Direct 702.515.5986 |  Mobile 702.576.4958
GES_tag_horizontal
www.ges.com | bfa...@ges.com

 

going_green.gifPlease consider the environment before printing this e-mail

 

From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of Duane Nickull
Sent: Monday, March 22, 2010 9:26 AM
To: Adobe LiveCycle Developers
Subject: Re: JavaScript Popup Windows

 

Here is the full JavaScript API

CONFIDENTIAL NOTICE: This e-mail transmission (and the attachments, if any, accompanying it) may contain confidential information. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any forwarding, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

--

Reply all
Reply to author
Forward
0 new messages