[ 4 posts ]

Phillip Ball

  • Username: phillipball
  • Joined: Fri Mar 19, 2010 12:00 pm
  • Posts: 7
  • GitHub: illiphilli
  • Gists: illiphilli
  • Offline
  • Profile

IE error in dom-style-min.js

Post Posted: Fri Sep 10, 2010 1:13 pm
+0-
Hello,

I'm getting an error in IE 8:

Message: 'undefined' is null or not an object
Line: 8
Char: 1087
Code: 0
URI: http://yui.yahooapis.com/3.2.0/build/do ... yle-min.js

My loader code:


<?php

include("../yui-phploader/phploader/loader.php");
$loader = new YAHOO_util_Loader("3.2.0");

//Turn off rollups
$loader->allowRollups = false;
//$loader->base = "../yui/build/";

//Specify YUI components to load
$loader->load("overlay");

//Output the tags (this call would most likely be placed in the document head)
echo $loader->tags();
?>

Seems to be isolated to calling:

var xy = Y.one("#doc").getXY();

This works fine in Firefox, Chrome, Safari, and works just fine in IE when loading the JS through yui3 loader...

Thoughts anyone?

Adam Moore

YUI Contributor

  • Username: adam
  • Joined: Wed Sep 03, 2008 11:16 am
  • Posts: 356
  • GitHub: apm
  • Gists: apm
  • Offline
  • Profile

Re: IE error in dom-style-min.js

Post Posted: Fri Sep 10, 2010 2:06 pm
+0-
The pholoader hasn't been updated for capability-based loading. You need to specify 'dom-style-ie' as an additional requirement

Phillip Ball

  • Username: phillipball
  • Joined: Fri Mar 19, 2010 12:00 pm
  • Posts: 7
  • GitHub: illiphilli
  • Gists: illiphilli
  • Offline
  • Profile

Re: IE error in dom-style-min.js

Post Posted: Mon Sep 13, 2010 6:03 pm
+0-
Ah great. Worked like a charm. Thank you.

I realize that the YUI PHP Loader project hasn't moved too much since its beta release in December last year. Are there any plans for it?

Phillip Ball

  • Username: phillipball
  • Joined: Fri Mar 19, 2010 12:00 pm
  • Posts: 7
  • GitHub: illiphilli
  • Gists: illiphilli
  • Offline
  • Profile

Re: IE error in dom-style-min.js

Post Posted: Thu Sep 30, 2010 12:23 pm
+0-
I spoke a bit too soon. Looks like php loader might not know about "transition", and IE's apparent lack of need for it.

If I pass just "yui" to php loader so I have the seed file on the page, then:
use("node","event-delegate","transition", function(Y)

All works well.

However if I pass the whole lot to php loader:
"yui","dom-style-ie","node","event-delegate","transition"

I get the exact same files loaded to the page, but transition-min-.js is also loaded.

I'm guessing that this is again due to that fact that since IE 8 doesn't support CSS transitions, the JS Loader will drop the file, where php loader doesn't know to (yet)?
  [ 4 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum