<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Popup Misbehaves in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446280#M2766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will make sure this is fixed for the next release of ArcGIS Explorer. Thanks for identifying the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Nov 2010 15:33:32 GMT</pubDate>
    <dc:creator>AndreiIvanov</dc:creator>
    <dc:date>2010-11-01T15:33:32Z</dc:date>
    <item>
      <title>Popup Misbehaves</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446276#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I create a Popup,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tell it how big to be,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tell it what to say,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would also like to tell it where to go (placement - relative or absolute - on the screen),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it seems to take these instructions as suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you make it behave?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some code: All parameters are valid data...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Point point = new Point(position.Lon, position.Lat);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Popup popup = new Popup(mapDisplay, popupInfo, popupTitle, point);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Setting this helps to a degree, if I leave them off it is way too small&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// but it only increases in size to a certain degree. What is particularly anoying is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// I cannot make it size to the point where the scroll bars do not show up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;popup.PopupHeight = 700;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;popup.PopupWidth = 600;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;popup.Activate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here you just see the size being set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also been trying to display data that includes a table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The table shows up with a table border and border on the cells (td tags)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I tell the table border='0' and rules='none'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It still has borders.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I look at the source (right click the popup contents - then click view source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and there are style settings prefixed to my content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The style sets the table border and td border.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I search for that style in the AGX install folder and find default.css&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It has the styles just as in my popup source.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I edit the default.css file and remove these border settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Restart AGX.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it still has borders. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note: this would not be an optimal solution anyway because it would not be feasable to change the default.css file on all of our workstations (in the thousands)&lt;BR /&gt;&lt;BR /&gt;However, I was just trying to get a handle on how to make it do what I want it to do.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, being able to tell it where to display on the application would be nice. Such as "top left corner of the map display"). Is there any way to accomplish any of this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 15:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446276#M2762</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2010-10-27T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Misbehaves</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446277#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out a workaround for the content and sizing related issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of putting &lt;/SPAN&gt;&lt;STRONG&gt;contents &lt;/STRONG&gt;&lt;SPAN&gt;in the &lt;/SPAN&gt;&lt;STRONG&gt;Content&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;Property &lt;/STRONG&gt;&lt;SPAN&gt;of the popup. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Put a &lt;/SPAN&gt;&lt;STRONG&gt;reference&lt;/STRONG&gt;&lt;SPAN&gt; to the contents via an &lt;/SPAN&gt;&lt;STRONG&gt;iframe tag&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also add sizing, border, margin, scrolling, etc information to the iframe tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This worked for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;String popupContentsIframe ="&amp;lt;iframe width='100%' height='100%' frameborder='0' " +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"marginwidth='0' marginheight='0' scrolling='no' " +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;"src='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myserver.com/getpopuphtml.aspx?id=123" rel="nofollow" target="_blank"&gt;http://myserver.com/getpopuphtml.aspx?id=123&lt;/A&gt;&lt;SPAN&gt;'&amp;gt;&amp;lt;/iframe&amp;gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Point point = new Point(position.Lon, position.Lat);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Popup popup = new Popup(mapDisplay, popupContentsIframe, name, point)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; { PopupHeight = 440, PopupWidth = 480 };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;popup.Activate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Then &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myserver.com/getpopuphtml.aspx?id=123" rel="nofollow" target="_blank"&gt;http://myserver.com/getpopuphtml.aspx?id=123&lt;/A&gt;&lt;SPAN&gt; returns my borderless tables and formatted text.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would still, however, like to be able to tell the popup &lt;/SPAN&gt;&lt;STRONG&gt;Where &lt;/STRONG&gt;&lt;SPAN&gt;to open.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 14:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446277#M2763</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2010-10-28T14:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Misbehaves</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446278#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;walkaround for this issue is to use Note instead of a Popup with "&amp;lt;html&amp;gt;" or "&amp;lt;style&amp;gt;" tag as first element in your content. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string content = "&lt;STRONG&gt;&amp;lt;html&amp;gt;&lt;/STRONG&gt;&amp;lt;table border=\"0\"&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;row 1, cell 1&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;row 1, cell 2&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;row 2, cell 1&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;row 2, cell 2&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/html&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size sz = new Size(700, 600);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note note = new Note("Title", ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Center);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; note.Popup.Content = content;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; note.Popup.Size = sz;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map.ChildItems.Insert(0, note);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; note.Popup.Activate();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446278#M2764</guid>
      <dc:creator>AndreiIvanov</dc:creator>
      <dc:date>2021-12-11T19:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Misbehaves</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446279#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andriy, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This may work for the other user that posted - Christopher. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But unfortunately I use a Popup because I don't want to add a Note to the MapContents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I could create a Note and display it without adding it to the MapContents then it may be a viable workaround. But then that would essentially be a Popup...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now the iframe solution works rather well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 15:14:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446279#M2765</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2010-11-01T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Misbehaves</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446280#M2766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will make sure this is fixed for the next release of ArcGIS Explorer. Thanks for identifying the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 15:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/popup-misbehaves/m-p/446280#M2766</guid>
      <dc:creator>AndreiIvanov</dc:creator>
      <dc:date>2010-11-01T15:33:32Z</dc:date>
    </item>
  </channel>
</rss>

