AIR HTML Component - URL problem

Hi,
We face the below mentioned problem. Attached herewith are code sample and simulation for the problem. Would be great if someone could help us.
Due to problems with uploading the attachment here, please send a email to the following email-id ([email protected]) and I shall send the attachment in response.
HTML Component provided in AIR is used to access different URLs one after another. When we switch from one URL to another, the previous link gets loaded prior to opening new link. Is there a way to trap events which is happening during loading of URLs.
* Steps to Reproduce:
1. Install  HTML_Component_TrapEvent.air and execute the code.
2. Initially Home page is displayed.
3. Click on anyone of the three buttons labeled: Yahoo, Google, Rediff.
4. Respective website homepage is displayed. Wait till entire page is loaded. For example, assume Yahoo button is clicked, Yahoo website will be loaded.
5. Click on Button labeled "Home". Home Page gets Loaded.
6. Then click on Button labeled "Google". The HTML component with Previous web page (in this case Yahoo web page) is displayed until Google web page is loaded.
* Expected Result:
The HTML component last loaded should not be visible when the current component is loading. In other words, Yahoo website should not be visible when Google site is loaded.
* Actual Result:
The HTML component last loaded is displayed until the current component is loaded. Which means, Yahoo website is displayed until Google is loaded.
* Any Workaround: NONE
Thanks in advance.

I might add that this is flex 3 Retail version, not the beta.
Seems to work in the flex 3 milestone 4 beta.

Similar Messages

  • AIR HTML component problem

    I am using the AIR HTML component to load various website
    directories with. However, any directory that gets loaded into the
    HTML control that uses CAPTCHA, only loads maybe 2 pixels high
    worth of the image. Is this a bug with the HTML control itself, or
    have I failed to instantiate something? To see what I mean, try
    loading this URL into AIR's HTML component.
    http://www.mygreencorner.com/submit.php

    I might add that this is flex 3 Retail version, not the beta.
    Seems to work in the flex 3 milestone 4 beta.

  • Adobe AIR HTML component ignores Google Maps GPolyline opacity

    I have a Google Maps mashup web site that I want to display
    in an
    Adobe AIR app using the AIR HTML component. My mashup shows a
    Google map with some semi-
    transparent polylines (drawn as circles) drawn with the
    Google Maps API . In Safari, everything looks
    as it should. In AIR, the polylines are opaque; the GPolyline
    opacity
    value is ignored. I've tried the AIR app on Linux and Windows
    XP.
    Has anyone else encountered this issue or have some
    suggestions?
    The web site:
    http://dstresearch.com/map.html
    The AIR code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" height="800" width="800">
    <mx:HTML id="html"
    width="100%"
    height="100%"
    location="
    http://dstresearch.com/map.html"
    />
    </mx:WindowedApplication>
    Thanks,
    Josh

    You might also want to check out the useCache property to see if this helps.  See these links:
    http://forums.adobe.com/thread/726573
    http://forums.adobe.com/thread/490497
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.h tml

  • Webkit and safari supporting mathml -- when AIR HTML component supports MATHML

    latest version of Safari that uses webkit  supports MATHML.
    When can the AIR HTML component supports MATHML support for viewing the expressions.

    penugonda wrote:
    latest version of Safari that uses webkit  supports MATHML.
    Hmm. Don't know I'd go so far as to say that. Here's a more complete picture: "Webkit has an experimental MathML implementation which is enabled in Safari but the support is still limited and the rendering quality not very high. This implementation has not passed Google's security review and so is not integrated yet in Chrome."
    MathML support is far from complete in Safari and other Webkit browsers.

  • Disabling flash display in Air HTML Component

    Hi,
    in my AIR application, I use an HTML Component in its own
    sort of frame or container that has a viewing size that is smaller
    than the web page itself. Next to it is a panel with many controls
    in it. When a website with flash components (e.g. flash banners) is
    displayed, the flash components in the HTML Component overlap the
    control panel even though it's underneath in another container. Is
    there a way to disable showing Flash in an HTML Component or
    another way to make sure everything in an HTML Component stays on
    its own layer?
    Thanks for any help!

    Hi,
    I don't think the problem is because the URL is pointing to a
    JSP. I think the problem might be with the JavaScript which is
    trying to do operations which are not allowed. Please find more
    details at the URL below.
    http://livedocs.adobe.com/flex/3/html/dg_part_7_1.html
    Hope this helps.

  • How can you get selection info from air html component?

    In Air, I want to be able to have an html component that
    displays an htmltext string. When a button in pressed in the air
    app, I want to add highlight tags to the htmltext string around the
    text that has been selected by the user in the html component.
    The problem is, I have no idea how to get info about what
    text is selected in the html component. The way to get such info
    for other text display components is shown in
    http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_05.html#446003
    but that doesn't seem to work with html components.
    Can anyone point me to anything that shows how to get info
    from the htmlcomponent regarding the selected text?

    iCloud: Restore your iOS device from iCloud
    Note the iCloud backup does not included none iTunes purchases like music from CDs. Also, it does not include any photos synced to the iPod

  • Contents of HTML title Tag not rendering in my AIR HTML component

    I have an Air Application that uses a HTML Component. The HTML page that the component is rendering includes images with title tags. The tags render fine outside the Air Application, but when run in the AIR application, they do not render. Any help when this issue would be greatly appreciated.

    what html component?

  • Contents of HTML title Tag not rendering in AIR HTML component

    I have an Air Application that uses a HTML Component. The HTML page that the component is rendering includes images with title tags. The tags render fine outside the Air Application, but when run in the AIR application, they do not render. Any help when this issue would be greatly appreciated.

    what html component?

  • Cache-Control and Accept-Encoding support in Adobe AIR HTML Component

    I am evaluating Adobe AIR's HTML component and trying to figure out what is supported.
    I built the AIR app and had it point to www.google.com
    I notice that the requests to fetch JS,CSS from Adobe AIR do not include Accept-Encoding: gzip header.
    Does Adobe AIR's HTML Component support Accept-Encoding : gzip header ?
    I also noticed that even though the content served with far futures expiry, i.e. has Cache-Control: maxage={value} subsequent requests are being made and content is not served from the browser's cache.
    I observed this accross the app restarts.
    Can someone please clarify support of the two above Http headers ?
    Thank you.
    -Prashant

    You might also want to check out the useCache property to see if this helps.  See these links:
    http://forums.adobe.com/thread/726573
    http://forums.adobe.com/thread/490497
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.h tml

  • Is there a way to download inside AIR HTML?

    Hi,
    Is there any way to download files from the webpage running inside AIR HTML component? i.e. mail attachment etc.?
    Thanks!

    I'm already overriding loaded HTML page's links etc. but yes its true to determine which link is for download or to open just a web page.
    StageWebView!! I was in impression for a long time, this made for mobile! After you saying so, at help.adobe.com I can see this also for all desktop operating systems too! Great!
    Though our existing ol' HTML component is already coded/modified heavily through the application, I don't know how far we can replace them with new StageWebView.. but you simply given me an option. Thanks!
    I'll see a simple demo how enable it is downloading files in an AIR application, shortly.

  • HTML component, port number problem

    I have an HTML component embedded inside an AIR app. When the
    user makes this component visible, the HTML component simply loads
    the contents of a URL. During development, I want to load content
    from a locally running Web server on port 8080. However, this does
    not seem to work. E.g., when I set
    htmlComponent.location = "
    http://localhost";
    This works as expected. However,
    htmlComponent.location = "
    http://localhost:8080";
    does nothing. I verified on the server that the HTML
    component doesn't even attempt to connect to the server.
    I also verified that this URL is valid and works (using my
    local Web browser) as well as via curl. Further, I also tested the
    connection via the URLMonitor class from within the AIR app: The
    URL is available, according to the URLMonitor.
    Any suggestions as to why the content can't be loaded from
    the local port 8080 would be appreciated. This is pretty much a
    show-stopper for me now, because I can't run the local server on
    port 80 during development. FYI, I'm on OS X. Also, in previous
    versions of AIR (about a year ago), I didn't have this problem.
    Thanks,
    -- Frank Sommers

    I have an HTML component embedded inside an AIR app. When the
    user makes this component visible, the HTML component simply loads
    the contents of a URL. During development, I want to load content
    from a locally running Web server on port 8080. However, this does
    not seem to work. E.g., when I set
    htmlComponent.location = "
    http://localhost";
    This works as expected. However,
    htmlComponent.location = "
    http://localhost:8080";
    does nothing. I verified on the server that the HTML
    component doesn't even attempt to connect to the server.
    I also verified that this URL is valid and works (using my
    local Web browser) as well as via curl. Further, I also tested the
    connection via the URLMonitor class from within the AIR app: The
    URL is available, according to the URLMonitor.
    Any suggestions as to why the content can't be loaded from
    the local port 8080 would be appreciated. This is pretty much a
    show-stopper for me now, because I can't run the local server on
    port 80 during development. FYI, I'm on OS X. Also, in previous
    versions of AIR (about a year ago), I didn't have this problem.
    Thanks,
    -- Frank Sommers

  • Viewing flash based website in HTML component of AIR APP

    Hello,  I've got an air app where I'm trying to use the Html component to load up a flash website.  Problem is that the website starts to load (I can see the preloader) and then the html component just goes blank.  I wrote the html page I'm trying to load so I went in and did some trimming of javascript stuff that I didn't really need that I thought might be causing the issue, but, no dice.  I'm also catch uncaughtScript errors from HTML, and there are none.  Anybody have any ideas?  The flash on the page that I'm loading only required flash player 8, so I'm thinking that shouldn't be an issue.  The page I'm trying to load is www.socialsaga.com/air_index.php
    Here is my little mxml file that won't properly display the site.
    <mx:Panel title="Video Storage" xmlns:mx="http://www.adobe.com/2006/mxml" enabled="true" visible="true" width="100%" height="650"> <mx:Script>      <![CDATA[           public function showDOM(ev:Event = null):void {                var indEv:Event = ev;           }                      public function uncaughtException(ev:Event = null):void {                var whatException:Event = ev;           }      ]]> </mx:Script>      <mx:HTML uncaughtScriptException="uncaughtException()" htmlDOMInitialize="showDOM()" width="100%" height="100%"  location="http://www.socialsaga.com/air_index.php" id="htmlOne"/> </mx:Panel>

    That was a waste of a couple hours.... The reason it was not redering is because I had a glow filter effect on a parent
    displayobject in the app... Really weird, cause html stuff would load, but flash would not show up.

  • HTML component blinking cursor and combobox problems

    Hi there.
    I have a problem using a website displayed with the HTML component in a spark window. In any textfield in this homepage there is no blinking cursor displayed which is not really a problem but is still pretty confusing to the users. Another issue comes up with the comboboxes where the possible choices cannot be clicked with the mouse. Choosing an entry with the keyboard is possible though.
    To reproduce this issue, add a html component in a spark window and load for example http://www.ard.de. The cursor is blinking in the search textfield in the top left. After clicking on the combobox on the left side - where i can't choose an entry with the mouse - the cursor in the textfield is no longer displayed.
    Is this a known issue?
    Best regards

    Hi,
    I've looked at your example and found the following 2 issues:
    1. The cursor not appearing was actually a focus issue and you can fix it by adding an event listener on "windowActivate" in which to re-set the focus to the _htmlWindow. See the code below for more details on "onActivate()"
    2. The issue with the dropdown is actually a bug (internal bug id #2721855) and it has been fixed in the next version of AIR which will be released towards the end of this year.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:s="library://ns.adobe.com/flex/spark"
                xmlns:mx="library://ns.adobe.com/flex/mx"
                windowDeactivate="onDeactivate()"
                windowActivate="onActivate()"
                alwaysInFront="true"
                showStatusBar="false"
                title="WebKit Browser"
                creationComplete="onCreationComplete()">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   import flash.profiler.showRedrawRegions;
                   import mx.controls.Alert;
                   import mx.managers.CursorManager;
                   import mx.managers.HistoryManager;
                   [Bindable]
                   private var _location:String;
                   private function onCreationComplete():void {
                        nativeWindow.x = Capabilities.screenResolutionX * 0.1;
                        nativeWindow.y = Capabilities.screenResolutionY * 0.1;
                        nativeWindow.width = Capabilities.screenResolutionX * 0.8;
                        nativeWindow.height = Capabilities.screenResolutionY * 0.8;
                            // call this function on "windowActivate" in order to re-set the focus on your html element
                   private function onActivate():void {
                        _htmlWindow.setFocus();
                   private function onDeactivate():void {
                        try {
                             if (nativeWindow)
                                  nativeWindow.activate();
                        } catch (e:Error) { // nativeWindow Object not yet available
                   public function set location(value:String):void {
                        _location = value;
                        showStatusBar = false;
                        status = "Lade " + value + "...";
                        CursorManager.setBusyCursor();
                   public function get location():String {
                        return _location;
                   private function onHTMLComplete():void {
                        CursorManager.removeBusyCursor();
                        showStatusBar = false;
                   private function uncaughtScriptExecution(e:HTMLUncaughtScriptExceptionEvent):void {
                        CursorManager.removeBusyCursor();
                        Alert.show("Scriptfehler: " + e.exceptionValue, "Error", Alert.OK);
              ]]>
         </fx:Script>
         <mx:HTML id="_htmlWindow"
                    width="100%"
                    height="100%"
                    runtimeApplicationDomain="{ApplicationDomain.currentDomain}"
                    complete="onHTMLComplete()"
                    location="{_location}"
                    uncaughtScriptException="uncaughtScriptExecution(event)">
         </mx:HTML>
    </s:Window>
    Regards,
    Catalin

  • Trying to open a page in IE-tab using javascript, script type="text/javascript" window.location.href="chrome://coralietab/content/container.html?url=0,myurl" /script Error:Component returned failure code:0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]

    I am trying to open a page in IE-tab using javascript like this, <script type="text/javascript"> window.location.href = "chrome://coralietab/content/container.html?url=0,myurl" ;</script>.Error occured : [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::myurl :: load :: line 234" data: no] I have IE-Tab plug-in installed..when I open the same link manually in mozilla,it works fine and page gets opened in Ie-tab.

    The only way this might be possible is by using the HostContainer object
    to access the HTML page and do it from there.

  • AIR App. HTML component ...

    Hi there,
    I'm using a HTML component in AIR with 'paintDefaultBackground="false" and backgroundAlpha="0.0" to let shine through a Logo. Unfortunatly a couple of the web site on display show themself sometimes with NO background - So just the witing of this site with NO formating !
    I can get it right if I go up in the background Alpha ! but that is not the idea I would like to use it.
    Any ideas ??? regards aktell2007

    That was a waste of a couple hours.... The reason it was not redering is because I had a glow filter effect on a parent
    displayobject in the app... Really weird, cause html stuff would load, but flash would not show up.

Maybe you are looking for

  • Lenovo U410 (HDMI) to Thunderbolt

    Hi, Can i connect my Lenovo u410 (HDMI) to a 27" Apple Thunderbolt monitor? If yes, how?  Here at work there are a lot of 27" screens eating dust. Many thanks.

  • Oracle CSS does not start up

    Hi guys, After installing Oracle 10g on Solaris 9, I could not get the database to start up on the web browser. I was wondering is the problem is due to the error below. If yes, what steps should I take to remedy it? Successfully accumulated necessar

  • Initialized Planning application,but cannot see business rules(scripts).

    Hi All, I am new to Hyperion and would really appreciate your help. I created a blank planning (11.1.1.3) classic application and initialized Capex planning (Edit->initialize capex), and then created and refreshed database so that it appears in Essba

  • Calling linux command line in Java

    Hi guys, I met a problem about calling linux comand in java program. In linux, I type : similarity.pl -type WordNet::Similarity::vector -file /home/csunix/fzsu/exam.txt it returns: Loading WordNet... done. Loading Module... done. good#a#1 nice#a#1 go

  • GRC 10.1 custom security policy

    On GRC Java system, I am not able to create custom security policy under UME->Configuration->Security Policy. I am able to create on all other systems except GRC and NWDI system   I it related to support pack level or facility is not available on the