Alpha DevCon 2018
Results 1 to 3 of 3

Thread: Looking for details about Action Javascript Open A5W Page Window Javascript Events

  1. #1
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    6,796

    Default Looking for details about Action Javascript Open A5W Page Window Javascript Events

    I've had a good look through the forum and in the docs and can't seem to find any information on the Window Javascript Events that are available in the Action Javascript Open an A5W Page.

    There's lots of them:

    onInitialize
    onBeforeShow
    onShow
    etc.

    I'm interested in the onBeforeShow. Specifically... can I cancel the show?

    I have a dialog with a repeating section. I have an image control with an onClick event in a header section and when I click it I run Action Javascript to open an A5W page containing a dialog.

    What I'd like to do is test for a value in the current row of the repeating section and, depending on the value, not allow the page to open.

    I thought the onBeforeShow might have something like a "cancel" but that doesn't really make sense since it's all javascript.

    If I could attach a javascript "if" to the Action Javascript that would be great... but that's not available.

    Anyone know of any little gems available for these events? Or other ideas to accomplish this?

    Thanks,

    David

  2. #2
    "Certified" Alphaholic
    Real Name
    Frank Bicknell
    Join Date
    Feb 2010
    Location
    39.1915° N, 84.4348° W
    Posts
    2,441

    Default Re: Looking for details about Action Javascript Open A5W Page Window Javascript Event

    David I don't think this is what you want but a return false; in a grid open window action javascript stops the window from opening.
    Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

  3. #3
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    6,796

    Default Re: Looking for details about Action Javascript Open A5W Page Window Javascript Event

    Absolutely Frank... excellent... thank you! I had a return in there... completely forgot about the false.

Similar Threads

  1. Passing Javascript Variables between 2 A5W Page Dialogs
    By Davidk in forum Application Server Version 11 - Web/Browser Applications
    Replies: 22
    Last Post: 03-07-2015, 08:03 AM
  2. Close A5W page from JavaScript ?!
    By fred@cocohost.com in forum Application Server Version 11 - Web/Browser Applications
    Replies: 3
    Last Post: 01-24-2013, 09:46 PM
  3. Replies: 0
    Last Post: 07-21-2012, 10:06 AM
  4. Action JavaScript not available in Grid Javascript function declarations
    By Clipper87 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 09-23-2010, 10:22 AM
  5. How to stop a series of Action Javascript events if ?
    By Scholin in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 01-25-2010, 02:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •