[ 3 posts ]

Gary

  • Username: Gary
  • Joined: Sat Jul 16, 2011 8:08 pm
  • Posts: 2
  • Location: St. Louis, MO USA
  • Offline
  • Profile

gallery-button - Including button.js?

Post Posted: Sat Jul 16, 2011 8:25 pm
+0-
I'm new to YUI (please bear with me) and I'm confused by the example for this gallery component. This example doesn't work for me. The following code fails:

Code:
 modules : {
                  'gallery-button' : {
                      fullpath : 'button.js',
                      requires : ['button-skin-xarno','widget','event-mouseenter','widget-child']
                },


It attempts to load button.js from my own domain. Am I supposed to host this file on my own server or can I reference it directly from Yahoo's CDN? If so, then how do I determine the URL from the CDN?

Anthony Pipkin

YUI Developer

  • Username: apipkin
  • Joined: Tue Nov 10, 2009 9:34 am
  • Posts: 68
  • Location: Atlanta, GA
  • Twitter: apipkin
  • GitHub: apipkin
  • Gists: apipkin
  • IRC: apipkin
  • YUI Developer
  • Offline
  • Profile

Re: gallery-button - Including button.js?

Post Posted: Sun Jul 17, 2011 11:20 am
+0-
The path to button.js should be relative to the html page or absolute from the domain, just like any other resource that you would pull into the page. If you are using the gallery-button, you simply need to add it to your use() request (no metadata is required) it will pull the latest from the gallery.

Gary

  • Username: Gary
  • Joined: Sat Jul 16, 2011 8:08 pm
  • Posts: 2
  • Location: St. Louis, MO USA
  • Offline
  • Profile

Re: gallery-button - Including button.js?

Post Posted: Sun Jul 17, 2011 9:19 pm
+0-
Ah, I see now. I didn't realize I could exclude the metadata. I got it working. Thanks.
  [ 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