<div style='font-family:Calibri,"Segoe UI",Meiryo,"Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","Khmer UI","Nirmala UI",Tunga,"Lao UI",Ebrima,sans-serif;font-size:16px;'><div>Despite your arrogant undertone - Thank you very much.</div><div> </div><div>Roland</div><div> </div><div data-signatureblock="true">Gesendet von Windows-Mail</div><div> </div>     <div style="border-top-color: rgb(229, 229, 229); border-top-width: 2px; border-top-style: solid;">             <strong>Von:</strong> Phil Scadden [via OSGeo.org]<br>           <strong>Gesendet:</strong> ‎10‎. ‎April‎ ‎2013 ‎05‎:‎23<br>              <strong>An:</strong> flyceo <<a href="/user/SendEmail.jtp?type=node&node=5045866&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>><br>             <strong>Betreff:</strong> Re: PopUp is not show<br>      </div>    <div> </div>

        In the mail list, the code was not distributed (I am guessing mail 
<br>clients didnt like the script tag) but saw it on nabble. This reinforces 
<br>my point. If you used firebug or developer console, you would have seen 
<br>console errors about map.addPopup as unknown method. If you then looked 
<br>at map variable in the debugger you would see it is a dom item. The 
<br>issue in the code is that in the init() function you have declared map 
<br>as a local variable
<br>( var map = etc)
<br>This variable is thus out of scope for the onSelect function.
<br>Remove the "var" off the map declaration, or better (IMHO) you can
<br>var map;
<br>function init()
<br>..
<br>   map = OpenLayers.map etc
<br>...
<br><br>Get used to using the debugging tools.
<br><br>Notice: This email and any attachments are confidential.
<br>If received in error please destroy and immediately notify us.
<br>Do not copy or disclose the contents.
<br><br>_______________________________________________
<br>Users mailing list
<br><a href="/user/SendEmail.jtp?type=node&node=5045683&i=0" rel="nofollow" target="_top" link="external">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" rel="nofollow" target="_top" link="external">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>

        
        
        
        <br>
        <br>
        <hr size="1" color="#cccccc" noshade="noshade">
        <div style="font: 12px/normal tahoma, geneva, helvetica, arial, sans-serif; color: rgb(68, 68, 68); font-size-adjust: none; font-stretch: normal;">
                <div style="font-weight: bold;">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/PopUp-is-not-shown-tp5045367p5045683.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/PopUp-is-not-shown-tp5045367p5045683.html</a>
        </div>
        <div style="font: 11px/1.5em tahoma, geneva, helvetica, arial, sans-serif; color: rgb(102, 102, 102); margin-top: 0.4em; font-size-adjust: none; font-stretch: normal;">
                
                To unsubscribe from PopUp is not shown, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a style="font: 9px/normal serif; font-size-adjust: none; font-stretch: normal;" href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble:email.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble:email.naml-instant_emails%21nabble:email.naml-send_instant_email%21nabble:email.naml" rel="nofollow" target="_top" link="external">NAML</a>
        </div></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/PopUp-is-not-shown-tp5045367p5045866.html">RE: PopUp is not show</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>