Hi everyone!! <br><br>I tried to test this script:<br><br><pre class="wiki">/*<br> * Get the Ajax response and pop up a info bubble<br> */<br>function setHTML(response) {<br>    if (response.responseText.indexOf(&#39;no results&#39;) == -1) {<br>
        var cat=&quot;Unknown&quot;, src=&quot;Unknown&quot;, leg=&quot;Unknown&quot;, linkinfo=&quot;&quot;;<br>        var lines = response.responseText.split(&#39;\n&#39;);<br>        for (lcv = 0; lcv &lt; (lines.length); lcv++) {<br>
            var vals = lines[lcv].replace(/^\s*/,&#39;&#39;).replace(/\s*$/,&#39;&#39;).replace(/ = /,&quot;=&quot;).replace(/&#39;/g,&#39;&#39;).split(&#39;=&#39;);<br>            if (vals[1] == &quot;&quot;) {<br>                vals[1] = &quot;Unknown&quot;;<br>
            }<br>            if (vals[0].indexOf(&#39;CATEGORY&#39;) != -1 ) {<br>                cat = vals[1];<br>            } else if (vals[0].indexOf(&#39;SOURCE&#39;) != -1 ) {<br>                src = vals[1];<br>            } else if (vals[0].indexOf(&#39;LEGEND&#39;) != -1 ) {<br>
                leg = vals[1];<br>            } else if (vals[0].indexOf(&#39;DATAITEM&#39;) != -1 ) {<br>                linkinfo = vals[1];<br>            }<br>        }<br>        var popup_info = &quot;&lt;font size=2&gt;&lt;b&gt;&quot; + cat +<br>
                        &quot;&lt;br&gt;Description:&lt;/b&gt; &quot; + leg +<br>                        &quot;&lt;br&gt;&lt;a href=&#39;&quot; + linkinfo + &quot;&#39; target=&#39;_blank&#39;&gt;More Info&lt;/a&gt;&quot; +<br>
                        &quot;&lt;br&gt;&lt;font size=1&gt;Source: &quot; + src +<br>                        &quot;&lt;/font&gt;&lt;/font&gt;&quot;;<br>        if (popup != null) {<br>            popup.destroy();<br>            popup = null;<br>
        }<br>        popup = new OpenLayers.Popup.AnchoredBubble(&quot;SDVegetationInfo&quot;,<br>                                        mouseLoc,<br>                                        new OpenLayers.Size(250,120),<br>
                                        popup_info,<br>                                        null,<br>                                        true);<br>        popup.setBackgroundColor(&quot;#bcd2ee&quot;);<br>//      popup.setOpacity(.7);<br>
        map.addPopup(popup);<br>        popup.events.register(&quot;click&quot;, map, popupDestroy);<br>    }<br>}<br><font style="font-family: arial,helvetica,sans-serif;" size="2"><br></font><font style="font-family: arial,helvetica,sans-serif;" size="2">It is defined here <a href="http://trac.openlayers.org/wiki/GetFeatureInfo">http://trac.openlayers.org/wiki/GetFeatureInfo</a>, as an example!<br>
<br>I&#39;m using Geoserver 1.6.5 and I&#39;ve got this error from my javascript debbuger:<br><br>Error: OpenLayers.Popup is undefined<br><br>Then, I tried to find it in openlayers.js that&#39;s inside Geoserver... and there isn&#39;t<br>
any kind of code that sounds a Popup class definition.<br><br>I&#39;d really like to use some popups on my geoserver maps, using openlayers... <br><br>Does anyone knows something about this issue?? <br><br>I apreciate any help =)<br>
<br>Thanks for now!<br><br>Rodrigo</font><br><br><br><br></pre><br clear="all"><br>======================================<br>Rodrigo C. Antonialli<br>Rio Claro - SP - Brasil<br>LinkedIn: <a href="http://www.linkedin.com/in/rcaprofile">http://www.linkedin.com/in/rcaprofile</a><br>
Contato: &nbsp;(19) 9757-0370<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:rca.cirdan@gmail.com">rca.cirdan@gmail.com</a><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:rcantonialli@gmail.com">rcantonialli@gmail.com</a><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Skype: rc_antonialli<br>
<br><br>