Use Javascript to hide and show

Use Javascript to hide and show

  

Hi all,

    I want to use some Javascript to hide and show containers, need help. I am trying to use RunJavaScript from HTTPRequestHandler but doesnt work. The test I am trying to run is this: 

SyntaxEditor Code Snippet

"<script>
alert(´HELLO´)
</script>"


Thanks,

Tomás

Hi Tomas,

The RunJavaScript does not need the <script> tags. Try this in the Script property of the RunJavaScript Action:

"alert(´HELLO´);"

Cheers,

José

Hi José,

    I am using OnChange, so when I change some data this property call a Screen Action, then use the RunJavaScript but the alert doesnt appear. Is so simple but I can´t see where is the problem.


Thanks,

Tomás

Solution

Hi Tomas,

Check attached oml.

Cheers,

José

Solution