Select to view content in your preferred language

Using Identify Features under the samples of Find and Identify

1605
11
10-05-2010 07:43 AM
DidumAbraham
Deactivated User
Is it possible to change the content of the infoWindow of Identify Features to show a specific content?
Tags (2)
0 Kudos
11 Replies
DidumAbraham
Deactivated User
Is there possible to add a simple hyperlink inside the text area?  For example, (http//:www.esri.com).

Thank you.

May


See if this works for you!

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
 xmlns:mx="library://ns.adobe.com/flex/mx"
 xmlns:esri="http://www.esri.com/2008/ags"
 xmlns:s="library://ns.adobe.com/flex/spark"
 pageTitle="Didum Test" creationComplete="getString();" >
 <!--
 This sample displays a clickable url in a TextArea
 -->
 <fx:Script>
  <![CDATA[
   //import mx.controls.TextArea;
   
   private function getString():void{
    var myStr:String = "<a href='http://www.esri.com/' target='_blank'>Click me (ESRI Page)</a>"
     + "<br /><b> to see if a page opens up!</b>";
    
    myTxtArea.width = 200;  // numeric choice
    myTxtArea.height = 50; // numeric choice
    myTxtArea.left = 100;
    myTxtArea.top = 100;
    myTxtArea.editable = false;  // a Boolean data type choice
    myTxtArea.htmlText = myStr;
   }
   
  ]]>
 </fx:Script>
 
 <fx:Declarations>
  <!--Add visual elements-->
 </fx:Declarations>

 <mx:TextArea id="myTxtArea" color="0x0000ff"/>
 
</s:Application>
0 Kudos
AnupamDas
Emerging Contributor
Never mind,
I got it working.


WHat did you do?
0 Kudos