Using a form HTML form in Cognos 8.4

Posted by Rahul Kadam on Stack Overflow See other posts from Stack Overflow or by Rahul Kadam
Published on 2009-09-08T13:28:32Z Indexed on 2010/04/09 20:13 UTC
Read the original article Hit count: 702

Filed under:
|

Hi,

Iam using a HTML form in my Cognos 8.4 report the code for which is seen below:-

<form name="floodzone"><p>
    <input type="text" size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" />
    <input type="button" value="Go!" onclick="showAddress();" />
  </p>

<div id="map_canvas" style="width: 1000px; height: 375px"></div></form>**

and i am referencing the above code in the follwoing manner in the HTML item itself:-

function showAddress() {

//var address = 
alert(document.floodzone.address.value);}

But when i click on the Go button i get the following error as an 'Error in page' (the one u get on the browsers):- Error: 'document.floodzone.address' is null or not an object

this same code when i run using Frontpage or Normal IE itself runs fine. But as soon as i put this in Cognos HTML container it thros the error.

Request any leads into this.

© Stack Overflow or respective owner

Related posts about cognos

Related posts about html