论坛

主页 » Alloy UI » English

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Howard Miller
gallery-aui-calendar-datepicker-select - styles trash page
2012年3月8日 上午6:04
答复

Howard Miller

等级: New Member

帖子: 1

加入日期: 2012年3月8日

最近的帖子

I hope I am posting this in the right place AND I'm not a js expert so please bear with me...

I am trying to use the date picker according to these instructions - http://www.yuiblog.com/blog/2010/06/18/alloy-date-selector/

The picker works perfectly. Unfortunately, it seems to have some nasty side effects. It seems to seek out all the divs on my page and add all sorts of additional classes. These classes all have css which completely trashes my page. As an aside the css also takes ages to download every time the page is displayed.

I'm not really sure what's going on and/or why it is doing this. Is there some way that I can restrict it to only dealing with the date selector?

Many thanks!
Mayur Patel
RE: gallery-aui-calendar-datepicker-select - styles trash page
2012年3月13日 上午12:36
答复

Mayur Patel

等级: Expert

帖子: 295

加入日期: 2010年11月17日

最近的帖子

Hey Howard,

This is right place for this post,

As per my experience why this is happening because It's loading css and js from website that is 'yui.yahooapis.com'

 1  modules: {
 2        'gallery-aui-skin-base': {
 3            fullpath: 'http://yui.yahooapis.com/gallery-2010.06.07-17-52/build/gallery-aui-skin-base/css/
 4                            gallery-aui-skin-base-min.css',
 5            type: 'css'
 6        },
 7        'gallery-aui-skin-classic': {
 8            fullpath: 'http://yui.yahooapis.com/gallery-2010.06.07-17-52/build/
 9                            gallery-aui-skin-classic/css/
10                            gallery-aui-skin-classic-min.css',
11            type: 'css',
12            requires: ['gallery-aui-skin-base']
13        }
14    }


So, you can try to load all components from portlet itself else it will take time to load from site and it seems that is not the right way

Thanks