COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: everlearner on 25 Jun 2012 07:11:58 AM

Title: prob with java script?
Post by: everlearner on 25 Jun 2012 07:11:58 AM
Hi gurus,

i added a HTML item in my report page. and entered this.
<script type="text/javascript">alert("hello")</script> then save & Run.

but it is not prompted the message when i run the report. any one please let me know how to get that o/p on my report
Title: Re: prob with java script?
Post by: pricter on 25 Jun 2012 08:29:25 AM
You have missed a semicolon after the alert and you have to replace the double quotes " with "
for example

<script type="text/javascript">alert("hello");</script>