ESS AGS call in JavaScript not returning data

 2 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Shelby
Basic Member
Posts: 10
Basic Member
    Hi,

    I am trying to copy an existing custom AGS call from elect_benefits.htm to elect_ben_05.htm. We are using ZN31.1 to determine if the Evidence of Insurability (EOI) statement should be displayed. 501 indicates the message should be displayed.

    In elect_benefits, the returned data is found in self.js1.RtnMsgErrNbr. However, when I step through the code in elect_ben_05, self.js1.RtnMsgErrNbr is undefined. (I can momentarily see the value set as 501 in the Debugging Tool. But when control returns to elect_ben_05, RtnMsgErrNbr is undefined).

    I have verified that the same hidden iforms are included. I have verified that the same script files are included. The AGS call is the same in the two files.

    What am I missing? Any help or suggestions would be greatly appreciated!

    Here is some of the code ("FC=V" is the code for verification):












            
           

         ...




    Shelby
    Basic Member
    Posts: 10
    Basic Member
      The lines with the iframe information was cut off ...




      ...


      Shelby
      Basic Member
      Posts: 10
      Basic Member
        I have finally been able to resolve the issue - it was timing. Execution of the code would continue before AGS could call the ShowEOI function and set the boolean flag. My workaround has been to create a message DIV then have the ShowEOI function display the message using innerHTML when appropriate.