[ 2 posts ]

Eugene de Lange

  • Username: DelNaga
  • Joined: Wed May 23, 2012 11:43 pm
  • Posts: 1
  • Offline
  • Profile

YUI 3.5.0 local include "Y.DataTable is not a constructor"

Post Posted: Thu May 24, 2012 12:10 am
+0-
Hi fellow developers.

I have a bit of a problem using a local include of YUI 3.5.0. We use an Ajax content loader framework to load requested files instead of redirecting each time to a new page, we just load it as content into an already loaded default.aspx page.

Because of this aspect we have to manually fire the postload javascript for each page that gets loaded. Now on my home page I load 3 grids, and using the YUI 3.5.0 seed, it works perfectly, however, because of bandwidth problems in South Africa, out client has requested that we speed this up, and my only solution is to locally include the YUI 3.5.0 library.

However, if I use a local include of the file, my javascript postload try catch gives an error of "Y.DataTable is not a constructor". Like I said it works perfectly using the seed, but the local include gives this error.

I have done the standard debug, alerting Y, and Y.DataTable and both alerts return [Object object].

Does anyone know if there are differences in the seeded YUI library, and the local YUI library, or should I include more than just the '/yui/build/yui/yui-min.js' file?

I am also looking for an answer, but because of a closing deadline, I would really appreciate any insight into this.

Thank you all!

Luke Smith

YUI Contributor

  • Username: lsmith
  • Joined: Thu Aug 28, 2008 7:50 am
  • Posts: 514
  • Location: Sunnyvale
  • Twitter: ls_n
  • GitHub: lsmith
  • Gists: lsmith
  • IRC: ls_n
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: YUI 3.5.0 local include "Y.DataTable is not a constructo

Post Posted: Thu May 24, 2012 11:54 am
+0-
alerting Y.DataTable in 3.5.0 should alert '[object Function]'

So it sounds like not all of the modules you're after are there. What's your use() statement look like? A bit of code would be helpful.
  [ 2 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