JavaScript errors in IE6 during ExternalInterface.addCallback

I'm having a terrible time getting the Bridge to work in IE6.
(A working Firefox prototype took all of 20 minutes.)
I'm using UFO (
http://www.bobbyvandersluis.com/ufo/)
to load the .swf file. However, when it gets to the
ExternalInterface.addCallback in FABridge.as, IE throws some opaque
JavaScript errors: Line 1, Char 22 Syntax Error. If I comment out
all of the ExternalInterface.addCallback calls, IE gets past this,
however, nothing works beyond that (not surprisingly). Am I missing
something obvious with regard to IE?
Any help would be much appreciated.

Looks like my above code was not setting the object/@id
correctly on the Flash object. Once I added id: 'chart' to
UFO.create's initialization parameter, everything went
swimmingly.

Similar Messages

  • JavaScript errors in IE with ExternalInterface.addCallback

    Hi!
    I found first this post about the same javascript error has I
    had on my page
    JavaScript
    errors in IE6 during ExternalInterface.addCallback
    But I found another issue: your id should not have any
    character like '-' in it, otherwise you will get the same JS error!
    Replace them with an underscore '_'.

    Looks like my above code was not setting the object/@id
    correctly on the Flash object. Once I added id: 'chart' to
    UFO.create's initialization parameter, everything went
    swimmingly.

  • Javascript errors with IE6 - Goods receipt

    User have problems and receive javascript errors all the time, he is running IE6 which is a very old version, but according to PAM it should be supported. Java-version is not up-to-date on end user either. Unfortunately we can´t force an update on this.
    error message:
    Line 2647
    Char 9
    Error: unterminated string constant
    Code 0
    URL from eprocurement, including session ID and bc/gui/sap/its/bbpcf03/~session ID
    transaction template is bbpcf03
    Any ideas?

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • Javascript error when using ExternalInterface.addCallback  with crossdomain swf file

    how can i use ExternalInterface.addCallback when using
    javascript access from Server A (html) to Server B (swf) ? coz it
    showing error?
    Server A
    192.168.0.10/XXX/example.html
    ===========
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    id="MGSInsurances1" width="960" height="600"
    codebase="
    http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="movie" value="
    http://192.168.0.22/MGS/flex/MGSInsurances1.swf"
    />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#869ca7" />
    <param name="allowScriptAccess" value="always" />
    <embed src="
    http://192.168.0.22/MGS/flex/MGSInsurances1.swf"
    quality="high" bgcolor="#869ca7"
    width="960" height="600" name="MGSInsurances1"
    align="middle"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="always"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.adobe.com/go/getflashplayer">
    </embed>
    </object>
    <script language="javascript">
    window.MGSInsurances1 =
    document.getElementById('MGSInsurances1');
    </script>
    Server B
    192.168.0.22/MGS/flex/MGSInsurances1.swf
    ==================
    Security.allowDomain("*");
    if(ExternalInterface.available)
    ExternalInterface.addCallback("onchange",onchange);
    ExternalInterface.addCallback("datachange",datachange);
    but javascript Error is showing "Unknown name", how can i fix
    it? urgent! somebody know this?

    i solved it! because i havent restart my server again! No
    Error again ! sorry for bothering everybody.

  • Javascript error during translation in portal

    hi,
    i am transalating objects from english to italian in portal content translation...
    but during the implementation i am having javascript errors in portal.
    there is no problem in the english version..
    Snippet of the english javascript
    <title >XYZ</title>
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
    <script SRC="/irj/portalapps/com.sap.portal.httpconnectivity.httpauthentication/scripts/CAManagerScript.js" ></script>
    <script SRC="/irj/portalapps/com.sap.portal.navigation.helperservice/scripts/HistoryFramework.js" ></script>
    <script SRC="/irj/portalapps/com.sap.portal.navigation.helperservice/scripts/NavigationFramework.js" ></script>
    <script SRC="/irj/portalapps/com.sap.portal.pagebuilder/scripts/pagesupport.js" ></script>
    <link  REL=STYLESHEET  HREF="/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/customer/BDS/prtl/prtl_ie6.css?6.0.15.0.49"  TYPE="text/css" >
    <link  REL=STYLESHEET  HREF="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/customer/BDS/ur/ur_fc_ie6.css?6.0.15.0.49"  TYPE="text/css" >
    <script SRC="/irj/portalapps/com.sap.portal.htmlb/jslib/controls_ie5.js" ></script>
    <script SRC="/irj/portalapps/com.sap.portal.htmlb/jslib/sapUrMapi_ie6.js" ></script>
    <script SRC="/irj/portalapps/com.sap.portal.htmlb/jslib/popup_ie6.js" ></script>
    <script SRC="/irj/portalapps/com.sap.portal.htmlb/jslib/languages/urMessageBundle_en.js" ></script>
    <script SRC="/irj/portalapps/com.sap.portal.navigation.toplevel/scripts/toplevelnavigation.js" ></script>
    </head><body class="prtlBody urFontBaseFam urScrl">
    <!-- EPCF: Component com.sap.portal.navigation.portallauncher.default, ngifocjigiaefchfplbhppaombngcpbo -->
    <!-- EPCF: Component com.sap.portal.pagebuilder.pageBuilder, akaimbgolgbpepcdkebifnaombngcpbo -->
    <Script>
    var caEngine = new CAManager('/irj/servlet/prt/portal/prtroot/com.sap.portal.httpconnectivity.httpauthentication.Engine','dialogHeight:10;dialogWidth:20;center:1;help:0;status:0');
    caEngine.registerCAEvent('com.sap.portal.httpconnectivity.httpauthentication','Teach',caEngine,'eventCallBack');
    </Script>
    And the corresponding script in italian is
    <META http-equiv=Content-Type content="text/html; charset=UTF-8">
    <SCRIPT src="Introduzione - Kodak Portal_files/CAManagerScript.js"></SCRIPT>
    <SCRIPT src="Introduzione - Kodak Portal_files/HistoryFramework.js"></SCRIPT>
    <SCRIPT src="Introduzione - Kodak Portal_files/NavigationFramework.js"></SCRIPT>
    <SCRIPT src="Introduzione - Kodak Portal_files/pagesupport.js"></SCRIPT>
    <LINK href="Introduzione - Kodak Portal_files/prtl_ie6.css" type=text/css
    rel=STYLESHEET><LINK href="Introduzione - Kodak Portal_files/ur_fc_ie6.css"
    type=text/css rel=STYLESHEET>
    <SCRIPT src="Introduzione - Kodak Portal_files/controls_ie5.js"></SCRIPT>
    <SCRIPT src="Introduzione - Kodak Portal_files/sapUrMapi_ie6.js"></SCRIPT>
    <SCRIPT src="Introduzione - Kodak Portal_files/popup_ie6.js"></SCRIPT>
    <SCRIPT src="Introduzione - Kodak Portal_files/urMessageBundle_it.js"></SCRIPT>
    <SCRIPT src="Introduzione - Kodak Portal_files/toplevelnavigation.js"></SCRIPT>
    <META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
    <BODY class="prtlBody urFontBaseFam urScrl"><!-- EPCF: Component com.sap.portal.navigation.portallauncher.default, ingimdmohgfmmefgpmjakjaoloejooag ><! EPCF: Component com.sap.portal.pagebuilder.pageBuilder, bpjeddnfehibjmgdenlbfdaolmpgdhip -->
    <SCRIPT>
    var caEngine = new CAManager('/irj/servlet/prt/portal/prtroot/com.sap.portal.httpconnectivity.httpauthentication.Engine','dialogHeight:10;dialogWidth:20;center:1;help:0;status:0');
    caEngine.registerCAEvent('com.sap.portal.httpconnectivity.httpauthentication','Teach',caEngine,'eventCallBack');
    </SCRIPT>
    seeing the scripts, the difference is that the path in italian is not given..
    where do i have to give that??
    need help in this regard...

    While translation make sure u dont leave a space in the end in the translated text.
    I found this error resolved after removing the spaces from the end of the translated text.

  • ExternalInterface.call Causes JAVASCRIPT ERROR??

    my AS3.0 is this:
    btn_mc.addEventListener(MouseEvent.CLICK,journey_popup);
    function journey_popup(e) {
    ExternalInterface.call("journey_wow_popup");
    my javascript is this:
    function journey_wow_popup () {
    window.open('journey_pricing.php','_blank',
    'height=200,width=350,status=yes,toolbar=no,menubar=no,location=no');
    My flash OBJET ID and movie name is "journey_wow"
    I get this javascript error when I click btn:
    Error: "journey_wow" is undefined
    I tried this on 4 computers, I never get the the error in FF,
    I got the error on 2/4 of the computers in IE and didnt get the
    Error in the other 2.
    So sometimes it works in IE and sometimes it doesn't. Also my
    flash element is not in a form.
    you can view it here:
    http://www.sussexjewelers.com/product.php?pid=1390
    (its the big red box with yellow star)
    Please help!!
    Thanks!

    Below is my embeding script, thanks.
    <script language="javascript">AC_FL_RunContent =
    0;</script>
    <script src="AC_RunActiveContent.js"
    language="javascript"></script>
    <script language="javascript">
    if (AC_FL_RunContent == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    AC_FL_RunContent(
    'codebase', '
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
    'width', '626',
    'height', '115',
    'src', 'journey_wow',
    'quality', 'high',
    'FlashVars',
    'journey_price=<?=round($prod_field['prod_price'][0])?>',
    'pluginspage', '
    http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'true',
    'loop', 'true',
    'scale', 'showall',
    'wmode', 'transparent',
    'devicefont', 'false',
    'id', 'journey_wow',
    'bgcolor', '#ffffff',
    'name', 'journey_wow',
    'menu', 'true',
    'allowFullScreen', 'false',
    'allowScriptAccess','always',
    'movie', 'journey_wow',
    'salign', ''
    ); //end AC code
    </script>

  • 10.1.3 Faces: Javascript error on PPR

    Hi all,
    I'm getting a Javascript error during PPR in IE 6.0. This error does not appear in FF 2.0. The error is "Invalid Argument" on line 2984 of adf/jsLibs/Common10_1_3_2_0.js:
    form.removeChild(tempParams[paramName]);
    Research suggests that this error should occur when "tempParams[paramName]" was created in a different document from "form", and sure enough, with a DOM inspector, I was able to determine that the documents have different unique IDs.
    Does anyone know why this might be happening? It doesn't happen in all my pages, but I can't figure out what might be special about this one.
    Thanks much,
    Avrom

    Hi Frank,
    The development environment is JDev 10.1.3.2; I can see if upgrading makes a difference--but the error is actually appearing in the deployed environment, which is Oracle AS 10.1.2.
    The error is getting reported by Microsoft's script debugger--without it, there's a brief flash of a warning symbol in the IE status bar, but it disappears quickly.
    The reason I care about this error (although it's transient and doesn't really seem to affect the outcome of that PPR) is that I suspect it as the culprit in more worrisome behavior--after this error appears once, the <af:messages> component on the page will no longer refresh until the page is left and returned to (although no error is reported at that time). I'm so suspicious because they always go together--I've never been able to get the component to refresh after getting this error, or to keep it from refreshing without getting it. This includes the fact that neither problem surfaces in FireFox.

  • Javascript error when adding Flash movie to DWCS3

    When I try to add a Flash movie to a page in DW CS3, I get
    the following message:
    When executing onClick Options.htm, the following Javascritp
    Error(s) occurred:
    At line 55 of the file "I:\Program FIles\Adobe\Adobe
    Dreamweaver CS3\Configuration|Commands|Object|Object Options.js":
    Cannot fine the file I:\Program FIles\Adobe\Adobe|adobe
    Dreamweaver CS3\Configuration\Shared\Common\Cache\Empty.htm.
    At line 55 of the file "I:\Program FIles\Adobe\Adobe
    Dreamweaver CS3\Configuration\Commands\Object Options.js":
    getDocumentDOM: Argument number 1 is invalid.
    If I click through the error messages, I finally get the
    movie on the page and it seems to display okay in IE6 ahd FX.
    I don't get the error when I load a Flash movie if I use DW
    8.
    Do I need to reload DWCS3? Or is there a fix that I can
    download. It seems to be a problem with DWCS3.
    Regards,
    Bill Schaepe

    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "TurboBill" <[email protected]> wrote in
    message
    news:flrsjd$6kh$[email protected]..
    > When I try to add a Flash movie to a page in DW CS3, I
    get the following
    > message:
    >
    > When executing onClick Options.htm, the following
    Javascritp Error(s)
    > occurred:
    >
    > At line 55 of the file "I:\Program FIles\Adobe\Adobe
    Dreamweaver
    > CS3\Configuration|Commands|Object|Object Options.js":
    > Cannot fine the file I:\Program FIles\Adobe\Adobe|adobe
    Dreamweaver
    > CS3\Configuration\Shared\Common\Cache\Empty.htm.
    >
    > At line 55 of the file "I:\Program FIles\Adobe\Adobe
    Dreamweaver
    > CS3\Configuration\Commands\Object Options.js":
    getDocumentDOM: Argument
    > number
    > 1 is invalid.
    >
    > If I click through the error messages, I finally get the
    movie on the page
    > and
    > it seems to display okay in IE6 ahd FX.
    >
    > I don't get the error when I load a Flash movie if I use
    DW 8.
    >
    > Do I need to reload DWCS3? Or is there a fix that I can
    download. It
    > seems
    > to be a problem with DWCS3.
    >
    >
    > Regards,
    > Bill Schaepe
    >
    >

  • Query Parameter Data Type error betwee IE6 and IE7

    Hello all.
    This is a strange one. Using MII v12. When setting parameters for a SQL query from Javascript, the query executes properly on IE7 but generates errors on IE6. The errors are JDBC errors having to do with "Conversion failed when converting datetime from character string." and "Error converting data type varchar to numeric." I don't get any browser errors, only Java errors and NetWeaver log entries.
    What is the source of this data typing error?

    Hi, Sparks.
    Actually, IE was always an anomaly when it came to proper typing of objects in Javascript, so it let you get away with things that really shouldn't work.
    In general, you should use the Number Javascript type for number properties (e.g. setRowCount(), setXAxisMinRange(), etc) and strings for just about everything else.  If I recall, Javascript will handle most of the type conversions to a String property, but not necessarily to a Number property.
    You can use the parseInt() and parseFloat() methods to convert from strings to numbers in Javascript.
    In general, it's a good practice to be "type aware" in your Javascript code anyway, and this will ensure that it runs in other browsers and future browsers.
    Rick

  • Javascript error in uwc (reply, forward buttons)

    Our users have reported an "annoying" repeatable error which occurs at least once per session using UWC web-client.
    When they log in to UWC, read a message and click the buttons named Reply, Reply All, Forward, Forward Inline, an alert pops up:
    "JavaScript Error
    http://mail.domain.ru/uwc/webmail/en/mail.html?lang=en&laurel=on&cal=1, Line=384"
    'null' is null or not an object"
    When they click the button for a second time and afterwards, the requested action (Forward, etc.) works correctly. If the user logs off and logs in again, the first subsequent click triggers the error.
    I have seen this in MS Internet Explorer 6.0 SP2 on several computers, both with original English Windows and localized version.
    I couldn't reproduce the error with MSIE 6.0 SP1 or Firefox browsers.
    Server-side versions:
    # showrev -p | grep uwc
    Patch: 126233-04 Obsoletes: Requires: Incompatibles: 118042-01 Packages: SUNWuwc-l10n
    Patch: 122794-10 Obsoletes: 118541-22, 117288-99, 117820-13, 119157-07, 119160-07 Requires: Incompatibles: Packages: SUNWuwc
    Patch: 122794-17 Obsoletes: 118541-43, 117288-99, 117820-13, 119157-07 Requires: Incompatibles: Packages: SUNWuwc
    # imsimta version
    Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 64bit)
    libimta.so 6.3-6.03 (built 17:15:08, Mar 14 2008; 64bit)
    SunOS sunmail 5.10 Generic_127112-07 i86pc i386 i86pc
    "Line 384" of the resulting HTML code (as in View Source of the failing browser) contains the "return" line of the following function:
    {code}
    383: function dataFrameHTML() {
    384: return main.getBody(main.chrome2,true) + (tfr && state == 'POST' ? tfr : '')
    385: }
    {code}
    Is there anything reasonable to do do solve this problem? :)

    JimKlimov wrote:
    Our users have reported an "annoying" repeatable error which occurs at least once per session using UWC web-client.
    When they log in to UWC, read a message and click the buttons named Reply, Reply All, Forward, Forward Inline, an alert pops up:All of these actions result in a pop-up window. There have been problems fixed in the past for the "compose" window pop-up which occurred due to pop-up blockers (e.g. google/yahoo toolbar blocker or the IE6sp2/IE7 pop-up blocker).
    When they click the button for a second time and afterwards, the requested action (Forward, etc.) works correctly. If the user logs off and logs in again, the first subsequent click triggers the error.
    I have seen this in MS Internet Explorer 6.0 SP2 on several computers, both with original English Windows and localized version.
    I couldn't reproduce the error with MSIE 6.0 SP1 or Firefox browsers.Try disabling any pop-up blockers in IE6.0 SP2 and see if the problem persists:
    1. From Internet Explorer 6, Click "Tools".
    2. Select "Pop-Up Blocker".
    3. Select "Turn off Pop-up Blocker".
    "Line 384" of the resulting HTML code (as in View Source of the failing browser) contains the "return" line of the following function:
    383: function dataFrameHTML() {
    384:   return main.getBody(main.chrome2,true) + (tfr && state == 'POST' ? tfr : '')
    385: }Is there anything reasonable to do do solve this problem? :)In the past we have wrapped the javascript call that failed in a test so if the window was closed by a pop-up blocker before the javascript could propagate it with data, the call didn't occur. However this didn't allow the pop-up to occur, it just stopped the javascript error.
    Regards,
    Shane.

  • Javascript error creating address group

    Hi
    Having a problem with XP SP2. In the webinterface, chose Addresses - New Group. Select someone from the left panel. Press 'Add>'. Now we get an errormessage that says,
    JavaScript Error
    http://a.b.c.d/en/editPabGroup_fs.html?rtfPossible=true&lang=en, Line 291
    Permission denied
    I am using iMS 5.2 patch 2
    I have seen a thread on a similar problem with iMS 6.2 but not sure what the fix is for 5.2P2
    Thanks
    Don

    This looks like bug:
    6236710 Javascript error Permission denied with IE6 on XP SP2 when creating a New Contact.
    It's fixed with hotfix 2.07. You have to contact Tech Support to get it.

  • Javascript error 'EPCM is not identified'

    I am having an issue on one desktop that when the associate logs on to EP7.0 all they see if the branding image on top and rest of the screen is blank, the content is not loading.   I saw in the bottom left hand corner that there was javascript error and when I went to view it it said 'EPCM is not identified'.   I have checked the IE6.0 settings on this machine and compared to another machine that the portal is working fine on and from what I can see all the settings are the same.  I am not sure what this error means??

    Hi Kathy,
    It sounds to me like there is some issue with JavaScript in the browser of that user. Double check that the user has enabled JavaScript for the portal site (you can do this easily by making your portal a trusted site for the browser under Tools --> Internet Options --> Security --> Trusted Sites --> Sites). Then I would recommend clearing out the cache Under Tools --> Internet Options --> General --> Delete Files --> Delete All offline content.
    Close the browser and login again.
    Hope that helps,
    Simon
    FYI... EPCM is a JavaScript object used by the portal JavaScript framework.

  • Javascript error in TLN=1

    Hi everybody, i'm working in EP SP13; i put TLN = 1 in the way the documentation says.
    Now (sometime) i get a strange javascript error during the navigation in the portal: it says "object required" on row 777.
    When i get this error i'm not able to navigate anymore in the portal, it always remains in the home page.
    The problem gets solved when i put TLN=2 again.
    What could be the cause of this behaviour?
    Thanks in advance.

    Hi Pier,
    You should change number of TLN levels in <b>two</b> places:
    1. <b>In the TLN iView</b> - the property <i>Number of Display Levels</i>.
    2. <b>In the Desktop Innerpage (inside the framework page)</b> - the property <i>Number of Display Levels in TLN</i>.
    Hope that helps,
    Yoav.

  • Desktop create fails with javascript error (unable to proceed)

    When creating a new desktop from a portal template the action fails and the only error I can find is a javascript error.
    The error in the browser when trying to create a new desktop from the portal.
    <b>Error: unterminated string literal</b>
    Source File: http://localhost:7001/FoundationAppAdmin/portal.portal
    Line: 2710, Column: 28
    Source Code:
    ror(s) occurred during XmlDisassemblerContext parsing: Parser Error...
    That corresponds to this code in the web page source in the portal admin tool.
    function showUserErrorMessages() {
    alert(unEscapeChars("- Error: The desktop could not be disassembled. [com.bea.netuix.application.transform.disassembler.XmlDisassemblerException: com.bea.netuix.application.transform.disassembler.XmlDisassemblerException: One or more validation error(s) occurred during XmlDisassemblerContext parsing: Parser Error...
    org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'columns' is not allowed to appear in element 'netuix:layout'.
    Parser Error...
    org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'columns' is not allowed to appear in element 'netuix:layout'.
    Parser Error...
    org.xml.sax.SAXParseException: Duplicate unique value [ID Value:  bEarn] declared for identity constraint of element "desktop".
    Parser Error...
    org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'columns' is not allowed to appear in element 'netuix:layout'.
    Parser Error...
    org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'columns' is not allowed to appear in element 'netuix:layout'.
    Message was edited by:
    dallastx

    When creating the desktop from a .portal file in the admin tools, the .portal file is parsed and validated before persisting to the database. It looks like this is failing and you are getting some fairly straight-forward messages. Check the format of the contents in the .portal file and make the necessary corrections.

  • JavaScript error on WD

    Hi Friends,
    the same issue, opening again.
    I am getting JavaScript error on WebDynpro aplication.
    The error is "Object Required on line number .."
    because of this, when I run the aplication on browser IE6.0 build 2900.2180, SP2, the application manages to display all the popup windows through link to action provided.
    BUT in case of IE 6.0 build 2800.1106, SP1, not able to see the the popup windows because of JavaScript error.
    There should be some way, because in other screens too, I have popup windows, but  am able to se popup using same old IE 6.0 version.
    Is there any clue how to get rid of it?

    Hi Friends,
    I resolved it.
    This bug was because of one textView field value missing.
    I feel, in this case too, we should not get javaScript error, as its not possible to handle it.

Maybe you are looking for