1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    12
    Vote Rating
    0
    rgraff is on a distinguished road

      0  

    Default ieDeferSrc and SSL_SECURE_URL problem

    ieDeferSrc and SSL_SECURE_URL problem


    I'll describe my problem and solution in case some others are having the same problem with YAHOO.ext.EventManager.ieDeferSrc and YAHOO.ext.SSL_SECURE_URL.

    In EventManger.js (0.40.0 and maybe earlier?) there's this line:

    Code:
    document.write('<s'+'cript id="ie-deferred-loader" defer="defer" src="' +
                          (YAHOO.ext.EventManager.ieDeferSrc || YAHOO.ext.SSL_SECURE_URL) + '"></s'+'cript>');
    ieDeferSrc is by default undefined and YAHOO.ext.SSL_SECURE_URL is 'javascript:false;'.

    IE, for me, doesn't see "javascript:false" as a secure url and gives a warning.
    To avoid that warning, I set YAHOO.ext.SSL_SECURE_URL to the URL of clear pixel gif. If I don't also set YAHOO.ext.EventManager.ieDeferSrc to something else, IE tries to load and execute the gif as a script (Thanks, Microsoft!) which results in another error.

    So either the documentation should warn about changing YAHOO.ext.SSL_SECURE_URL or ieDeferSrc should have it's own default. The later seems better to me.

    After loading yui-ext-core, this is what I do to avoid all errors:

    Code:
    YAHOO.ext.EventManager.ieDeferSrc='/js/defer.js';
    YAHOO.ext.SSL_SECURE_URL='/i/p/clear.gif';
    YAHOO.ext.BLANK_IMAGE_URL='/i/p/clear.gif';
    defer.js is a single line: 'false;'

    -Robert

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    That's great Robert. Any chance you would like an ID to add this to the FAQ?

    If not I can paste it in.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    12
    Vote Rating
    0
    rgraff is on a distinguished road

      0  

    Default


    I will do that.

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    I've added you. Thank you.

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    brondsem is on a distinguished road

      0  

    Default


    First, can this documentation be added to the YAHOO.ext.EventManager documentation? That's where most people will look first when they have problems with EventManager.onDocumentReady.

    Second, I can't find the "FAQ" anywhere anyway.

    Thanks

  6. #6
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    See this - it's not widely publicized, because there isn't a whole lot there yet.
    http://yui-ext.com/manual/contents

  7. #7
    Ext User lgerndt's Avatar
    Join Date
    Apr 2007
    Location
    Sunnyvale, CA
    Posts
    48
    Vote Rating
    0
    lgerndt is on a distinguished road

      0  

    Thumbs up Thank you Robert!

    Thank you Robert!


    Dear Robert,

    Thank you so much for posting you solution, which worked when the others didn't. I've been working on this bug for so long it started to become, as my colleague said, 'my precious'. thanks again!

Similar Threads

  1. SSL and YAHOO.ext.EventManager.ieDeferSrc
    By paultyng in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 2 Nov 2006, 4:59 AM

Thread Participants: 4

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi