Results 1 to 7 of 7

Thread: ieDeferSrc and SSL_SECURE_URL problem

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    12
    Vote Rating
    0
      0  

    Default 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
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      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
      0  

    Default

    I will do that.

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    I've added you. Thank you.

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
      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
    3
      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
      0  

    Thumbs up 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •