Skip to main content

Add WaitPanel to onclick/Action.Javascript

Comments

1 comment

  • Johnny Stevens

    I received an answer back from Logi Support on this (a few days ago, sorry for the delay). Basically, to add a Wait Panel to my Action.Javascript, I need to build an Action.Refresh with a Wait Panel that does what I need done (not available for Action.ShowElement) and then copy that into my Action.Javascript call.

    Here are the details of Logi's response:

    Thank you for submitting this case to Logi Support. 

    You can't add a wait panel element to an Action.Javascript element. To add the wait panel, you would have to come up with your own version of the JavaScript function based on the current version and add a call to a wait panel. This may not be terrible as the script ultimately calls the Logi javascript function that performs the Action.RefreshElement Logi Ajax refresh; this function does support a wait panel.

    The syntax to include the Wait Panel is best identified by building an Action.Refresh Element that mimics the content you would like to include and then copy its content from the resulting HTML page.

    The following scab rdAjaxRequestWithFormVars should provide an idea of how the Wait Panel object is included/determined:

    rdAjaxRequestWithFormVars('rdAjaxCommand=RefreshElement&rdRefreshElementID=divDataTable&rdReport=Sample','true','',true,null,null,[' Please Wait...','rdThemeWaitPanel','rdThemeWaitCaption']);

    0

Please sign in to leave a comment.