Alpha Video Training
Results 1 to 5 of 5

Thread: Client Side Event e.javascript

  1. #1
    "Certified" Alphaholic chadbrown's Avatar
    Real Name
    Chad Brown
    Join Date
    Aug 2007
    Location
    Aurora, Ontario, Canada
    Posts
    1,408

    Default Client Side Event e.javascript

    Hi all I know this is a simple one but I cannot find an example of this. It is a Client-side Event such as afterGridSubmit

    How do I include items like e.javascript alert in the message where it has "Please wait"
    also curious if I can show a session variable instead

    Code:
    A5.msgBox.show('Submitted...','<div style=\'padding: 20px;text-align:center;\'>Please wait <br /><img src=\"candybar.gif\"></div>','none',function() {});
    Thanks
    Chad Brown

  2. #2
    Moderator Steve Workings's Avatar
    Real Name
    Steve Workings
    Join Date
    Apr 2000
    Location
    The Dreaded Chair
    Posts
    5,592

    Default Re: Client Side Event e.javascript

    You could create callback that forms the message, which would give you the opportunity to add in session variables or anything else server side if you want. So your callback might be:

    Code:
    function WaitMsg as c (e as p)
       txt = "Please wait while " + session.whatevervar + " is processed."
       msg = "A5.msgBox.show('Submitted...','<div style=\'padding: 20px;text-align:center;\'>" + txt + " <br /><img src=\"candybar.gif\"></div>','none',function() {});"
       WaitMsg = msg
    end function
    Is that the sort of thing you're looking for?
    -Steve


  3. #3
    "Certified" Alphaholic chadbrown's Avatar
    Real Name
    Chad Brown
    Join Date
    Aug 2007
    Location
    Aurora, Ontario, Canada
    Posts
    1,408

    Default Re: Client Side Event e.javascript

    Thanks Steve, will give that a go. So I should be able to reference the e.javascript in place of the session.whatevervar as well then correct?
    Chad Brown

  4. #4
    Moderator Steve Workings's Avatar
    Real Name
    Steve Workings
    Join Date
    Apr 2000
    Location
    The Dreaded Chair
    Posts
    5,592

    Default Re: Client Side Event e.javascript

    Well, I suppose you can depending on the contents of e.javascript. Something tells me we're not communicating completely here and/or I'm not really responding with what you want.

    Usually, e.javascript is something used to emit javascript at the end of of server side event. It's probably pretty quick and easy to discover if your understanding of this is correct or not by plugging it in, maybe with debug running.
    -Steve


  5. #5
    "Certified" Alphaholic chadbrown's Avatar
    Real Name
    Chad Brown
    Join Date
    Aug 2007
    Location
    Aurora, Ontario, Canada
    Posts
    1,408

    Default Re: Client Side Event e.javascript

    Its all good Steve I ended up using a session variable instead you can see my other post about mandrill to see what I used. Thanks again for your help.
    Chad Brown

Similar Threads

  1. How to assign value to session variable in javascript client side event
    By sremias in forum Application Server Version 11 - Web/Browser Applications
    Replies: 6
    Last Post: 11-10-2014, 10:53 AM
  2. Help with client side show/hide javascript expression
    By WindForce in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 05-27-2014, 06:35 AM
  3. Client Side immediate validation JavaScript Required. NB!!!
    By Corne in forum Mobile & Browser Applications
    Replies: 35
    Last Post: 11-25-2013, 03:36 AM
  4. Help with Image Upload Javascript Client Side "after upload" event
    By gkpurcey in forum Application Server Version 11 - Web/Browser Applications
    Replies: 5
    Last Post: 05-23-2013, 12:40 AM
  5. Javascript expression for client side color option
    By Rich Hartnett in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 06-02-2010, 02:51 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
  •