1. #11
    Sencha User bruijn88's Avatar
    Join Date
    May 2008
    Posts
    66
    Vote Rating
    2
    bruijn88 is on a distinguished road

      0  

    Default Found problem

    Found problem


    Hi all!

    I've ran into the same problem quite shorty after i decided to give air/ext a spin and wantend to make 'hello world', growl-style..
    Even though is't safe to say that hello world doesn't exactly need any 1.5 functionalities, it felt a bit silly to use an older version just because a background won't show..

    So after some digging it turned out that adobe made some changes in the security model of 1.5. In this case specifically in the HTMLLoader.
    A property 'placeLoadStringContentInApplicationSandbox' now decides if loaded content is put in the application sandbox, and defaults to 'false'. This has to be set to 'true' to allow it to load the stylesheet.

    I applied a quick fix to solve this problem.
    Notify.js
    Code:
    <snip>
    transparent: true,
    alwaysOnTop: true,
    trusted: true,            // added this property
    extraHeight: 22,
    hideDelay: 3000,
    <snip>
    NativeWindow.js
    Code:
    <snip>
    options.transparent = this.transparent;
    
    this.loader = window.runtime.flash.html.HTMLLoader.createRootWindow(false, options, false);
    // if content is trusted, put content in application sandbox
    if(this.trusted) {
        this.loader.placeLoadStringContentInApplicationSandbox = true;
    }
    
    if (this.file) {
    <snip>
    That did the trick.
    Now you can use:
    Code:
    var growl = new Ext.air.Notify({
        msg: 'Hello World',
        extAllCSS: 'path/to/ext-all.css'
    });
    Of course this is not going to solve the problem for Ext.Player (i didn't look at that), but a solution sould be similar i guess. I'm also not sure if the trusted property is in the right place. But this was the first thing a could come up with. Hope this was helpful..

    Zogs.

  2. #12
    Ext User
    Join Date
    Nov 2007
    Location
    Ghana
    Posts
    2
    Vote Rating
    0
    Amazingfada is on a distinguished road

      0  

    Thumbs up Config Options

    Config Options


    Hi all,
    I had the same problem with an app I'm working on, though the post in here is wonderful and the problem was solved I still couldn't get mine to work, Until I found out the blunder.

    Quote is:

    Here is mine:

    var sample = new Ext.air.Notify({
    msg: 'New Mail',
    icon: 'icons/new.png',
    extAllCss: 'lib/extjs/resources/css/ext-all.css'
    });

    I even tried:

    var sample = new Ext.air.Notify({
    msg: 'New Mail',
    icon: 'app:/icons/new.png',
    extAllCss: 'app:/lib/extjs/resources/css/ext-all.css'
    });
    I copied this above code to try it but still didn't get to work, only to find out the extAllCss is a wrong config option instead is case sensitive as extAllCSS. Note "extAllCss: 'app:/lib/extjs/resources/css/ext-all.css' " should read "extAllCSS: 'app:/lib/extjs/resources/css/ext-all.css' "

    I spent 2 days in figuring this out, hope it helps some one.

    Thank you.

  3. #13
    Sencha Premium Member
    Join Date
    Aug 2010
    Posts
    21
    Vote Rating
    0
    jdogresorg is on a distinguished road

      0  

    Default Same issue with background not showing up

    Same issue with background not showing up


    I am having some issues with getting the notify window background to display. I have updated extAllCSS to point to 'app:/lib/ext/resources/css/ext-all.css' but it is not loading the stylesheet.

    The stylesheet loads no problem in the main application window, but when trying to load it in the Notify window it doesn't seem to load.... I have reviewed all the suggestions on this thread with no luck...... any ideas?

    I am running the Ext 3.0 version.

    Please help.

  4. #14
    Sencha Premium Member
    Join Date
    Aug 2010
    Posts
    21
    Vote Rating
    0
    jdogresorg is on a distinguished road

      0  

    Default


    issue was solved by adding following line to NativeWindow.js

    this.loader.placeLoadStringContentInApplicationSandbox = true;