Why is FileReader.onerror not called in readAsArrayBuffer on NS_ERROR_FILE_ACCESS_DENIED? (Chrome does)

When reading a file via javascript readAsArrayBuffer and file is not readable, Firefox does not call "onerror" handler and instead stops the javascript with error:
NS_ERROR_FILE_ACCESS_DENIED
blob = file.slice(0,1);
var reader = new FileReader;
reader.onerror = function(e) {
// this is called under Chrome, but not under Firefox
console.log('reader.onerror');
reader.readAsArrayBuffer(blob); // this stops with NS_ERROR_FILE_ACCESS_DENIED
According to FileAPI it should:
https://developer.mozilla.org/en-US/docs/Web/API/FileReader

[https://support.mozilla.org/en-US/kb/where-go-developer-support Where to go for developer support]

Similar Messages

  • Not showing ä or à in firefox while chrome does

    not showing ä or à in firefox when chrome does..example: http://services.datasport.com/2010/tri/genf/

    Adding images doesn't seem to work at the moment on this forum, so you have to host it elsewhere.
    If you have problems with uploading the attachment then you can upload your screenshot to an image hosting site like [http://www.imageshack.us/ <ImageShack® - Hosting>] and post a link to that image.

  • Why is VO getter not called for custom VO attributes?

    Hi,
    The requirement is to add couple of fields on a OAF page. Here is what I did:
    - Created custom VO by extending the standard VO
    - Added fields to the page via personalization.
    The issue is that the values for the custom fields on the page were not showing up. On investigation, I found the VORowImpl getter getAttrInvokeAccessor was not being called for my custom attribute. I tried to check the difference between the attributes for which the getter was called and for which it was not called. I couldn't find any and I'm totally left clueless as to what determines the getter to be called.
    Really appreciate your help to move ahead.
    Thanks,
    Anil
    Edited by: AnilMenta on Mar 5, 2013 10:40 AM

    Hi Anil,
    First of all, Could you please make sure that Extended VO is being picked up during the execution of the page . Ensure that extended VO is substituted
    If the VO is substituted then try Steps below
    1. Enable the diagnostics .. show log on page statements
    2. Search for your custom VO name .
    If you can find your extended VO here, then substitution is right and page is picking up the extended VO.
    Thanks

  • Why my XML is not loading ?? (ORA-19007: Schema - does not match expected )

    Hi,
    I want to load a XML document in structured XMLType. You can run my code on your database if you have a directory object called LOG_DIR. I am on Oracle 10.1 .
    The schema is a simple example which describe a database table(like it will have 1 or more columns and 0 or more indexes). My schema looks like,
    <xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Tables" type="Table">
    <xs:annotation>
    <xs:documentation>Table defination</xs:documentation>
    </xs:annotation>
    </xs:element>
    <xs:element name="table_name" type="xs:string"/>
    <xs:complexType name="Table">
    <xs:sequence>
    <xs:element name="Column" type="Column" minOccurs="1"/>
    <xs:element name="Index" type="Index" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Column">
    <xs:annotation>
    <xs:documentation>Column of the table</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="Name" type="xs:string" minOccurs="1"/>
    <xs:element name="Type" type="xs:string" minOccurs="1"/>
    <xs:element name="Capacity" type="xs:decimal" minOccurs="1"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Index">
    <xs:annotation>
    <xs:documentation>Index on the table</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="Name" type="xs:string" minOccurs="1"/>
    <xs:element name="Type" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    I registered the schema,
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL => 'tables.xsd',
    SCHEMADOC => bfilename('LOG_DIR','tables.xsd'),
    CSID => nls_charset_id('AL32UTF8')
    END;
    This was successfull, also the following create table was ok,
    CREATE TABLE TMP_XML_TABLES
    file_name VARCHAR2(2000),
    load_date DATE,
    xml_document XMLType
    XMLType COLUMN xml_document
    XMLSchema "http://xmlns.oracle.com/xdb/schemas/TDB/tables.xsd"
    ELEMENT "Tables";
    Now I have a XML document,
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/xdb/schemas/TDB/tables.xsd">
    <table_name>trades</table_name>
    <Column><Name>trade_id</Name><Type>varchar2</Type><Capacity>50</Capacity></Column>
    <Column><Name>source</Name><Type>varchar2</Type><Capacity>100</Capacity></Column>
    <Column><Name>trade_date</Name><Type>date</Type></Column>
    <Column><Name>trader</Name><Type>varchar2</Type><Capacity>200</Capacity></Column>
    <Index><Name>trades_pk</Name><Type>btree</Type></Index>
    <Index><Name>trades_idx1</Name><Type>bitmap</Type></Index>
    </Tables>
    When I am trying to load this, I get the error,
    SQL> INSERT INTO TMP_XML_TABLES
    2 VALUES
    3 ('tables1.xml',
    4 sysdate,
    5 XMLType
    6 (
    7 bfilename('LOG_DIR','tables1.xml'),
    8 nls_charset_id('AL32UTF8')
    9 )
    10 );
    INSERT INTO TMP_XML_TABLES
    ERROR at line 1:
    ORA-19007: Schema - does not match expected tables.xsd.
    Can somebody please explain the cause ???
    Thanks and Regards

    A quick search of the forum for ORA-19007 should have allowed you to find the answer to your problem. Since you XML Schema does not declare a target namespace you need to use the xsi:noNamespaceSchemaLocation tag rather than the schemaLocation tag..
    Also please do not use URLs starting http://xmlns.oracle.com for your schemaLocation hint. If you do no own your own domain I'd suggest example.org...
    Finally please make sure that your XML Instance is valid per your XML Schema before posting. You can do this using tools like JDeveloper or XMLSpy. What should have been a 5 min repsonse took me over 20 mins to work through due to the errors in the XML Schema...
    Anyway here's a working example for you
    SQL>
    SQL>
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> begin
      2    :schemaURL := 'http://xmlns.examples.org/xdb/schemas/TDB/tables.xsd';
      3    :schemaPath := '/public/testcase.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SQL> DROP TABLE TMP_XML_TABLES
      2  /
    Table dropped.
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Call completed.
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="
    tp://xmlns.oracle.com/xdb">
      5     <xs:element name="Tables" xdb:defaultTable="TABLES_TABLE">
      6     <xs:annotation>
      7                     <xs:documentation>Table defination</xs:documentation>
      8             </xs:annotation>
      9             <xs:complexType>
    10                     <xs:complexContent>
    11                             <xs:extension base="Table"/>
    12                     </xs:complexContent>
    13             </xs:complexType>
    14     </xs:element>
    15     <xs:complexType name="Table">
    16             <xs:sequence>
    17                     <xs:element name="table_name" type="xs:string"/>
    18                     <xs:element name="Column" type="Column" maxOccurs="unbounded"/>
    19                     <xs:element name="Index" type="Index" minOccurs="0" maxOccurs="unbounded"/>
    20             </xs:sequence>
    21     </xs:complexType>
    22     <xs:complexType name="Column">
    23             <xs:annotation>
    24                     <xs:documentation>Column of the table</xs:documentation>
    25             </xs:annotation>
    26             <xs:sequence>
    27                     <xs:element name="Name" type="xs:string"/>
    28                     <xs:element name="Type" type="xs:string"/>
    29                     <xs:element name="Capacity" type="xs:decimal"/>
    30             </xs:sequence>
    31     </xs:complexType>
    32     <xs:complexType name="Index">
    33             <xs:annotation>
    34                     <xs:documentation>Index on the table</xs:documentation>
    35             </xs:annotation>
    36             <xs:sequence>
    37                     <xs:element name="Name" type="xs:string"/>
    38                     <xs:element name="Type" type="xs:string" minOccurs="0"/>
    39             </xs:sequence>
    40     </xs:complexType>
    41  </xs:schema>
    42  ');
    43  begin
    44    if (dbms_xdb.existsResource(:schemaPath)) then
    45      dbms_xdb.deleteResource(:schemaPath);
    46    end if;
    47    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    48  end;
    49  /
    PL/SQL procedure successfully completed.
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> CREATE TABLE TMP_XML_TABLES
      2  (
      3  file_name VARCHAR2(2000),
      4  load_date DATE,
      5  xml_document XMLType
      6  )
      7  XMLType COLUMN xml_document
      8  XMLSchema "http://xmlns.examples.org/xdb/schemas/TDB/tables.xsd"
      9  ELEMENT "Tables"
    10  /
    Table created.
    SQL> insert into TMP_XML_TABLES values ('testcase1.xml',sysdate,xmltype(
      2  '<Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/T
    /tables.xsd">
      3     <table_name>trades</table_name>
      4     <Column>
      5             <Name>trade_id</Name>
      6             <Type>varchar2</Type>
      7             <Capacity>50</Capacity>
      8     </Column>
      9     <Column>
    10             <Name>source</Name>
    11             <Type>varchar2</Type>
    12             <Capacity>100</Capacity>
    13     </Column>
    14     <Column>
    15             <Name>trade_date</Name>
    16             <Type>date</Type>
    17     </Column>
    18     <Column>
    19             <Name>trader</Name>
    20             <Type>varchar2</Type>
    21             <Capacity>200</Capacity>
    22     </Column>
    23     <Index>
    24             <Name>trades_pk</Name>
    25             <Type>btree</Type>
    26     </Index>
    27     <Index>
    28             <Name>trades_idx1</Name>
    29             <Type>bitmap</Type>
    30     </Index>
    31  </Tables>'))
    32  /
    1 row created.
    SQL> set long 10000 pages 0 lines 160
    SQL> /
    1 row created.
    SQL> select * from TMP_XML_TABLES
      2  /
    testcase1.xml
    21-APR-06
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/TDB/tab
    s.xsd">
      <table_name>trades</table_name>
      <Column>
        <Name>trade_id</Name>
        <Type>varchar2</Type>
        <Capacity>50</Capacity>
      </Column>
      <Column>
        <Name>source</Name>
        <Type>varchar2</Type>
        <Capacity>100</Capacity>
      </Column>
      <Column>
        <Name>trade_date</Name>
        <Type>date</Type>
      </Column>
      <Column>
        <Name>trader</Name>
        <Type>varchar2</Type>
        <Capacity>200</Capacity>
      </Column>
      <Index>
        <Name>trades_pk</Name>
        <Type>btree</Type>
      </Index>
      <Index>
        <Name>trades_idx1</Name>
        <Type>bitmap</Type>
      </Index>
    </Tables>
    testcase1.xml
    21-APR-06
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/TDB/tab
    s.xsd">
      <table_name>trades</table_name>
      <Column>
        <Name>trade_id</Name>
        <Type>varchar2</Type>
        <Capacity>50</Capacity>
      </Column>
      <Column>
        <Name>source</Name>
        <Type>varchar2</Type>
        <Capacity>100</Capacity>
      </Column>
      <Column>
        <Name>trade_date</Name>
        <Type>date</Type>
      </Column>
      <Column>
        <Name>trader</Name>
        <Type>varchar2</Type>
        <Capacity>200</Capacity>
      </Column>
      <Index>
        <Name>trades_pk</Name>
        <Type>btree</Type>
      </Index>
      <Index>
        <Name>trades_idx1</Name>
        <Type>bitmap</Type>
      </Index>
    </Tables>Since you are tracking metadata about the documents (name, date loaded) you might want to consider using the XDB repository to load the documents. The folllowing shows how you can do this from SQL and then create a view which contains the metadata and document content. The advantage of this approach is you can now load the documents using FTP or WebDAV.
    SQL> declare
      2    res boolean;
      3    document xmltype := xmltype(
      4  '<Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/T
    /tables.xsd">
      5     <table_name>trades</table_name>
      6     <Column>
      7             <Name>trade_id</Name>
      8             <Type>varchar2</Type>
      9             <Capacity>50</Capacity>
    10     </Column>
    11     <Column>
    12             <Name>source</Name>
    13             <Type>varchar2</Type>
    14             <Capacity>100</Capacity>
    15     </Column>
    16     <Column>
    17             <Name>trade_date</Name>
    18             <Type>date</Type>
    19     </Column>
    20     <Column>
    21             <Name>trader</Name>
    22             <Type>varchar2</Type>
    23             <Capacity>200</Capacity>
    24     </Column>
    25     <Index>
    26             <Name>trades_pk</Name>
    27             <Type>btree</Type>
    28     </Index>
    29     <Index>
    30             <Name>trades_idx1</Name>
    31             <Type>bitmap</Type>
    32     </Index>
    33  </Tables>');
    34  begin
    35    res := dbms_xdb.createResource('/public/testcase.xml',document);
    36  end;
    37  /
    PL/SQL procedure successfully completed.
    SQL> create or replace view TMP_XML_TABLES_VIEW as
      2  select extractValue(res,'/Resource/DisplayName') FILENAME,
      3         extractValue(res,'/Resource/CreationDate') LOAD_DATE,
      4         object_value XML_DOCUMENT
      5    from RESOURCE_VIEW, TABLES_TABLE t
      6   where extractValue(res,'/Resource/XMLRef')= ref(t)
      7  /
    View created.
    SQL> select * from TABLES_TABLE
      2  /
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/TDB/tab
    s.xsd">
      <table_name>trades</table_name>
      <Column>
        <Name>trade_id</Name>
        <Type>varchar2</Type>
        <Capacity>50</Capacity>
      </Column>
      <Column>
        <Name>source</Name>
        <Type>varchar2</Type>
        <Capacity>100</Capacity>
      </Column>
      <Column>
        <Name>trade_date</Name>
        <Type>date</Type>
      </Column>
      <Column>
        <Name>trader</Name>
        <Type>varchar2</Type>
        <Capacity>200</Capacity>
      </Column>
      <Index>
        <Name>trades_pk</Name>
        <Type>btree</Type>
      </Index>
      <Index>
        <Name>trades_idx1</Name>
        <Type>bitmap</Type>
      </Index>
    </Tables>
    SQL> select * from TMP_XML_TABLES_VIEW
      2  /
    testcase.xml
    21-APR-06 02.21.37.031000 PM
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/TDB/tab
    s.xsd">
      <table_name>trades</table_name>
      <Column>
        <Name>trade_id</Name>
        <Type>varchar2</Type>
        <Capacity>50</Capacity>
      </Column>
      <Column>
        <Name>source</Name>
        <Type>varchar2</Type>
        <Capacity>100</Capacity>
      </Column>
      <Column>
        <Name>trade_date</Name>
        <Type>date</Type>
      </Column>
      <Column>
        <Name>trader</Name>
        <Type>varchar2</Type>
        <Capacity>200</Capacity>
      </Column>
      <Index>
        <Name>trades_pk</Name>
        <Type>btree</Type>
      </Index>
      <Index>
        <Name>trades_idx1</Name>
        <Type>bitmap</Type>
      </Index>
    </Tables>
    SQL>
    SQL>
    SQL>

  • Why Does DW Not Render My Page Correctly and Chrome Does ?

    Hi - I'm developing a site for WordPress. The site body has a background-image which gives a progressive soft grey to the page. If I display it in Chrome the background image renders perfectly well, but inside DW it is missing entirely. Doubly strange is that there is also another image around the #container and this renders perfectly well. Strange as DW and Chrome use the same layout engine. Have I done something wrong or is this a bug in DW ? Here is the sailent code:
    Body{
         font-family: Arial, Helvetica, sans-serif;
         color:#666666;
         font-size: .75em;
         background-image: url(images/long_vertical.jpg);
         background-repeat:repeat-x;
    #container{
         background-image: url(images/whole_body.jpg);
         width:1034px;
         height:890px;
         margin: -15px auto 0px auto;

    Thank you for your help !!
    bringing my attention to the doc type ( utf 8 ) made me see that the doc type was placed below the obligatory Wordpress template description. Once I put it on the top of the css doc where it belongs it render perfectly well in live view.
    The obvious defeats us !
    Thanks Vincej 

  • ViClose session not called after Read operation Timeout in an IVI COM driver

    Hi everybody
    I have a small VI sample that is initializaing an IVI COM driver for an OPM instrument, set some parameters into the instrument then is doing a single Read power measurement. My Read operation receives a single parameter called MaxTimeout that user could change depending on his own interest. Inside the Read function I change temporarily the VISA query timeout to user timeout but at the end of Read operation the original VISA session timeout is reverted to its original value before Read operation was called. If the Read operation timeout is long enough for the Read operation to complete ( 100 ms or more) the VI is doing its job and when finished the viClose is called twice for DefaultHandler and for OpenHandler.
    If the Read operation timeout value decrease ( 50 ms) then Read operation could not be completed and a Read Operation Timeout error is thrown from inside this method. This error is then propagated trough Error path until the VI end in a Simple Error Handler. Now on my VI I close all open references to my driver interfaces but I don't know why VISA itself is not calling viClose on the DefaultHandler and OpenHandler as in the case when was no VI error. I could see all these diferences in my NI Spy window and I could post this if that could be of any help. Bear with me cause I am more a C, C++, VB programmer and much less of a LabVIEW programmer. BTW the Error Handling from LabVIEW looks a a little weird and the only sure thing is that I wired in Error In and Error Out path in all my VI calls. What kind of error handling should I perform on the Read method in order for VISA to close properly both OpenHandlers even if there is an error in my VI?
    Thansk
    sorinvalea

    So viClose is not called by VISA after an error takes place in a VI that is calling some operations on an IVI COM driver.
    I discovered that all VI sessions opened trough VI that encountered a timeout error in Read operation and that were not properly closed after VI completed are in fact viClose by the LabView itself when I am closing LabVIEW application.
    So these left over open vi sessions are kept aside by LabVIEW until it closes itself and then clean them one by one by calling viClose on them....

  • P and V Getter not called for custom attributes!

    Hi,
    i implemented a new search structure instead of CRMST_QUERY_SLSORD_BTIL for business transaction search.
    I enhanced the new structure with a custom field and generated v and p-getter methods to have a dropdown listbox.
    Unfortunately the p and v getter are not called by the framework.
    The field in the context node is STRUCT./SEW/BILLINGBLOCK.
    I have no idea why this methods are not called by the framework.
    br
    Jürgen

    For the advanced search you do not have to implement a V getter. Instead, you must
    redefine method GET_DQUERY_DEFINITIONS in the implementation class of the view
    controller.

  • FillClaimsForEntity not called in my custom claim provider

    Hi,
    I have created a custom claim provider in SharePoint 2013 in order to augment claims with some custom values. It's mostly boilerplate code - nothing special. After deploying and enabling a corresponding farm feature I noticed that the FillClaimsForEntity
    method is not called at all. Moreover, other two methods required for augmentation (FillClaimValueTypes and FillClaimTypes) are called only once - when the feature is activated. From my understanding all three methods should be called every time a user logs
    in to SharePoint. I'm using integrated Windows authentication with NTLM.
    This is abbreviated code showing only important parts:
    public class MyClaimProvider : SPClaimProvider
    protected const string MyClaimType = "http://www.mywebsite.ca/identity/claims/parrot";
    protected const string StringTypeClaim = "http://www.w3.org/2001/XMLSchema#string";
    protected override void FillClaimTypes(List<string> claimTypes)
    if (claimTypes == null)
    throw new ArgumentNullException("claimTypes");
    // add our claim types
    claimTypes.Add(MyClaimType);
    protected override void FillClaimValueTypes(List<string> claimValueTypes)
    if (claimValueTypes == null)
    throw new ArgumentNullException("claimValueTypes");
    // add our claim value type
    claimValueTypes.Add(StringTypeClaim);
    protected override void FillClaimsForEntity(Uri context, SPClaim entity, List<SPClaim> claims)
    if (entity == null)
    throw new ArgumentNullException("entity");
    if (claims == null)
    throw new ArgumentNullException("claims");
    claims.Add(CreateClaim(MyClaimType, "kakadu", StringTypeClaim));
    public override bool SupportsEntityInformation
    get { return true; }
    // ... the rest of code goes here
    and this is my feature code:
    public class MyClaimProviderRegistrationEventReceiver : SPClaimProviderFeatureReceiver
    public override string ClaimProviderAssembly
    get { return this.GetType().Assembly.FullName; }
    public override string ClaimProviderType
    get { return typeof(MyClaimProvider).FullName; }
    public override string ClaimProviderDisplayName
    get { return "MyClaimProvider"; }
    public override string ClaimProviderDescription
    get { return "MyClaimProvider desc"; }
    public override void FeatureActivated(Microsoft.SharePoint.SPFeatureReceiverProperties properties)
    base.FeatureActivated(properties);
    var cpm = SPClaimProviderManager.Local;
    foreach (var cp in cpm.ClaimProviders)
    if (cp.ClaimProviderType == typeof(MyClaimProvider))
    cp.IsUsedByDefault = true;
    cp.IsEnabled = true;
    cpm.Update();
    break;
    Does anybody know why the methods are not called when a user accesses SharePoint?
    Thanks,
    Leszek
    Wiki: wbswiki.com
    Website: www.wisenheimerbrainstorm.com

    Hi,
    The following articles would be helpful:
    How often will FillClaimsForEntity in my Custom Claims Provider be called?
    http://blogs.msdn.com/b/brporter/archive/2010/11/30/how-often-will-fillclaimsforentity-in-my-custom-claims-provider-be-called.aspx
    Checklist for Issues with Custom Claims Providers in SharePoint 2010 and 2013
    http://blogs.technet.com/b/speschka/archive/2013/05/15/checklist-for-issues-with-custom-claims-providers-in-sharepoint-2010-and-2013.aspx
    SharePoint Custom Claims Provider
    http://blog.podrezo.com/sharepoint-custom-claims-provider/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • BADI_SORTER NOT CALLED...

    Dear All,
    I have an enhancement spotZX_SPOT
    In this spot, I do have a Badi definition ZX_DEF
    Whithin this badi definition i do have 3 implemetation
    ZX_IMP1
    ZX_IMP2
    ZX_IMP3
    I'd like to define the sequence of the implementations in abap...
    I then go to spot BADI_SORTER...
    Go to definition BADI_SORTER and create a new implementation...
    Filter BADI_NAME is ZX_DEF
    implementing class is ZCL_XX_SORT...
    In method   SORT_IMPLS of this class i just put a break point, in order to check in debug wether something happens or not...
    Add nothing happens, i don't know why my enhancement is not called.... Is it really requiered to have a screen ? I don't want any screens enhancement for my badi...
    I want it to be as simple as possible.
    Any help is welcome!
    Regards

    Hi,
    Inorder to debug BADI, put BREAK-POINT as code in the BADI.
    Best regards,
    Prashant

  • Air.swf getApplicationVersion() not calling back

    I am trying to use air.swf from
    http://airdownload.adobe.com/air/browserapi
    per the Adobe documentation to detect if an air application is
    already installed. I'm using getApplicationVersion but the callback
    function is never called. launchApplication() and
    installApplication() work fine.
    The code looks like this:
    _air.getApplicationVersion(appID, pubID,
    versionDetectCallback);
    function versionDetectCallback(version:String):void { do
    stuff }
    VersionDetectCallback() is never called. I de-compiled the
    air.swf and ran the code directly to try and figure out what's
    failing. But I get the same result. I can see the timer on the
    LocalConnection endpoint timing out after 5 seconds. I just can't
    figure out why the appinstaller is not calling back. The actual
    call (taken from the decompiled swf) looks like this:
    airappinstaller = new ProductManager("airappinstaller");
    var launchArgs:Array;
    launchArgs = ["-isinstalled", appID, pubID, "adobe.com" + ":"
    + lcName, "onApplicationVersion"];
    airappinstaller.launch(launchArgs.join(" "));
    where onApplicationVersion is the endpoint callback function
    and lcName is the LocalConnection name.
    It doesn't matter if I make the call from the Loader Init
    event or in a button click the callback function is never called. I
    am using Flash CS3.

    Hi Lisa,
    I am on windows yes,  and I seem to have got it working.  I found this problem to be very perculiar as there were many things my badge didnt like - such as a case statement instead of a load if if's.   anyway my solution is below,  although I must say, that now nothing happens if the user doesnt have air installed!  If they have Air installed but not my application, it will install my app but the need air installed first and that is not ideal!
    Maybe implementing your timer solution may help this?  Thanks for taking an interest!
    private var _toDo:String;
    private function onInit(e:Event):void
                _air = e.target.content;
                try
                  _air.getApplicationVersion(_applicationID, _publisherID, versionDetectCallback);
                catch (e:Error)
                  trace('air not installed');
                   root.statusMessage.text = 'Adobe Air not installed'
                   _toDo = new String("installAir")
    private function versionDetectCallback(version:String):void
                if (version == null)
                   trace('app not installed');
                   root.statusMessage.text = 'Coach Player not installed'
                   _toDo = new String("installApp")
                else
                   trace('app version ' + version + ' installed');
                   root.statusMessage.text = 'Application version ' + version + ' installed'
                   _toDo = new String("launchApp")
    private function onButtonClicked(e:Event):void
       root.statusMessage.htmlText = "onButtonClicked"
       if(_toDo == "installAir"){installAir()}
       if(_toDo == "installApp"){installApp()}
       if(_toDo == "launchApp"){launchApp()}
      protected function installAir():void
       root.statusMessage.text = 'Installing Adobe Air';
       _air.installApplication( _appURL, _airVersion, _arguments );
       //root.statusMessage.text = _appURL+" | "+ _airVersion+" | "+ _arguments
      protected function installApp():void
       root.statusMessage.text = 'Installing Coach Player';
       _air.installApplication( _appURL, _airVersion, _arguments );
       //root.statusMessage.text = _appURL+" | "+ _airVersion+" | "+ _arguments
      protected function launchApp():void
       root.statusMessage.text = 'Launching Coach Player';
       _air.launchApplication(_applicationID, _publisherID, _arguments);
       //root.statusMessage.text =  _applicationID+" | "+ _publisherID+" | "+ _arguments;
       //root.statusMessage.text = _arguments;

  • Air.swf GetApplicationVersion callback not called

    I am trying to use air.swf from
    http://airdownload.adobe.com/air/browserapi
    per the Adobe documentation to detect if an air application is
    already installed. I'm using getApplicationVersion but the callback
    function is never called. launchApplication() and
    installApplication() work fine.
    The code looks like this:
    _air.getApplicationVersion(appID, pubID,
    versionDetectCallback);
    VersionDetectCallback() is never called. I de-compiled the
    air.swf and ran the code directly to try and figure out what's
    failing. But I get the same result. I can see the timer on the
    LocalConnection endpoint timing out after 5 seconds. I just can't
    figure out why the appinstaller is not calling back. The actual
    call (taken from the decompiled swf) looks like this:
    airappinstaller = new ProductManager("airappinstaller");
    var launchArgs:Array;
    launchArgs = ["-isinstalled", appID, pubID, "adobe.com" + ":"
    + lcName, "onApplicationVersion"];
    airappinstaller.launch(launchArgs.join(" "));
    where onApplicationVersion is the endpoint callback function
    and lcName is the LocalConnection name.
    Anyone know why GetApplicationVersion() doesn't work?

    I am trying to use air.swf from
    http://airdownload.adobe.com/air/browserapi
    per the Adobe documentation to detect if an air application is
    already installed. I'm using getApplicationVersion but the callback
    function is never called. launchApplication() and
    installApplication() work fine.
    The code looks like this:
    _air.getApplicationVersion(appID, pubID,
    versionDetectCallback);
    VersionDetectCallback() is never called. I de-compiled the
    air.swf and ran the code directly to try and figure out what's
    failing. But I get the same result. I can see the timer on the
    LocalConnection endpoint timing out after 5 seconds. I just can't
    figure out why the appinstaller is not calling back. The actual
    call (taken from the decompiled swf) looks like this:
    airappinstaller = new ProductManager("airappinstaller");
    var launchArgs:Array;
    launchArgs = ["-isinstalled", appID, pubID, "adobe.com" + ":"
    + lcName, "onApplicationVersion"];
    airappinstaller.launch(launchArgs.join(" "));
    where onApplicationVersion is the endpoint callback function
    and lcName is the LocalConnection name.
    Anyone know why GetApplicationVersion() doesn't work?

  • Why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?

    why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?

    Here is a copy of my expressions and a copy of my data. The expressions match up going from left to right
    Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))
    sum(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    count(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    PUBLIC SHARED FUNCTION CalcPTD2(LookupArray AS OBJECT) AS INTEGER
         DIM i,Total AS INTEGER
         Total = 0
         FOR i = 0 to UBOUND(LookupArray)
               Total = Total + CINT(LookupArray(i))
         NEXT i
     NumberTimes  =   NumberTimes +1
    RETURN  Total
    END FUNCTION

  • Why can I not call a live person ofr support - this is frustrating.

    Why can I not call a support person directly for help - this is frstrating.

    I understand your discontent regarding the delayed availability of our reps when you call us juliusb85! We offer other customer service alternative for you like Twitter @VZWSupport and Facebook http://fb.me/Verizon or we can assist you here also. However, please keep in mind that this is a peer to peer forum and while our Social Media team monitors the posts, the best way to get immediate assistance when network issues are suspected is to call 800-922-0204 from a different line to troubleshoot device or send us a message on twitter at @VZWSupport.
      AntonioC_VZW
    Follow us on Twitter at www.twitter.com/VZWSupport

  • Why is the template not being used when dynamic page called ?

    Hi,
    I have created a dynamic page and assigned a template to it. When I call the dynamic page using the 'show' procedure from a form, I do not see the template.
    Why is the template not being used ? How can I get the template working when I call the dynamic page ?
    I even tried to show the page from the dynamic page's manage components tab and there is same problem. Template is not being used.
    thanks,
    Mainak

    You can alter the generated package body to include the following function in the header and footer sections.
    Header:
    PORTAL.wwv_headings.show_header(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_heading => 'Dynamic Page',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help',
    p_about_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.about');
    Footer:
    PORTAL.wwv_headings.show_footer(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help');
    where
    <PORTAL_DEMO> indicates application schema
    <PORTAL> indicates the name of the portal (normally this will be portal30 by default).

  • Why button can not call its script?

    I did very simple work: open Director MX 2004, click the
    button icon on the Tool Palette, and draw a button on the stage.
    Right click it and menu appear. Click "Scripts..." and script
    window opens. MouseUp() event function is there already. Write
    something in mouseUp(). Anything is OK. Put a breakpoint on some
    line.
    OK, then click menu Control-Play to run the movie. Click the
    button on stage. At this time, it ought to be broken on the
    breakpoint. But it didn't. The mouseUp() was not called!
    On the other hand, other controls are OK, such as Text,
    Shape, etc.. Only botton can not call its script. Is it a bug of
    Director MX 2004?

    It may be that you're creating flash component buttons. Try
    setting the tool palette to 'classic' mode (the dropdown at the top
    of the tool palette). The buttons you create once you've done this
    will be native director buttons.
    I've not really used flash component elements much at all so
    I can't offer advice as to why the mouseup isn't working with it.
    - Ben

Maybe you are looking for

  • Apple TV 1 is no longer showing up on my computer as a device? what do i do???

    My Apple TV 1 worked fine. I'm not sure if it stopped showing up under devices on my iMac before or after I downlaoded iTunes 10 or after I changed my router, but I also have to reset my network on the TV every day or so, as it randomly stops being c

  • IPod Video plays w/no audio

    Recently i downloaded videos and saved them to my iTunes. once i converted the video and syced into my iPod, you could not hear the music of that video and not on the iTunes. But the original video did play with audio. How do i get the converted vers

  • Editing Info

    Have just installed iTunes and copied my library to a new PC. All working fine except when right clicking a song title and selecting Get Info the Info tab page is greyed out. I cannot edit the song title or any other details. When I do the same for m

  • Javadoc - for other languages

    I recommended use of javadoc for documenting code in a new project; then heard the whole system will be constructed in a variety of languages, including C++ and possibly some C# (and Java ... I wrote as though that was assumed). So now I'm asked to f

  • Storing int variable in application scope

    hi all, I have a requirement where i need store some counter(int) in the application scope. Please tell me how to do that. I know create instance of userbean in application scope, but how to do for integer. Thanks in advance. -Manjunath