I'm tryng to use Maptips widget<br><br>i've added this..<br><br> <script type="text/javascript"><br> function myMaptipsOver(e, content)<br> {<br> e = (e)?e:((event)?event:null);<br> var d =
document.getElementById('myMaptipsLayer');<br> if (d == null)<br> {<br> d = document.createElement( 'div' );<br> <a href="http://d.id">d.id</a> = 'myMaptipsLayer';<br>
document.body.appendChild(d);<br> d.setAttribute( 'style', 'position:absolute; top:-1000px; left:-1000px; width:100px; height: 16px; background-color:#ffffcf; font-family:arial; font-size:12px; z-index:100; border: 1px solid #00000;' );
<br> d.style.position = 'absolute';<br> d.style.top = "-1000px";<br> d.style.left = "-1000px";<br> d.style.width = "100px";<br>
d.style.height = "16px";<br> d.style.backgroundColor = "#ffffcf";<br> d.style.border = "1px solid #000000";<br> d.style.fontFamily = "arial";<br>
d.style.fontSize = "12px";<br> d.style.zIndex = 100;<br> }<br> d.style.top = (e.clientY + 10) + "px";<br> d.style.left = (e.clientX + 10) + "px";
<br> d.style.height = (16 * content.length)+"px";<br> d.style.visibility = "visible";<br> var sep = "";<br> var result = "";<br> for (var i=0;i<
content.length; i++)<br> {<br> result = result + sep + content[i];<br> sep = "<br>";<br> }<br> d.innerHTML = result;<br> }<br> <br> function myMaptipsOut(e, content)
<br> {<br> e = (e)?window.event:e;<br> var d = document.getElementById('myMaptipsLayer');<br> if (d)<br> {<br> d.style.visibility = "hidden";<br> }<br>
}<br> </script><br> <td><cwc2 type="MapTips" defaulttext="&nbsp;" tolerance="2" Attributes="nome" maptipsdiv="MapTipsLayer" label="Map Tips" styleresource="TextButtons" popupstyleresource="TextButtons" popupwidth="550" popupheight="475" image="images/icon_maptips.png" toolbar="false" status="false" menubar="false" onmouseover="myMaptipsOver" onmouseout="myMaptipsOut">
<br> <image state="normal"/><br> <image state="selected"/><br> <image state="hover"/><br> </cwc2> <br><br><br>And this on my template...
<br><br><!-- display maptips here --><br><div id="MapTipsLayer" name="MapTipsLayer"></div><br><br><br>When i click on the icon of maptips i can choice my layer name but i cannot see Attributes of layers!
<br><br>I'm using postgis and not shapes! Can be this the problem??<br><br>Thank you in advance<br>