Thanks Sam. I have also just seen your below reply on june 11th:
----------------------------------------------------------------------------------------------
You can access the HTML DOM of that page like this, and get whatever
you want, just like you can in JS:
var forms:* = browser.domWindow.document.getElementsByTagName("form");
var loginForm:* = null;
for each (var f:* in forms)
{
if (f.innerText.toLowerCase().indexOf("login") >= 0)
{
loginForm = f;
break;
}
}
----------------------------------------------------------------------------------------------
Your examples works fine. But the examples in this adobe link
does not work:
http://labs.adobe.com/wiki/index.php/AIR:Articles:Using_HTML_in_Flex-based_Adobe_AIR_Applications
The complete example in this example does not work!!! And as you
see the map example the call the java script function just like
this html.javaScriptWindow.locateHouse(.........) but it does not work
"javaScriptWindow" gives error message!!!!!!!
On Tue, Jul 28, 2009 at 6:43 PM, Sam Lai<[email protected]> wrote:
>
>
> browser.domWindow where browser is the mx:HTML component.
>
> Don't know if you can call them via that interface though; maybe the
> 'javascript:my_js_function()' in the location bar trick works?
>
> 2009/7/29 hworke <[email protected]>:
>
>>
>>
>> Hi if I load www.google.com in a HTML component
>> like this <mx:HTML id="html" location="http://www.google.com">
>>
>> then how can I access the JavaScript functions in the
>> google page?
>>
>>
>>
>> ------------------------------------
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>>
>>
>>
>>
>