| Page 1 of 1 | [ 7 posts ] |
|
My application works fine when I am connected to internet. But when not it gives error at the point where I use variable YAHOO.
something like - var YAHOO = Y.YUI2 YAHOO.widget.....//this is where ff flags error. Any idea ? |
|
Since you are locally hosting the 2in3 project, you need to setup the loader to load the files locally like you are with the 3.x source. The README in the project repository has the config you need:
https://github.com/yui/2in3/ |
|
so, does that mean, when it is connected to internet, it pulls those libs automagically ?
|
|
Well, it won't know the difference between being online versus being offline.. It's one or the other.. Either it loads the JS files from our CDN, or it loads them locally from your server.
|
|
what do I put for base. I mean I have the js delivered from a server, even if not connected to internet.
below is my app structure Code: WebContent |-css |-js |-2in3/build/ |-yui |-myApp |-init.js |-other javascripts. YUI().use() is used in init.js. using ../2in3/build/ for base doesnt work |
|
Still not able to solve it. In firebug, when I put a breakpoint at x=0, scopeChain[1] has a YAHOO variable. Not sure what I am missing. but Y.YUI2 is undefined
Code: YUI({configuration for offline use} ).use("...module list", function(Y){ var x=0;//breakpoint here in firebug. }); |
Alberto SantiniYUI Contributor
|
Hello yui-mac.
I am not sure but if "base" should be a relative or absolute path. I second Dav's suggestion and add another config example: http://developer.yahoo.com/yui/3/yui/#loader Regards, IceBox |
| Page 1 of 1 | [ 7 posts ] |
| 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 |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group