Flex Javascript IE7

I define a method in Flex. In asp.net page, i use javascript
to call it. Just pass the string to Flex and display.
In firefox2, the page has no error information, but the Flex
didn't display the string. when I fresh this page, Flex work good,
it display the String.
In IE7, the page display a error information "Object doesn't
support this property or method",click "No", Flex display nothing.
After fresh this page, Flex work good too.
Why?
By the way, i google some information about it
(https://bugs.adobe.com/jira/browse/SDK-9681), but i could not fix
it.
Thanks.

Post some code, maybe?
Tracy

Similar Messages

  • Flex Javascript interaction

    In my application, the Flex Javascript interaction works
    correctly only when I have a "alert" pop-up!!! I do not want the
    "alert" in my final application.
    Here is my code snippet:
    Javascript code:
    <script language = "JavaScript" type="text/JavaScript"
    charset="ISO_8859-1">
    var jsReady = false;
    function isReady()
    return jsReady; //to set up communication with Flex
    function pageInit()
    // Record that JavaScript is ready to go.
    jsReady = true;
    var newTerm="Flex"; //This is the input variable, right now
    its hard-coded
    alert(newTerm);//this alert causes trhe problem, I get to see
    the desired output with alert, but without alert, I get "Error on
    Page"
    getMyApp("test").myFlexFunction(newTerm);//call to Flex
    function
    function getMyApp(appName) //Function to find the type of our
    browser
    if (navigator.appName.indexOf ("Microsoft") !=-1)
    return window[appName];
    } else {
    return document[appName];
    </script>
    pageInit() is called onLoad in body tag==> possible cause
    of problem

    Hey Tracy! Thanks for replying!
    Here is the ExternalInterface code. I am working on Yahoo
    API. So you will find some API calls there.
    =========================
    [Bindable]
    public var question:Question;
    public function myFunc(s:String):void
    var keyword:String;
    params.results = 50;
    params.type = "resolved";
    searchService.searchQuestionsByTerm(s, params);
    private function setupCallbacks():void
    ExternalInterface.addCallback("myFlexFunction",myFunc);
    private function isContainerReady():Boolean
    var result:Boolean = ExternalInterface.call("isReady");
    return result;
    public function startUp():void //initial call made hwn the
    application starts
    var isAvailable:Boolean = ExternalInterface.available;
    trace(isAvailable.toString());
    if (ExternalInterface.available)
    var containerReady:Boolean = isContainerReady();
    if (containerReady)
    // If the container is ready, register the SWF's functions.
    setupCallbacks();
    else
    trace("External interface is not available for this
    container.");
    // Define the Event Listeners for the Answer Service
    searchService.addEventListener(AnswersResultEvent.QUESTIONS_SEARCH,
    questionsResult, false, 0, true);
    searchService.addEventListener(AnswersErrorEvent.ERROR_EVENT,
    showError, false, 0, true);
    =======================

  • Javascript in Flex

    Hello,
    I would like to put a hit counter in my flex website. So, I go to www.hitscount.com and create my hit counter and then, I have a javascript script, but how put it in my website... Can you explain to me very easily, I'm a newbie
    My script is :
    <code>
    <div align='center'>...............</div>
    </code>
    Thank you very much
    Chandler

    you'll have to do an external call to your javascript in the template file, from your flex application.
    here's an example of flex<-> javascript communication
    http://www.switchonthecode.com/tutorials/flex-javascript-tutorial-simple-interaction
    here's an example of how to do a hit counter using PHP instead of Javascript
    http://www.mattlefevre.com/viewExample.php?tut=flexPHP&proj=Hit%20Counter

  • How to use Flex in JSP

    Hi ,
    I am new to Oracle BPM . I have created a sample Process flow with Two Participants and two roles .And Also i have created the ScreenFlow using Jsp's . Now my problem is we need to integrate Adobe flex inside Jsp's or is there a way we can directly use Flex mxml files for UI . Is there way to use Taglibs which supports Adobe Flex in Jsp ..?
    Thanks,
    KM
    Edited by: user7711237 on Sep 23, 2009 5:00 AM

    This is a very interesting question. Please pardon my limited knowledge of OBPM and Flex, but it sounds like there are a couple of options.
    1. PAPI - build an external web app with Flex front end and a server server-side component that uses PAPI (or PAPI WS) for integration with OBPM
    2. JSP - this is a lot more hacky (if at all possible) - build custom JSPs using the standard OBPM taglibs, etc., and Flex app. Then use Flex / JavaScript interaction to invoke submit the from on the JSPs.
    Here are a few links for #2
    http://www.switchonthecode.com/tutorials/flex-javascript-tutorial-simple-interaction
    http://www.vipercreations.com/tutorials/Adobe%20Flex/35/
    http://www.abdulqabiz.com/blog/archives/2005/04/28/calling-a-flex-function-from-javascript/
    It almost sounds like #1 might be a good long-term solution for complex UIs, while #2 would fit better for a smaller and more simple Flex UI that need to be developed quickly. Hope others might offer better suggestions.
    HTH.

  • Morgan Stanley - Flex Developers needed - Contract or Perm , London

    Position Description
    Flex and Java developers are required to work on Morgan Stanley Matrix.
    Matrix is Morgan Stanley's Fixed Income e-Trading Platform
    Used globally by clients and internal sales/trading staff
    Opportunities exist in many areas of the platform including Trade Ideas, Commentaries, Pricing, Trading, STP, Analytics & Charting, Research and Core Architecture.
    Includes all Fixed Income asset classes (Rates, FX, Credit) and instrument types (swaps, futures, options) with new products being continually added.
    Advanced technologies and professional UI design provide a state-of-the-art user interface. Gigaspaces XAP experience desirable
    Skills Required
    -Flex developers required with understanding of  frameworks such as pureMVC, parsley, mate
    -Java developers required with extensive experience in Spring, Hibernate, CXF
    -Bright, motivated and ambitious individuals
    -Proven top-end development skills
    -Interested in working with leading-edge technologies
    -Expertise in developing real time internet based solution.
    -Ability to distil complex problems into simple, practical solutions
    -Ability to work in fast-paced environment and deliver to aggressive timescales
    -Excellent communication skills, both verbal and written.
    Skills Desired
    Experience with UI technologies like JSP, Flex, Javascript libraries like EXT-JS or JQuery would be a plus.
    If you are interested, plase call me on + 44 (0)207 425 5567 or send your resume to [email protected]

    hi
    is this still open...? I am having 4+ yrs exp in oracle, pl/sql, forms, reports
    pls inform...one thing you have to provide me a workpermit or visa
    kris

  • Java app and flex charting

    I am in the process of making a flex charting application
    that receives data from a java applet. I've made the
    flex-javascript connection using the FABridge but when Flex adds
    the data to the chart it jumps around. In the following link is the
    app running to show you it, I have allowed the source to be viewed
    as well.
    Has anyone had this problem before? Or can see a solution?
    This jumping around doesn't just affect the chart, if I add
    another element not even within the chart area, but somewhere else
    in the application it moves around too.
    Thanks

    Hi,
    I apologize for delayed response. Yes, in general you can move Java EE applications to Oracle Java Cloud Service and move the corresponding data to Oracle Database Cloud Service. But you need to make sure that your application fits the surface area exposed by Java Cloud Service. You can check that in couple of ways: (1) when you try to deploy your application in our cloud, it will run a whitelist process that will indicate if you are using features/APIs that are currently unavailable in the cloud. Your can run the whitelist offline using the Java Cloud Service SDK. The SDK zip has a help file that explains how to run the whitelist. (2) You can read the chapter in our documentation that explains what is available in Java Cloud Service today. Here is the link http://docs.oracle.com/cloud/CSJSU/feat_implement.htm#CSJSU7149
    Once you determine that your application can fit within the surface area of the Java Cloud Service, you can deploy it. You can move you data as explained here -- http://docs.oracle.com/cloud/CSDBU/develop.htm#CSDBU204
    Hope that helps.
    Thanks,
    -AnandK.

  • Call javascript function in an html page, how to?

    How can i call a javascript function in an html page were my flash catalyst swf is?

    I think you will need to import the catalyst fxp into flash or flash builder and add action script to invoke the javascript.
    These two links may be of use
    http://blog.codefidelity.com/?p=15
    http://www.switchonthecode.com/tutorials/flex-javascript-tutorial-simple-interaction
    I hope that helps

  • Flex hit counter

    how to add simple hit conter in flex???
    In php succesflly loadded the hit conter its working but i want to know how to add external variables in-to flex?....
    <?php
        //Opening file to get counter value
        $fp = fopen ("counter.txt", "r");
        $count_number = fread ($fp, filesize ("counter.txt"));
        fclose($fp);
    ?>
    <html>
            <head>
                <title>Counter number</title>
            </head>
            <body>
            <center>
            <?php
                $i="";
                $ImgPath="imgs/";    //Path of image folder
                $counter = (int)($count_number) + 1;
                $count_number = (string)($counter);
                $len = strlen($count_number);
                while($len!=$i && $len!=0)
                    echo "<img src=".$ImgPath.$count_number[$i].".jpg alt=\"You are visitor number $count_number\" width=20 Height=22>";
                    $i++;
                $fp = fopen ("counter.txt", "w");
                fwrite ($fp, $count_number);
                fclose($fp);
            ?>
            </center>
            </body>
    </html>
    if yo konw please answer me its very urgent....
    www.vinoddanims.wordpress.com

    you'll have to do an external call to your javascript in the template file, from your flex application.
    here's an example of flex<-> javascript communication
    http://www.switchonthecode.com/tutorials/flex-javascript-tutorial-simple-interaction
    here's an example of how to do a hit counter using PHP instead of Javascript
    http://www.mattlefevre.com/viewExample.php?tut=flexPHP&proj=Hit%20Counter

  • Debug & release versions of flash player?

    i installed flex 3.0 on my XPSP2 system, and worked through
    some examples. all was well, but when i try to use internet
    explorer, all sites that require flash 9 now complain it's not
    installed on my system. i am assuming a query is sent from ie7
    asking which version of flash is present on my system, and the
    debug version of flash returns a token indicating something other
    than flash 9 installed. i looked at flex and ie7 options, but
    couldn't find anything that would enable me to run both debug and
    release versions of the player. is there some way for the debug and
    release version of flash to live on the same system, and to keep
    them separate?

    It is recommended to install both to ensure that Flash will work in as many browsers/third party apps as possible.  Apps like skype, microsoft office, adobe reader that use Flash Player may require the active X flash player.  Most browsers use the normal plugin.

  • Ajax Bridge vs. the ExternalInterface Class

    Hi,
    I am writing a pure Actionscript 3 application in Adobe Flex. I want my application to interact with scripting in a browser. It seems that there are two options: Adobe's Ajax Bridge (typically used with a Flex application that uses mxml?) and Adobe's External Interface class (flash.external.ExternalInterface). Is there any reason to use the Ajax Bridge over the ExternalInterface class, or vice versa?
    Thank you.

    I'd recommend sticking with ExternalInterface until/unless it is insufficient.  ExternalInterface is nice because of its simplicity. You can call JavaScript from ActionScript and vice versa; nothing fancy or complicated to get in the way.
    The following documentation may be helpful:
    http://www.flexafterdark.com/docs/Flex-JavaScript
    Let me know if that helps...
    Ben Edwards

  • Send post to a new page...

    I have a flex application that will calculate a price quote
    and I want to place a button at the bottom that says "Order"...
    However, I want this to post to a php page and actually
    redirect to that page... (Not fetch the results within the
    applications...)
    I am new to Flex, Javascript, and Action Script so please be
    very detailed in your response...
    Thanks

    Try navigateToURL(). Please find more details in the below
    URL
    navigateToUrL
    Hope this helps.

  • JOB - Coldfusion Entwickler gesucht

    Zur Verstärkung unseres internationalen und
    expandierenden Teams suchen wir, die Awanda Media GmbH Regensburg,
    hochmotivierte Entwickler (m/w), die Erfahrung im Umgang mit
    coldfusion sowie Spaß an der Erstellung komplexer
    Web-Applikationen haben.
    Der Schwerpunkt Ihrer zukünftigen Tätigkeit bei uns
    besteht in der Weiterentwicklung eines komplexen coldfusion-
    basierten Frameworks, wobei wir auch den Wünschen unserer
    namhaften Kooperationspartner RTL, Freenet, Web.de,
    Karstadt/Quelle, Google etc. nachgehen.
    Einstieg: ab sofort
    Was wir Ihnen bieten:
    -attraktive Vergütung
    -Möglichkeiten zur persönlichen und fachlichen
    Weiterbildung
    -anspruchsvolle Arbeit in einem internationalen Team
    -Projekte mit namhaften Kooperationspartnern
    -freundliche, dynamische und teamorientierte Kollegen
    Sie besitzen idealerweise:
    -Begeisterung für Technik und Internet
    -hohe Motivation
    -Bereitschaft, neue Wege zu gehen und sich aktiv in Projekte
    einzubringen
    Expertenkenntnisse in einigen der folgenden Technologien
    runden Ihr Profil ab:
    -Programmierung in coldfusion basierend auf Bluedragon 6.02
    oder CFMX 7
    -Kenntisse in der Entwicklung mit SQL Server 2000
    -Solides Linux-Wissen (Debian,Ubuntu) oder Windows
    -Java J2EE Kenntisse
    -Flash Action Script / Flex
    -Javascript im Zusammenhang mit XML.
    -Objekt-Orientiertes Denken
    Wenn IT für Sie nicht nur ein Schlagwort und
    Programmieren nicht nur Ihr Beruf sondern Ihre
    „Berufung“ ist, richten Sie Ihre Bewerbung bitte an:
    Awanda Media GmbH
    Arnulfsplatz 7
    93047 Regensburg
    Germany
    Email: mscherzer [A.T.] awanda [D.O.T] de
    Web: www.awanda.de

    How about just regular job-searching sites? I don't think we
    have anything like job postings on adobe.com...

  • PDF Control

    Hello,
    I'm able to load a PDF into my AIR application (using mx:HTML) but is there a way to control the instance of Acrobat? For example: hide the toolbar, go to next page...
    I've seen examples here http://www.switchonthecode.com/tutorials/flex-javascript-tutorial-simple-interaction which communicates with javascript in a browser. Also found this :http://cookbooks.adobe.com/post_Script_to_access_Acrobat_menu_items-16546.html for scripting PDFs. No idea how to use this though.
    So my question is does anyone know how to get the AIR app to communicate with an embedded PDF?
    Thanks.
    Tristian

    triplespiral escreveu:
    > I've looked everywhere for the answer to no avail and am
    turning to the wealth
    > of knowledge here.
    >
    > I have a PDF that opens in a new window. Adobe reader
    opens but depending on
    > who's system you're on, it opens up at a different
    "zoom" level. is there any
    > way to control this so it is consistent?
    >
    > Cheers
    > Laurene
    >
    Some useful articles about:
    http://www.webcredible.co.uk/search/pdf+in+new+window
    zerof
    http://www.educar.pro.br/
    Apache - PHP - MySQL - Boolean Logics - Project Management
    You must hear, always, one second opinion! In all cases.
    Let the people know if this info was useful for you!

  • Flex + BlazeDS SSL issue with IE7

    Hi there,
    Am facing an unique issue when accessing my application using https (SSL) protocol. Actually my app is configured for "secure amf" and when it fails then it hits the "amf" of blazeds.
    All is fine, when i try to open an IE window and hit the url for the first time. The client side is able to hit the server side thru secure amf and its receiving the response back from the server. But when i open another new IE7 tab/window then am getting a NetConnection issue....
    i.e, NetConnection.Failed:HTTP error is popping up eventhough it tries to access the https url..
    Let me know if any of you guys have a work around for this.
    This works fine for FF & Chrome.
    Thanks.

    So it's definitely due to a change in Firefox, but I was able
    to find a workaround. We put headers in our flex pages so we can
    incorporate our global navigation at the top of the page.
    You're not going to believe the workaround. Here's what the
    code looked like before I fixed it:
    <cfinclude
    template="/cfdocs/proddev/common/cf/flex_header.cfm">
    <script src="AC_OETags.js"
    language="javascript"></script>
    Now, here's the fix:
    <script src="AC_OETags.js"
    language="javascript"></script>
    <cfinclude template="common/flex_header.cfm">
    So, I either had to put the script tag in the <head>
    tag, or put it before my html declarations.
    My guess is that Firefox over SSL doesn't allow <script
    src=''> tags in the body of an html document anymore.

  • Getting Error while calling Flex function from JavaScript

    Hi,
    I have an aspx page, which shows charts as per dropdown selection,
    I am using flex charts for flex.In aspx page, i am calling an mxml function using javascript.below is the code for javascript in aspx.
    Javascript  code in aspx page:
    <script type="text/javascript">     
    function callApp(formid) {
        try {
                var objectChart = document.getElementById("statisticsChart");
                alert(objectChart.id);               
                objectChart.myFlexFunction(formid,get('<%=HiddenDashboardWS.ClientID %>').value);
        catch (e) {
            alert(e.message);
    function getDropDownListvalue() {
        var IndexValue = $get('<%=FormDropDownList.ClientID %>').selectedIndex;
        var SelectedVal = $get('<%=FormDropDownList.ClientID %>').options[IndexValue].value;
        //  alert(SelectedVal);
        callApp(SelectedVal);
    </script>
    Html code where dropdown control is placed
    <asp:DropDownList CssClass="combo" ID="FormDropDownList" runat="server" AutoPostBack="false"></asp:DropDownList>
    <object id="statisticsChart" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    height="220" width="680">
        <param name="src" value="../swf/DashboardStatisticChart.swf" />
        <param name="flashVars" value="" />
        <embed name="statisticsChart" src="../swf/DashboardStatisticChart.swf" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" height="220" width="680" flashvars=""></embed>
    </object>
    Mxml code:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"  backgroundColor="white" creationComplete="initApp();" >
    <mx:script>
      public function initApp():void {
    ExternalInterface.addCallback("myFlexFunction",myFunc);
      public function myFunc(s:String,wsurl:String):void {
         Formid.text = s;
         webService.wsdl = wsurl;
         Alert.show("webservice");
    //Getdata calls webservice and gets xml data    
    GetData();
    //showchart() will draw chart
                     ShowChart();
    </mx:script>
    </mx:Application>
    Above code works perfect in ie, but in firefox, it gives An error saying “chartObject.MyFlexFunction is not a function”.
    I am getting the object in javascript in all the browsers, but not the functions!
    Does anyone has worked with this?
    Any help will be highly appreciated.
    Regards,
    Nirav Patel

    Found the solution from here... http://74.125.153.132/search?q=cache:4BC9BY04B5EJ:livedocs.adobe.com/flash/8/main/00002201 .html+externalinterface.addcallback+not+working&cd=1&hl=en&ct=clnk&gl=in
    Hope it will help others...
    Regards,

Maybe you are looking for

  • Ethernet Problem with Multiple users on same Mac

    Hi, sorry i advance for my english. I am writing from italy. I have an imAc with 2 users profiles on it. one profile is administratoe, and the oter a standard user. I also have a time capsule configured to connect to my network with the ethernet cabl

  • Create Downloadlink with custom blob to start other Application

    Greetings! We are using Apex 4.2.1 and another system. For this other system you can use simple files with an id, that start it and open a specific page, same way like e.g. automatically opening ms-word, when downloading a .doc file. So we would like

  • When viewing e-mails, how do I get the message on the right-hand side?

    When viewing my e-mails, the full message does not show up on the right-hand side.  How can I get the complete message to appear on the right side?

  • One library, multiple MACs.

    Hi everyone, I wonder if there is a way to "share" a library among multiple computers. I know I can share a librasy and see it on another comuter but that is not exactly what I mean. I'll explain: I have three MACs. My MacBook Pro, the wife's iBook a

  • Partition Problem / Blank Screen

    So lets begin, ~I started boot camp assistance to install Windows XP Pro SP2. ~I partitioned 32 Gb as recommended for FAT. ~I followed directions and got to the point where the "Windows XP Professional Setup" screen asks you to select the partition ~