Continue or Cancel alert dialog within JSX

Sorry folks another newbie here - both to scripting and pshop scripting. So please excuse such a basic question but I am having a little trouble with an alert box that I added to top of some javascript I grabbed from the listener.
I want to be able to display an alert dialog to the user asking them to ensure their image meets certain requirements before continuing. Something like 'make sure your image is like this before continuing. Continue or Cancel'. When the user hits the continue button the rest of the javascript runs but if they hit the cancel button the script is aborted.
All I have been able to do is show a dialog before the script starts and then instruct the user to hit Okay to continue and press the ESC key to abort. Not very elegant and only works on Windows not Mac machines.
Any help or ideas would be fab.
Cheers,
Philip

You would have to wrap the subsequent Script-elements in an if-clause like
var result = confirm("continue or stop", false);
if (result == true) {
// insert your code
I want to be able to display an alert dialog to the user asking them to ensure their image meets certain requirements before continuing.
What requirements are those?
Might it be possible to have the Script check those conditions?

Similar Messages

  • Dialog Pop-Up screen with Continue and Cancel Icons

    we should have to enter Purchase Order and Item in the pop-up, How?

    hi
    create a modal dialog box screen and give purchase order and item as text box and using pf status put buttons continue and cancel
    call the screen by using the co-ordinates
    eg:
    call screen 100 starting at 10 10
                           ending at  50 50.
    Regards,
    Prashant
    *reward if helpful

  • Alert dialog shows in the wrong place

    Hello,
    I've an extension (based on <csxs:CSXSWindowedApplication>) that opens a Window component called Info:
    public function myDoAbout():void{
         var window:Window = new Info();
         if(window){
         window.type = CSXSWindowType.MODAL_DIALOG;
         window.width = 400;
         window.height = 630;
         window.resizable = false;
         window.open();
    That's fine. Whithin this window, there's a button that launches an Alert dialog:
    Alert.show("Message in a bottle", "Extension Alert Title", Alert.OK, Sprite(mx.core.Application.application));
    The problem is that the Alert dialog shows not within that window, but inside the (parent) extension.
    What's the correct syntax for the optional but mandatory fourth parameter in the Alert.show() to make the dialog shows in the correct place?
    Thanks
    Davide

    What a stupid.
    Sorry for having asked such a stupid question, which answer is of course "this":
    Alert.show("My message", "Extension Alert Title", Alert.OK, this);

  • That pesky Full Screen alert dialog in recent versions of Reader

    When I set the preferences within Acrobat to disable that horrible, pesky Full Screen alert dialog, it still appears on the end-user's Reader software, even though I turned it OFF from within Acrobat [slaps forehead].
    Is there any way, by hook or by crook, by script or Acrobat Javascript, to stop this from happening?
    There is no point allowing Full Screen functionality if the end-user is scared to death by a horrible dialog box that more or less guarantees - if not encourages - the user to click NO to the full screen experience [slaps forehead again].
    Any help with this would be of tremendous value and will be much appreciated as this is driving me nuts.
    Thanks in advance,
    Jeremy Lerman

    It's not a "security" issue per se, but it is a potential issue of misrepresentation - you can craft a PDF to appear as an application (adding screen furniture, etc.) and confuse a user as to what they're subsequently allowing Reader to do. It's the same reason all Javascript alert boxes in Reader/Acrobat start with a "javascript" title, so they can't pretend to be a system message.
    Physically exploiting Reader to do something horrible is no longer as easy as it used to be, but it remains possible to confuse a user into allowing some data transfer, if you for example make Reader "pretend" to be your web browser. The FSW popup is also there to allow people a decision point - if the PDF could open FS mode without intervention, it annoys people running high-res monitors where Reader is only taking a portion of their workspace.

  • SOLVED: Blank Installer Alert dialog - CS4 Installer vs Safari 4

    According to the Adobe KB, the blank installer alert dialog is a result of having Safari 4 installed. (Seriously?!)
    They were of the opinion that it meant you didn't meet minimum system requirements, but that's not the only way to get it. You can also get it for something as piddling as have Safari or Firefox running when you launch the Installer. (OMG! He's running a browser! Stop everything!!!1!)
    As such, here's a way to locate the actual error message that should be in the Installer window.
    The Fix
    The fix assumes you have already run the CS4 installer and staring at a blank Installer Alert right now. If you're not, do so first.
    Then do the following...
    Launch Console, located in the Utilities folder inside the Applications folder.
    Click the Logs button in the upper left of the window.
    In the list of logs on the left, navigate to:/Library/Logs/Adobe/Installers
    Locate the current install. It will end in today's date.log.gz. For example:Adobe Creative Suite 4 Design Premium 4.0 07-24-2009.log.gz
    Click the log and scroll to the very end, where you will see an ERROR, followed by the reason.
    For example:
    [       0] Fri Jul 24 11:24:37 2009 ERROR
    Installation cannot continue until the following applications are closed:
    - Firefox
    Please exit these applications and then click Retry to proceed.
    Now you can Force Quit the Installer (option-click on the icon in the Dock to see this menu item), rectify the situation, and try, try again...
    Hope this helps others.
    PS to any Adobe personell who might drop by: You cannot kill the Installer & Updater soon enough. Give us Apple Install packages like Jobs intended!
    I just wasted 5 or 6 hours of my company's time and 12gb of your bandwidth installing a bunch of copies of CS3 because of the wretched Installer/Updater. If I'd had Apple Install packages, I could have downloaded it once and fired the updates to all machines and been done in 20 minutes.

    Harbs just pointed me to an excellent blog post that gives me hope there will eventually be light at the end of the Installer tunnel in CS5, btw. Others might take heart from it too. I'm including a quick quote from the start of it to whet your appetite. It definitely deserves wider distribution!
    Adobe Updater Approach
    Adobe's updater technology through CS4 is known as the Adobe Update
    Manager (AUM.) AUM has a long history of various problems. Our user
    community has been vocal about the number and types of problems
    experienced through AUM. In the next instance of the Creative Suite, we
    intend to provide a different update experience that should address a
    number of the most egregious problems discussed thus far. In particular:
    Failure of an update to successfully apply to a user's system
    Failure to adequately roll back a partial or failed update, thus leaving the user's system in an unusable state
    The update process interferes with users trying to get their own work done
    When we started out the design for the new Adobe Updater we set a few simple goals:
    Make the Adobe Updater install the updates successfully and if the
    updater fails, ensure whatever was installed as part of updater is
    rolled back and the machine is back to its orginal state.
    Make the Adobe Updater non-intrusive. The Adobe Updater should not
    interfere with the user's tasks by poping dialogs in middle of your
    extremely critical workflows. It will not be an in your face
    application.
    Make sure the Adobe Updater when running does not hog your CPU cycles.
    Using the Adobe Updater should be a pleasant experience.
    Checking for updates is silent and the notification for available updates is clean and unobtrusive.
    Provide ways for system administrators to turn-off updates completly.
    Secondarily, we also want to enable easier management of updates by
    system administrators.

  • Link inside Alert dialog ?

    hello, is there any way to add an HTML link to the text
    within an Alert dialog box ?
    thanks

    titleWindow

  • Creating AWT child dialog within a parent hangs in 1.7 but works with 1.6

    Hi,
    We are making use of Java AWT packages. In which we are creating an child dialog within a parent window and it hangs, meaning none of the buttons on the child window works, even the close is not happening (parent, child and console all hangs, need to kill the applet from the task manager). No error/exception is seen in the Console. No deadlocks noticed in the thread dumps.
    This is seen only with JRE1.7 (update 10,11,13,15) version. But the same code is working fine with JRE 1.6 version.
    We also have same codebase of next release, where the code is changed to Swings and that seems to work with JRE1.7.
    Can somebody suggest me what might be causing it to fail with JRE_1.7 at the earliest as this a critical issue.
    Thanks in advance!

    We have a tuxedo service which needs to communicate with a POS device by socket. The parent process provides the tuxedo service. The child process provides the connection management for the device. Unnamed pipe is used for communication between the parent and the child. In the child process, there is no code related to tuxedo. The benefit of that design is the tuxedo server does not need to wait for connection from the device when boots up, and the tuxedo service does not need to wait for connection from the device when the service is called.
    The tuxedo server was developed 10 years ago, and worked fine till we upgraded tuxedo from 10 to 12 recently. That means it worked for 10 years, and it worked in tuxedo 6.5, tuxedo 10. But in tuxedo 12, tmboot does not return for this tuxedo server. We have to press CTRL-C and yes to cancel. After cancel, the tuxedo service seems working fine.

  • An uninvited web page comes up when i am working on the net. It takes over and then when i try to close it an information window comes up that says close to continue and cancel to stay on this page. well I can't close it and i dont' want to continue.

    How do i close a page that says hit close to continue and cancel to stay on the page?

    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • HOW DO I GET RID OF THIS MESSAGE, PLEASE???Are you sure you want to navigate away from this page? Press OK to continue, or Cancel to stay on the current page.

    everytime I go to leave a page or click on something this, this message appears and I cant find where to disable it. It just started today. Never did it before.
    Are you sure you want to navigate away from this page?
    Press OK to continue, or Cancel to stay on the current page

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Delay time for Cancel query dialog

    Hi Folks.
    I have a form where the property Interaction Mode is set to NONBLOCKING.
    When a slow query is initiated, the cancel query dialog is displayed after approx. 5 secs.
    Can anyone tell me if it's possible to alter the delay time before this dialog is shown e.g., to 30 secs?
    Regards
    Carsten Nielsen

    super

  • How do I stop "Are you sure you want to navigate away from this page? Press OK to continue, or Cancel to stay on the current page." from comeing up. It is new. Just started doing it yesterday morning.

    I have used FireFox to play the Game Kingdoms Of Camelot, a facebook game. I also have Grease Monkey and a 3rd party add on. I leave it running 24/7 to gather food in the game for my army. It has run smoothly for 6 mo. Yesterday 2/04/11 in the morning it started asking for conformation when the page refreshed. i want to know how to stop this Box from comeing up it will not continue without refreshing and will not refresh untill th question is answered. It says "Are you sure you want to navigate away from this page? Press OK to continue, or Cancel to stay on the current page."

    You're not going to stop it, and out here, what's illegal?
    What it boils down to is a matter of ethics, and it's wrong. But the web
    techies build this feature into their sites because they know somebody
    is going to fly in off an engine like Google or MSN. And take something,
    like a picture. Without stopping in and signing up or something else.
    But what if I or you is out collecting stamps or avatars or wallpapers,
    and have already taken a quiz, or signed up for a product? I've already
    done that...but the site developers who use this ingenious(hijacking)
    software don't see it that way, and don't care if you just got a computer
    and want to pick up something here or there. Those sites don't get
    anything when you visit and don't leave your number. I don't what
    these 19 tracking cookies are for, do you?
    "A liar should have a good memory" Scottish saying

  • Can a Web Service be Consumed from within JSX

    Hi all,
    In CS5, can a web service be consumed from within JSX, and if so - how?
    TIA,
    mlavie

    Kris,
    Thanks! Exactly what I needed!
    mlavie

  • Cancel Query dialog does not show for long queries

    Hi,
    I've set the interaction mode of my form to non-blocking. I then ran a long query which takes about 5 minutes to display the results. The Cancel Query popup that everyone is talking about is still not showing.
    What should my settings be to make the Cancel Query dialog popup? My client wants to have the option to cancel a query while it is still processing.
    I'm using Oracle Forms 9.0.4.0.10 and Oracle Database 10g.
    Any help with regards to this will be highly appreciated.

    super

  • [CS4Win] InDesign hangs when open alert dialog on doc close

    Hi,  When the user is closing a document, I would like to perform some logic and open an alert dialog in case of error . So I attached a doc listener to the IID_IWINDOW protocol on the Document Presentation for the doc.   When the observer receives the kLayoutWidgetBoss on that protocol, InDesign hangs at the point when the plug-in tries to open the alert box.
    Here is the gist of it ...
    void  MyDocObserver::Update(const ClassID& theChange, ISubject* theSubject, const PMIID& protocol, void* changedBy)
       switch (protocol.Get())
         case IID_IPRESENTATIONLIST:     
           if(theChange == kOpenLayoutCmdBoss)  {
             IDocumentPresentation* frontDocPresentation = Utils()->GetActiveDocumentPresentation();
             InterfacePtr wsubject(frontDocPresentation, IID_ISUBJECT);
             wsubject->AttachObserver(ISubject::kRegularAttachment, this, IID_IWINDOW, IID_ILAYERSETDOCOBSERVER);
          break;
        case IID_IWINDOW:
          if(theChange == kLayoutWidgetBoss)  // also tried kCloseWinCmdBoss
             // processing
             if(failed)
               CAlert::WarningAlert(kSomeTextKey);  // INDESIGN HANGS HERE.
             // detach observer on IID_IWINDOW
          break;
       default:
          break;
    I have also tried to listen to the kPresentationClosedMessage on the IID_IPRESENTIONLIST protocol, without going through the trouble of attaching /detaching listeners on the IID_IWNDOW protocol, but it produces the same result.
    I couldn't use the DocResponder for the BeforeClose message, because the processing requires the document still open in the front window. This same piece of code works in CS3, and also in CS4 on Mac, but it failed in CS4 on Windows.
    Am I missing something obvious?
    Thanks,
    Mingjian Song

    Hi Markus, having spare time? 
    Mingjian, there is a completely different mechanism - search the forum for DocFileHandler.
    When you use that approach, please apply full chaining so that other plugins also have their chance.
    Dirk

  • How do I get the warning message back that says information you are sending may be read by a third party continue or cancel?

    I used to get the pop down screen that said information you are sending could be read by a third party, continue or cancel. at the left corner there was a little box the was checked that said basically always ask this first, somehow I was not paying attention and unchecked it. now the warning does not appear.

    You can set the pref <b>security.warn_submit_insecure</b> to true and maybe other security.warn prefs as well on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    You can use the Filter bar at to top of the about:config page to locate a pref more easily.

Maybe you are looking for