[ 3 posts ]

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Loader (yui3 git master): comboBase config is ignored

Post Posted: Wed Feb 22, 2012 5:34 am
+0-
I pre-load part of YUI3 (3.5.1pre) using a script tag:

<script src="build/yui/YUI-3.5.1pre-raw.js" type="text/javascript"></script> (*)

Then I start my code using

YUI({
root: "",
base: "build/yui/3.5.1/build",
comboBase: "/combo/combo.php?",
combine: true,
fetchCSS: true,
...
}, ....

but YUI ignores my comboBase setting (which would be an http://localhost/... URL) and asks for

http://yui.yahooapis.com/combo?...

when loading additional modules (not part of the pre-loaded file).

Y.Env.meta.comboBase is set to "http://yui.yahooapis.com/combo?".


PS: TO YAHOO ADMINS - Could you PLEASE allow the posting of just a FEW lines of code? The forum currently doesn't allow the use of the code formatting tag at all!!!! (tells me to use "pastie" for "LARGE BLOCKS OF CODE" if there is ANY code-tag, even if it surrounds *NOTHING*.)


(*) I built the pre-loaded 3.5.1 file using
http://yuinightly.kludg.com/yui?yui/yui.js&dump/dump.js&oop/oop.js&event-custom-base/event-custom-base.js&event-custom-complex/event-custom-complex.js&intl/intl.js&cookie/cookie.js&dom-core/dom-core.js&dom-base/dom-base.js&dom-style/dom-style.js&dom-screen/dom-screen.js&selector-native/selector-native.js&selector/selector.js&node-core/node-core.js&node-base/node-base.js&event-base/event-base.js&event-delegate/event-delegate.js&event-synthetic/event-synthetic.js&event-mousewheel/event-mousewheel.js&event-mouseenter/event-mouseenter.js&event-key/event-key.js&event-focus/event-focus.js&event-resize/event-resize.js&event-hover/event-hover.js&event-outside/event-outside.js&node-event-delegate/node-event-delegate.js&pluginhost-base/pluginhost-base.js&pluginhost-config/pluginhost-config.js&node-pluginhost/node-pluginhost.js&node-screen/node-screen.js&node-style/node-style.js&querystring-stringify-simple/querystring-stringify-simple.js&io-base/io-base.js&datatype-xml-parse/datatype-xml-parse.js&datatype-xml-format/datatype-xml-format.js&io-xdr/io-xdr.js&io-form/io-form.js&io-upload-iframe/io-upload-iframe.js&queue-promote/queue-promote.js&io-queue/io-queue.js&json-parse/json-parse.js&json-stringify/json-stringify.js&yui-throttle/yui-throttle.js

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Re: Loader (yui3 git master): comboBase config is ignored

Post Posted: Wed Feb 22, 2012 5:57 am
+0-
UPDATE: It seems even within the error there is yet another one. When it tries to load CSS files it attempts to use the URL http://yuinightly.kludg.com/yuiresize-b ... e-base.css instead of http://yuinightly.kludg.com/yui?resize- ... e-base.css (the question mark after the ".../yui?" is missing).

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Re: Loader (yui3 git master): comboBase config is ignored

Post Posted: Wed Feb 22, 2012 6:03 am
+0-
UPDATE 2: When I just did a manual Y.use("imageloader",null) in the Firebug console the correct comboBase was used. Also, when I don't load the pre-made combo-file but instead use "http://yuinightly.kludg.com/seed?filter=raw" my own comboBase is used - SOMETIMES. It loaded the first few modules from MY comboBase, and later switched to http://yuinightly.kludg.com/yui? as base. Huh???

I should handle the loader with great care, behaves like a fragile egg (here) :) ;-(
  [ 3 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