Hi all,<div><br></div><div>I&#39;m currently creating popups and populating their html content with the following code</div><div><br></div><div><br></div><div><div>function onFeatureSelect(evt) </div><div>{selectedFeature = evt.feature;</div>

<div>popup = new OpenLayers.Popup.FramedCloud(</div><div>&quot;chicken&quot;,</div><div>evt.feature.geometry.getBounds().getCenterLonLat(),</div><div>null,</div><div>&quot;&lt;div style=&#39;font-size:.8em&#39;&gt;User Name: &quot; +<a href="http://evt.feature.id" target="_blank">evt.feature.id</a> + &quot;&lt;/div&gt;&quot;,                                     </div>

<div>null, true, onPopupClose);evt.feature.popup = popup; map.addPopup(popup);}</div></div><div><br></div><div>rather than pull out the attributes myself, I&#39;d like to pass in a preformed html string via a variable, but I&#39;m not sure how to do this, and I currently lack a sufficient knowledge of jscript syntax to research this. I can form an html string via this function but I&#39;m not sure how to pass it back to the popup function above...</div>
<div><br></div><div><div>function popupHTML(tweet) {</div><div>var retval = &#39;&#39;;</div><div>retval += &#39;&lt;div class=&quot;tweet_info&quot;&gt;&#39;;</div><div>retval += &#39;&lt;img alt=&quot;&#39; + tweet.from_user_id + &#39;&quot; src=&quot;&#39; +</div>
<div>tweet.profile_image_url + &#39;&quot; class=&quot;tweet_profile&quot;/&gt;&#39;;</div><div>retval += &#39;&lt;h3&gt;&#39; + tweet.from_user + &#39;&lt;/h3&gt;&#39;;</div><div>retval += &#39;&lt;p&gt;&#39; + tweet.text + &#39;&lt;/p&gt;&#39;;</div>
<div>retval += &#39;&lt;p&gt;Source: &lt;a href=&quot;&#39; + tweet.source + &#39;&quot;/&gt;&#39; +</div><div>tweet.source + &#39;&lt;/a&gt;&lt;/p&gt;&#39;;</div><div>retval += &#39;&lt;/div&gt;&#39;;</div><div>return retval;</div>
<div>}</div></div><div><br></div><div>thanks again in advance...</div>