<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.esri.com/Info/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ArcGIS Explorer Blog : HTML</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/HTML/default.aspx</link><description>Tags: HTML</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Debug Build: 61120.2)</generator><item><title>Text, photos, links, and HTML in popups</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2009/10/07/photos-links-and-html-in-popups.aspx</link><pubDate>Wed, 07 Oct 2009 23:25:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:6051</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/6051.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=6051</wfw:commentRss><description>&lt;P&gt;Popups are an easy way to add lots of different content to your map, and are found&amp;nbsp;with &lt;A class="" href="http://webhelp.esri.com/arcgisexplorer/900//en/hh_goto.htm#create_a_note.htm" target=_blank&gt;notes&lt;/A&gt; as well as &lt;A class="" href="http://webhelp.esri.com/arcgisexplorer/900//en/hh_goto.htm#create_folder_view_link.htm" target=_blank&gt;views&lt;/A&gt;. Here&amp;nbsp;we'll cover the basics&amp;nbsp;of popups, and&amp;nbsp;how you can display text, photos, Web sites, and more.&lt;/P&gt;
&lt;P&gt;First, we'll start&amp;nbsp;with&amp;nbsp;a very basic example. Here we've added a note, and typed a string into the popup (in popup edit mode).&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6052/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Now when we show the popup, the results are pretty obvious and exactly as you'd expect.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6053/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Now let's spruce things up a bit and add some inline HTML to add some bold&amp;nbsp;and italic text.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6054/original.aspx" border=0&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here's how the popup looks now. A nice little improvement.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6055/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Want to show a photo in the popup? It's easy. Just enter the&amp;nbsp;path to the photo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6056/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;And here's the photo displayed in the poup.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6057/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;But remember that local paths are not accessible to others if you want to share your note or map. You could put the photo on a common location that's accessible to others within your company, but&amp;nbsp;a Web location that anybody can access&amp;nbsp;might be&amp;nbsp;a better approach. Here's the same photo, but now it's been published from the ESRI Web site. Instead of a pathname we're using&amp;nbsp;the URL to display&amp;nbsp;the photo&amp;nbsp;in the popup. Since the URL is public,&amp;nbsp;everyone will see the same popup contents if we share our note or map.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6058/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;And here's how it looks. It's a large photo, and one taken&amp;nbsp;of the &lt;A class="" title="New ESRI building" href="http://www.esri.com/company/graphics/building-q-large.jpg" target=_blank&gt;new ESRI HQ building here on campus&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6059/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Likewise we can enter a URL if we want to open a Web site in the popup. Here we've entered the URL to the ESRI home page.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6060/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;And here's the Web page opened in the popup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6061/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Now, let's put all these together. When you enter a string in the popup ArcGIS Explorer does its best to figure out what to do with it. If just text, it will display the text. If a path or URL, it will display the target. But to create a popup that includes a little bit of everything, we'll need to use a little HTML.&lt;/P&gt;
&lt;P&gt;Here's the HTML to display both formatted and non-formatted text strings (like in our first two examples above), a picture from a local source (the third example), and links to a Web site and photo on the Web (the last two examples). &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6062/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Here's how our popup looks now:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/6063/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Doing interesting things in popups is easy. Just experiment with a little HTML. &lt;/P&gt;
&lt;P&gt;For more information see the &lt;A class="" title="HTML markup for notes" href="http://webhelp.esri.com/arcgisexplorer/900//en/hh_goto.htm#html_markup.htm" target=_blank&gt;HTML markup for notes&lt;/A&gt; Help topic.&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=6051" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Notes/default.aspx">Notes</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/HTML/default.aspx">HTML</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Popups/default.aspx">Popups</category></item><item><title>Adding Photos and More to Note Popups</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/04/07/photos-and-sounds-in-note-popups.aspx</link><pubDate>Tue, 08 Apr 2008 00:21:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:1171</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/1171.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=1171</wfw:commentRss><description>&lt;P&gt;We've recently had a few questions about adding photos,&amp;nbsp;links to Web sites,&amp;nbsp;and&amp;nbsp;more&amp;nbsp;to a note popup window. Here's a primer on how that's done. But before we get to the "photos and more" part, let's start at the beginning...&lt;/P&gt;
&lt;P&gt;We've&amp;nbsp;navigated to Mt. Shasta, California, where we'd like to add a note. To create a note, just choose the Create Notes task. We've changed the note title to "Mt. Shasta" and added a short description - "Mt. Shasta, California - 14,179 feet" - as the note text.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1175/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;When you hover over the note pushpin, you'll see the note title display. When you&amp;nbsp;click the note pushpin, you'll see something like this:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1176/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Let's take this one step further and replace the text with a locally stored photo on our C: drive. Right click&amp;nbsp;the Mt. Shasta note in the results panel, or right click the note pushpin on the map,&amp;nbsp;and choose properties. &lt;/P&gt;
&lt;P&gt;Below you can see that we've&amp;nbsp;changed the popup content from our original text&amp;nbsp;(&lt;EM&gt;Mt. Shasta, California - 14,179 feet) &lt;/EM&gt;to the pathname to the file:&amp;nbsp;&lt;EM&gt;C:\AGX\Photos\shasta_usgs.jpg&lt;/EM&gt;. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1177/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;When we click the note pushpin again, we see something like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1178/original.aspx" border=0&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;The USGS publishes photos of Mt. Shasta from their Web site, so&amp;nbsp;we can substitute the local photo with one that's available on the Web. The advantage here is that anyone&amp;nbsp;we send the note to can click the pushpin&amp;nbsp;and see the photo since it's a publicly accessible photo rather than one stored on&amp;nbsp;the local C: drive, which nobody else can access. &lt;/P&gt;
&lt;P&gt;All we need to do is replace the local file path in the Popup Text property with the URL location of the photo at the USGS Web site: &lt;A href="http://vulcan.wr.usgs.gov/Imgs/Jpg/Shasta/Images/Shasta05_aerial_mount_shasta_shastina_from_west_12-10-05_med.jpg"&gt;http://vulcan.wr.usgs.gov/Imgs/Jpg/Shasta/Images/Shasta05_aerial_mount_shasta_shastina_from_west_12-10-05_med.jpg&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The note popup will look the same as before, but this time the content is Web-based and shareable rather than a local file. To share this with someone, just right click the note and choose export result. &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1179/original.aspx" border=0&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NMF file you save can be emailed to anyone, and they'll see the same thing you do since&amp;nbsp;the result is linking to&amp;nbsp;publicly available content.&lt;/P&gt;
&lt;P&gt;We can extend the popup contents by using HTML.&amp;nbsp;The HTML isn't required if we just want to display text or a single link to a local file or URL like we've done above. But&amp;nbsp;we can use it to add additional content or format the popup contents. Here we're adding a note&amp;nbsp;that will include&amp;nbsp;a title in &lt;STRONG&gt;bold text &lt;/STRONG&gt;to our USGS photo:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1181/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;And now the popup should look something like this:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1183/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;And now to the "more" part of this post. Here's the HTML you can use to popup a photo of a bird, and also play the sound of its call.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1182/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;The use of &lt;EM&gt;hidden&lt;/EM&gt; in the &lt;EM&gt;embed&lt;/EM&gt; tag ensures that the program that plays the sound remains invisible.&lt;/P&gt;
&lt;P&gt;You can be as creative as you want. For more information visit the &lt;A class="" title="HTML for notes Help topic" href="http://services.arcgisonline.com/450//explorer//help/hh_goto.htm#html_markup.htm" target=_blank&gt;HTML markup for notes, results, and files&lt;/A&gt; topic found in the ArcGIS Explorer Help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=1171" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Notes/default.aspx">Notes</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Popup/default.aspx">Popup</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/HTML/default.aspx">HTML</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/sound+files/default.aspx">sound files</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/links/default.aspx">links</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/photos/default.aspx">photos</category></item></channel></rss>