Try adding this to your code:<div><br></div><div><span class="webkit-javascript-ident" style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">select</span><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">.</span><span class="webkit-javascript-ident" style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">handlers</span><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">.</span><span class="webkit-javascript-ident" style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">feature</span><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">.</span><span class="webkit-javascript-ident" style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">stopDown</span><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)"> = </span><span class="webkit-javascript-keyword" style="color:rgb(170,13,145);font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">false</span><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">;
</span><br>just after you specify your <br> select <span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">= </span><span class="webkit-javascript-keyword" style="color:rgb(170,13,145);font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">new</span><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)"> </span><span class="webkit-javascript-ident" style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">OpenLayers</span><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">.</span><span class="webkit-javascript-ident" style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">Control</span><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">.</span><span class="webkit-javascript-ident" style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:14px;white-space:pre;background-color:rgb(255,255,255)">SelectFeature(layers);</span> <br>
</div><div><br></div><div><br></div><div><font face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:14px;white-space:pre"><br></span></font></div><div><font face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:14px;white-space:pre">For me, that only fires one event for a click, and corresponds to the top layer.</span></font></div>
<div><font face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:14px;white-space:pre"><br></span></font></div><div><font face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:14px;white-space:pre">Toby</span></font></div>
<div><font face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:14px;white-space:pre"><br></span></font></div><div><font face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:14px;white-space:pre"><br>
</span></font><div class="gmail_quote">On 7 August 2012 11:30, Simon Johnson <span dir="ltr"><<a href="mailto:SJohnson@redcross.org.uk" target="_blank">SJohnson@redcross.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="MARGIN:4px 4px 1px;FONT:10pt Tahoma">
<div>Hello list,</div>
<div> </div>
<div>I have a map which has both wms layers and wfs layers.  The pop up for individual layers is working fine and as expected.  However, I am having trouble working out a good approach to pop up behaviour when both wms and wfs layers are showing.  Currently due to separate events firing I get two pop ups.  One with the WMS getfeatureinfo results and one with the pop up attached to the feature.  Ideally I would want the results merged in one pop-up, but would settle for be able to choose which pop up gets priority based on layer ordering.</div>

<div> </div>
<div>Can anyone suggest a solution to the problem or provide an example that deals with a similar situation?</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Simon</div><br><br>
<p align="left"><font style><span style="FONT-SIZE:11pt;FONT-FAMILY:Arial"><a href="http://www.redcross.org.uk/appealweek" target="_blank"><font color="#0000ff"></font></a></span></font></p><font style>
<div><span style="FONT-SIZE:11pt;FONT-FAMILY:Arial"></span><font face="MS Sans Serif" size="1">
<div></div></font><font><font size="1"><span style="font-size:9.5pt;font-family:Arial">
<div><font size="1"><span lang="EN-GB"><font size="1"><span lang="EN-GB">
<p></p></span></font></span></font></div></span></font></font> 
<p> </p></div>
<p><font><font face="Tahoma"><span style="font-size:10pt;font-family:'Microsoft Sans Serif'">This email is for the intended recipient only. It may contain information that is privileged, confidential and/or subject to copyright. If you are not the intended</span></font></font></p>

<div>
<div><font face="Tahoma"><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"> recipient, please delete this email and any attachments and notify </span></font><font face="Tahoma"><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"> </span><u><span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:'Microsoft Sans Serif'"><a href="mailto:mailadmin@redcross.org.uk" target="_blank"><font color="#0000ff">mailadmin@redcross.org.uk</font></a></span></u></font><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"><font face="Tahoma">. You may not present this message or any part of it to</font></span></div>

<div><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"><font face="Tahoma">another party without consent from the sender. </font></span></div>
<div><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"><font face="Tahoma"><br>Although the British Red Cross has taken steps to ensure this email and any attachments are virus-free, we do not accept any responsibility for viruses, or for </font></span></div>

<div><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"><font face="Tahoma">inaccurate or incomplete information or failure to deliver information. It is your responsibility to scan the email and any attachments to ensure they are virus-free.  </font></span></div>

<div><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"><font face="Tahoma"></font></span> </div>
<div><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"><font face="Tahoma">The British Red Cross may monitor the content of emails sent or received by its employees.</font></span></div><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"><font face="Tahoma">
<div><br>The British Red Cross Society, incorporated by Royal Charter 1908, is a charity registered in England and Wales (220949) and Scotland (SC037738). <br></div>
<div> </div>
<div>The red cross emblem is a protective symbol, the use of which is restricted by international and national law. It may not be reproduced without prior authorisation. </div></font></span></div>
<div><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"><a href="http://www.redcross.org.uk/standard.asp?id=35289" target="_blank"><font face="Tahoma" color="#0000ff">Click here for more information</font></a><font face="Tahoma">.</font></span></div>

<div><span style="font-size:10pt;font-family:'Microsoft Sans Serif'"></span> </div></font></div>
<p><font style><font><span style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','Arial'"> <br></span></font></font></p>
<p align="left"><font><br><br><br><br>This message has been scanned for viruses by </font><a href="http://www.blackspider.com/" target="_blank"><font style color="#000000" size="2">BlackSpider MailControl</font></a></p>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>