Foros de discusión

gallery-aui-calendar-datepicker-select - styles trash page

Howard Miller, modificado hace 12 años.

gallery-aui-calendar-datepicker-select - styles trash page

New Member Mensaje: 1 Fecha de incorporación: 8/03/12 Mensajes recientes
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!
thumbnail
Mayur Patel, modificado hace 12 años.

RE: gallery-aui-calendar-datepicker-select - styles trash page

Expert Mensajes: 358 Fecha de incorporación: 17/11/10 Mensajes recientes
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'

  modules: {
        'gallery-aui-skin-base': {
            fullpath: 'http://yui.yahooapis.com/gallery-2010.06.07-17-52/build/gallery-aui-skin-base/css/
							gallery-aui-skin-base-min.css',
            type: 'css'
        },
        'gallery-aui-skin-classic': {
            fullpath: 'http://yui.yahooapis.com/gallery-2010.06.07-17-52/build/
							gallery-aui-skin-classic/css/
							gallery-aui-skin-classic-min.css',
            type: 'css',
            requires: ['gallery-aui-skin-base']
        }
    }


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