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.

Similar Messages

  • Javascript Error When Using ADDT

    When I try to use the User registration wizard I am getting the following error :
    While executin onLoad in CreateActivationPage.htm, the following JavaScript error(s) occured :
    At lin 26 of file : "C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS4\Configuration\Translators\Cookie_translator.htm":
    patterMatch has no properties
    It seems to only happen when I use this particular part of ADDT, everything else is working.  I have tried :
    Deleting the cache file
    Re-Creating the configuration folder
    Neither have worked, can someone help me get past this?  I need to use this part of ADDT bad now....

    Hi,
    I am getting the same problem when trying to use the Update Record Form Wizard.
    While executing onClick in ServerObject-UpdRecPHP.htm the following Javascript error(s) occurred.
    At line 26 of file "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Configuration\Translators\Cookie_translator.htm": patternMatch has no properties.
    This has only just started to happen.
    Any solutions?

  • Javascript error when using Hotmail

    I am using FF 3.6.8 and when on my Hotmail page, I get javascript errors so that I am unable to send emails or ad attachments. The only way I get around this is to refresh the page and start again.

    Hi,
    I am getting the same problem when trying to use the Update Record Form Wizard.
    While executing onClick in ServerObject-UpdRecPHP.htm the following Javascript error(s) occurred.
    At line 26 of file "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Configuration\Translators\Cookie_translator.htm": patternMatch has no properties.
    This has only just started to happen.
    Any solutions?

  • JavaScript error when using HoverMenu

    Hi,
    I'm using the HoverMenu with the TreeView in my project. When I call JavaScript methods in my form from the menu I get JavaScript Object Expected errors.
    For test I have made a simple DynPage iView (see code below). When I try to call the script reloadTree() from buttons, links, checkbox etc. everything works just fine. Trying to call the same method in the setClientSideScript of a hover menu item I get a JavaScript error: Object expected.
    I have tried to add the script method as raw text to the form with no luck. If I use the Document.setHeadRawText the script is inserted in the body and not in the header as described in the documentation.
    If I add alert('Some test') directly to the setClientSideScript it works just fine
    The code example is from the doProcessBeforeOutput()
    Document doc = getDocument();
    doc.setHeadRawText("<script>function reloadTree(){alert('Alert inside reloadTree function');}</script>");
    myForm.addRawText("<a href="#" onClick="reloadTree()">Test of reloadTree() from a href...</a>");
    HoverMenu hover = new HoverMenu("HoverMenu");
    hover.setMenuTrigger(com.sapportals.htmlb.enum.HoverMenuTrigger.ONCLICK);
    hover.addMenuItem("TEST1", "Test of reloadTree() from hovermenu...").setClientSideScript("reloadTree()");
    TextView tv = new TextView("click here to test reloadTree()");
    tv.setHoverMenu(hover);
    form.addComponent(tv);
    Button bt_Refresh = new Button("Button_HiddenRefresh");
    bt_Refresh.setText("Test of reloadTree() from button");
    bt_Refresh.setOnClientClick("reloadTree()");
    form.addComponent(bt_Refresh);
    Checkbox cb = new Checkbox("Checkbox");
    cb.setText("Test from checkbox");
    cb.setDisabled(false);
    cb.setChecked(true);
    cb.setOnClientClick("reloadTree()");
    form.addComponent(cb);
    Does anyone know why the HoverMenu item script in setClientSideScript cannot access JavaScript functions in my form ?
    Regards
    Michael

    Hi,
    I'm using the HoverMenu with the TreeView in my project. When I call JavaScript methods in my form from the menu I get JavaScript Object Expected errors.
    For test I have made a simple DynPage iView (see code below). When I try to call the script reloadTree() from buttons, links, checkbox etc. everything works just fine. Trying to call the same method in the setClientSideScript of a hover menu item I get a JavaScript error: Object expected.
    I have tried to add the script method as raw text to the form with no luck. If I use the Document.setHeadRawText the script is inserted in the body and not in the header as described in the documentation.
    If I add alert('Some test') directly to the setClientSideScript it works just fine
    The code example is from the doProcessBeforeOutput()
    Document doc = getDocument();
    doc.setHeadRawText("<script>function reloadTree(){alert('Alert inside reloadTree function');}</script>");
    myForm.addRawText("<a href="#" onClick="reloadTree()">Test of reloadTree() from a href...</a>");
    HoverMenu hover = new HoverMenu("HoverMenu");
    hover.setMenuTrigger(com.sapportals.htmlb.enum.HoverMenuTrigger.ONCLICK);
    hover.addMenuItem("TEST1", "Test of reloadTree() from hovermenu...").setClientSideScript("reloadTree()");
    TextView tv = new TextView("click here to test reloadTree()");
    tv.setHoverMenu(hover);
    form.addComponent(tv);
    Button bt_Refresh = new Button("Button_HiddenRefresh");
    bt_Refresh.setText("Test of reloadTree() from button");
    bt_Refresh.setOnClientClick("reloadTree()");
    form.addComponent(bt_Refresh);
    Checkbox cb = new Checkbox("Checkbox");
    cb.setText("Test from checkbox");
    cb.setDisabled(false);
    cb.setChecked(true);
    cb.setOnClientClick("reloadTree()");
    form.addComponent(cb);
    Does anyone know why the HoverMenu item script in setClientSideScript cannot access JavaScript functions in my form ?
    Regards
    Michael

  • -t2cGetCharSet error when using thick client with 1.0.0.15.57

    I think I have found a bug in 1.0.0.15 related to accessing a database using the thick client. I have tested this with 1.0.0.14 release of SQLDeveloper and that version DOES work OK.
    Simply put, I try connecting to a database using the 10g Client on Windows XP and I get "Failure: -t2cGetCharSet" error when running 1.0.0.15.57. I must use 10g thick client so that I can use encyption between the client and the database. 9i thick client doesn't work between Windows and Linux when using encryption. Also, instant client isn't an option; it doesn't support Advanced Security Option (encryption).
    I DID test without encryption enabled to eliminate that as a possible cause and the results were the same.
    If need be, I could back down to 1.0.0.14, but I would prefer not to.

    See:
    Re: TNS Connection Issues
    Raptor does not find My tnsnames
    If don't to solve your problem, let us to know.

  • Unknown namespace prefix Error - when using custom Aliases with RDF aliases

    I am getting unknown namespace prefix error when I use custome SEM_ALIAS with rdf SEM_ALIAS. It seems once you specify custom SEM_ALIAS, the default rdf alias is not recognized. Following are the details of queries
    I have a sem_Model "test" which has "event" as a class and "Merger" as a sub-class of event, with "acquiringorg" as a property having the domain "org". "Org" is also defined as a class with the literal attribute "hasname". I have added one instance of "merger" class with appropriate values for "acquiringorg" property. There is one instance or "Org" as well for reference in the instance above.
    the following query(return all objects having property "acquiringorg" and its .e. "hasName" attribute for the object) runs fine and returns appropriate resultset
    select x event,z acquiringorg ,l acquireeorg from table(SEM_MATCH(
    '(?x Evnt:AcquiringOrg ?y)(?k orgn:hasName ?l)',
    SEM_MODELS('test'),
    null,
    SEM_ALIASES(SEM_ALIAS('Evnt','http://www.abc.com/Event/Merger/'),
    SEM_ALIAS('orgn','http://www.abc.com/Org/')),
    null));
    However when I want to add another criteria i.e. show me events of type merger(?x rdf:type :Merger) , the query fails with the "unknown namespace prefix error" as above
    select x event,z acquiringorg ,l acquireeorg from table(SEM_MATCH(
    '(?x rdf:type :Merger)(?x Evnt:AcquiringOrg ?y)(?k orgn:hasName ?l)',
    SEM_MODELS('test'),
    null,
    SEM_ALIASES(SEM_ALIAS('Evnt','http://www.abc.com/Event/Merger/'),
    SEM_ALIAS('orgn','http://www.abc.com/Org/')),
    null));
    specifying "rdf" ALIAS explicitly also does not work
    select x event,z acquiringorg ,l acquireeorg from table(SEM_MATCH(
    '(?x rdf:type :Merger)(?x Evnt:AcquiringOrg ?y)(?k orgn:hasName ?l)',
    SEM_MODELS('test'),
    null,
    SEM_ALIASES(_SEM_ALIAS('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'),_
    SEM_ALIAS('Evnt','http://www.abc.com/Event/Merger/'),
    SEM_ALIAS('orgn','http://www.abc.com/Org/')),
    null));
    I am unable to figure out why default namespace i.e. rdf is returning this error
    Stuck at this point badly!!Any pointers would be useful!!

    Full error details are as below
    ORA-29532: Java call terminated by uncaught Java exception: oracle.spatial.rdf.server.ParseException: Unknown namespace prefix ''
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 153
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 842
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 235
    ORA-06512: at line 1
    29532. 00000 - "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
    resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Getting Run-time error when using Client ADI with Office 2010

    Hi,
    We are unable to import journals from Client ADI when using Office 2010.
    Please let me know how to resolve this issue.
    Thanks,
    Pooja

    Duplicate post -- Client ADI display A runtime error in Office 2010

  • Error when using Analytic view with Input Parameters

    Hi,
    I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
    Has anyone faced similar issues?
    We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
    Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
    Thanks

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • ORA-03113 error when using Oracle 9i with Mapx 5.0

    Hello,
    I am using Personal Oracle 9i Release 2 with Mapx5.0 on Delphi.
    Accessing the layers using tab files also as server layers..,
    and commonly using the method of Mapx Layer.SearchAtPoint
    Search is done on region, line as well as on point objects...,
    at some point of time it flashes me the error
    ORA-03113 end-of-file on communication channel
    I am not exactly able to figure out when it gives..,
    but i m getting it after some clicks on the layers
    The same executable is working fine with Oracle 8.1.7
    As anybody faced such a problem and knows the possible cause
    Thanks,
    Binoy

    There is some java bug that is causing some problems if you are using 9.2.0.3. Here is some information:
    Workaround for bug 2755842:
    Event 10499 can be set (any non-zero level) to revert to the old behaviour.
    ==================================================
    Setting the EVENT 10499
    =======================
    Check if the database server is using a server parameter (spfile) a parameter (init.ora) file.
    From sqlplus, connect as sysdba and execute the command:
    show parameters spfile
    If the value is NULL or empty, then spfile is NOT enabled and init.ora is used.
    1) If SPFILE is used:
    SQL> show parameters spfile
    NAME TYPE VALUE
    spfile string
    %ORACLE_HOME%\DATABASE\SPFILE%ORACLE_SID%.ORA
    a) Using sqlplus logon as sysdba
    b) Execute: alter system set event="10499 trace name context forever,level 4" scope=spfile
    sid='*';
    c) shutdown
    d) startup the database
    2) If INIT.ORA is used:
    a) In the init<SID>.ora file, add the parameter event="10499 trace name context forever,level 4"
    b) Stop and start the database
    Hope this is it.
    Dan

  • Certificate Error when using pub services with IE7

    everytime i try to use pub services admin console i get the
    following warning im using IE7 any idea how to stop this nag ? :
    There is a problem with this website's security certificate.
    The security certificate presented by this website was not
    issued by a trusted certificate authority.
    Security certificate problems may indicate an attempt to fool
    you or intercept any data you send to the server.
    We recommend that you close this webpage and do not continue
    to this website.
    Click here to close this webpage.
    Continue to this website (not recommended).
    More information
    If you arrived at this page by clicking a link, check the
    website address in the address bar to be sure that it is the
    address you were expecting.
    When going to a website with an address such as
    https://example.com, try adding the 'www' to the address,
    https://www.example.com.
    If you choose to ignore this error and continue, do not enter
    private information into the website.

    hi,
    IE 7 has changed the way certificates were handled when
    compared to IE 6. In IE 6, the user gets an option to view the
    certificate before proceeding to view the site. In the process the
    user can import the certificate into the browsers trust store.
    Since CPS is deployed with a self signed certificate, in IE 7
    we get a certificate error.
    There is currently no workaround for the same, except to
    deploy cps war file on an application server that has a certificate
    signed by a signing authority
    thanks,
    sudharshan

  • Error when use Crytal Reports with Delphi.

    Delphi 2010  and CR2008
    When i code :
               Crpe1.ReportName := 'c:\temp\invoice.rpt';
               Crpe1.Output :=  toPrinter;
               Crpe1.Print;
    Problem with Print Method !
    Error : 538
    Error in File invoice.rpt:
    Parameter has invalid structure size.
    PrintOptions.GetCopies <PEGetPrintOptions>
    Pleave help me fix this error !

    Looks like you are using the VCL? Where did you get the VCL?
    I'd also like to draw yor attention to the following blogs;
    http://weblogs.sdn.sap.com/pub/wlg/14384? [original link is broken] [original link is broken] [original link is broken]
    Crytal Reports for Delphi Support
    /people/trevor.dubinsky/blog/2009/10/09/introduction-to-delphi-prism-applications-development
    /people/trevor.dubinsky/blog/2009/10/19/delphi-prism-how-to-setup-the-environment-for-crystal-reports-2008-and-bobj-enterprise-r3-development
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • ODeliveryNotes serial nbr error when using sales BoM with DI server

    Hi all,
    we're trying to create a delivery note with DI server for items managed by serial number and sales bom.
    This is a sample xml:
    <?xml version="1.0" encoding="utf-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
    <SessionID>F6166595-C4E0-4B5E-B44C-85CB04FAA0C9</SessionID>
    </env:Header>
    <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="ConsegnaOpen">
    <BOM>
    <BO>
    <AdmInfo>
    <Object>oDeliveryNotes</Object>
    </AdmInfo>
    <Documents>
    <row>
    <CardCode>C9999</CardCode>
    </row>
    </Documents>
    <Document_Lines>
    <row>
    <ItemCode>S610STW-220</ItemCode>
    <Quantity>220</Quantity>
    </row>
    </Document_Lines>
    <SerialNumbers>
    <row>
    <InternalSerialNumber>AD00003</InternalSerialNumber>
    <SystemSerialNumber>3</SystemSerialNumber>
    <BaseLineNumber>1</BaseLineNumber>
    </row>
    </SerialNumbers>
    </BO>
    </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    And this is the returned error: "You should use existing serial/batch numbers for this document type [(----) 29-51]"
    Any idea why?
    Thanks
    Fabio

    Hello Fabio,
    I have tested your problem with DI API, and I got the same error you have.
    This is an uncovered system functionality or system limitation
    Report this issue to SAP Support.
    My DI API COde
    Dim oDN As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oDeliveryNotes)
            oDN.CardCode = "1013"
            oDN.DocDate = Date.Today()
            oDN.DocDueDate = Date.Today()
            oDN.VatDate = Date.Today()
            oDN.TaxDate = Date.Today()
            oDN.Lines.SetCurrentLine(0)
            oDN.Lines.ItemCode = "TBOM"
            oDN.Lines.WarehouseCode = "2"
            'oDN.Lines.SetCurrentLine(2)
            oDN.Lines.SerialNumbers.SetCurrentLine(0)
            oDN.Lines.SerialNumbers.ManufacturerSerialNumber = "1"
            oDN.Lines.SerialNumbers.InternalSerialNumber = "1"
            oDN.Lines.SerialNumbers.SystemSerialNumber = "1"
            oDN.SaveXML("c:TEMPDNWITHBOOM.xml")
            If oDN.Add <> 0 Then
                sbo_application.MessageBox(oCompany.GetLastErrorDescription)
            End If
    Where TBOM is a sales kit, for 12 peices, components TNM item no serial number 12 peice, TSN item using serial number 1 piece.
    Sales Factor 1 for TBOM is 12 piece
    This sample code results the same issue you hev reported.
    Edited by: János Nagy on Apr 14, 2010 4:49 PM

  • XSL Errors When Using AQ Adapter with EBS Business Events

    I am triggering a BPEL process with an Oracle EBS Business Event. After receiving the event, I am trying to perform an XSL transformation to extract parameters from the event. However, I keep getting XSL errors because the BE field ERROR_SUBSCRIPTION comes in containing invalid XML characters (#).
    It seems that BPEL or EBS do not properly escape the XML input. Is that a bug, or is there a way to work around this. I know I could filter the XML input in some way, but that seems likely to be more brittle to any future changes to the EBS BE message types.

    Adding to the above post, how will the PL/SQL program which triggers the Business Event ensure that the complete data is enqueued in the queue in form of XML?
    What will be the additional logic to send complete data in the XML format?

  • Error 37 using serial port with an executable file

    Hi all,
    I have developed a VI that controls a setellite receiver using RS232
    serial port (LabVIEW 5.1.1).
    The VI program run properly, but when I compile it and try to run the
    executable file I receive an "Error 37, Device not found" error message.
    I have already put serpdrv and my_file.ini files in the same directory
    of my executable program my_file.exe, but I have not been able to solve
    the problem.
    Any help greatly appreciated.
    Regards
    Antonio
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    [email protected] wrote:
    >
    > Hi all,
    > I have developed a VI that controls a setellite receiver using RS232
    > serial port (LabVIEW 5.1.1).
    > The VI program run properly, but when I compile it and try to run the
    > executable file I receive an "Error 37, Device not found" error message.
    > I have already put serpdrv and my_file.ini files in the same directory
    > of my executable program my_file.exe, but I have not been able to solve
    > the problem.
    > Any help greatly appreciated.
    >
    > Regards
    >
    > Antonio
    >
    > Sent via Deja.com http://www.deja.com/
    > Before you buy.
    Maybe you used the serpdrv from an older version of LV
    Regards, Roland
    Roland Lampka - Nortel Dasa - ESN 565-7257 - FAX 8160

  • Linking error when using C++ DLL for writing TDM files

    I try to integrate TDM into my C++ code. Then I downloaded the package from the NI website "Integrating TDMS in Third-Party Products". I tested the the sample "writeFile.c". But a  linking error as following occurred:
    1>Linking...
    1>nilibddc.lib(implib.obj) : error LNK2019: unresolved external symbol __imp__wsprintfA referenced in function _LoadDLLIfNeeded
    1>.\Debug/Test TDM.exe : fatal error LNK1120: 1 unresolved externals 
    Can anyone help me out. Many thanks. 
    Solved!
    Go to Solution.

    I migrated my code from VC++ 6 compiler to VC++ 2005. Then linking errors are gone.
    nilibddc.lib(implib.obj) : error LNK2001: unresolved external symbol ___security_cookie
    nilibddc.lib(implib.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    P.S. "Read me" from NI says "The Microsoft 32-bit format is compatible with Microsoft Visual C version 6.0". But I tested the code with VC++6 professional with SP6 package and upgrade the SDK to the latest version that supports vc6. I still have the linking errors. My test seems prove that the dll does not support VC6. 
    Message Edited by Kuo on 04-22-2010 05:03 AM

Maybe you are looking for

  • Mic and cam

    this may be a dumb question,  but how do I know if there is a built in mic and webcam on my computer.  My husbands says it is here like his laptop but I do not see how to turn on the cam or know if the mic is working   I have a new hp pavillion, 24 i

  • How to change default FCoE QoS class - Nexus 5020

    I see that on a Nexus 5020, the default FCoE QoS class is 50%. I am not using FCoE so I would like to adjust this value to 0%. I switch complains and says I can't change default values. How should I go about getting around this to eliminate the FCoE

  • Lack of modularity in Projects for EJB module

    Problem For a project you have many enterprise bean components. In JDeveloper, currently, all the information like persistence-type, resource-reference, etc reside in the ejb-jar.xml which is project specific. (1) In the real-world, developers work o

  • How to read file name in JavaMapping (not in MessageMapping)

    Hi, We all know that we can read a filename using dynamic configuration code in Message Mapping. Now my question is how to acheive the same in pure Java Mapping. Plz dont give me answers for Dynamic Configuration in MessageMapping. Thanks, Avis.

  • PeopleSoft 8.52 Plug-in Implementation Guide for use with Grid Control

    Per the Readme accompanying the download of PeopleSoft 8.52 Plug-in for use with Grid Control (11.1.0.1)-- "For the implementation reference guide, refer to "PeopleSoft Enterprise Environment Management Plug-in 8.52 for Oracle Enterprise Manager Impl