0 Replies Latest reply on Apr 26, 2010 4:25 AM by bhu_t

    does any one have idea abt IFrames ?????

    bhu_t

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application

       

       

      xmlns:fx="http://ns.adobe.com/mxml/2009"

      xmlns:s="

      library://ns.adobe.com/flex/spark"

      xmlns:mx="

      library://ns.adobe.com/flex/mx"

      xmlns:local="

      com.dnb.*"

      minWidth="

      955" minHeight="600" initialize="init();">

       

       

      <fx:Declarations>

       

       

      <!-- Place non-visual elements (e.g., services, value objects) here -->

       

       

      </fx:Declarations>

       

       

       

      <fx:Script>

      <![CDATA[

       

       

      import mx.events.FlexEvent;

       

       

      import com.adobe.linguistics.spelling.SpellUI;

       

      import com.adobe.linguistics.spelling.UserDictionary;

       

       

      public function init():void

      {

       

       

      var dictionaryEntries:Object = {enable:"Enable Dictionary", disable:"Disable Dictionary", add:"Add to Dictionary"};

       

       

      var result:Boolean = SpellUI.setSpellingMenuEntries(dictionaryEntries);

       

       

       

      if (result == false) trace("Error in spell check");

       

      SpellUI.enableSpelling(textArea,

      "en_US");

       

      }

       

       

      protected function hbox1_creationCompleteHandler(event:FlexEvent):void

      {

      ExternalInterface.call(

       

      "hideIFrame");

       

      }

       

      ]]>

       

      </fx:Script>

       

       

       

      <s:Panel x="10" y="10" width="1440" height="600" title="TabNavigator with HTML IFrame Enclosures">

       

       

       

      <mx:TabNavigator x="10" y="10" width="1000" height="400" >

       

       

      <mx:HBox label="Connect JSP" creationComplete="iframe.visible=true" >

       

      <local:IFrame source="http://localhost:8401/JSPonFlex/index.htm" id="iframe" width="100%" height="100%"/>

       

      </mx:HBox>

       

       

       

      <mx:HBox label="Spell Check" creationComplete="hbox1_creationCompleteHandler(event)" >

       

      <s:TextArea id="textArea" width="500" height="200"/>

       

      </mx:HBox>

       

       

      </mx:TabNavigator>

       

       

      </s:Panel>

       

      </s:Application>

       

       

      this is my code.... its working fine on loading first time... when the navigation is done and once if i come back u jsp tab, the page is not getting load...

      can any one help me out of dis ????????????

       

      thanks in advance