• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support Legacy SmugMug Customization Jquery usable with Google hosted file?

Need some help with your New SmugMug Site?

Dgrin Challenges

They're back! Our latest series of Dgrin Challenges, the OOYCZ Challenges (Out of Your Comfort Zone), is a series of challenges to help you improve your photography by stepping out of your comfort zone and trying something new. Our challenge leader says "Consider it like a photography class with no diplomas.". Get started with OOYCZ by reading the Challenge Guide.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Looking for a little challenge? The Dgrin Mini-Challenges are a great way to challenge yourself. Take a moment to look through past winners and find the current Mini Challenge here.

From Around the Net

Enjoy a few of our favorite articles from around the 'net. If you have something you think we should see, post it here and we'll have a look.

Journeys

Landscapes

Sports

 
Thread Tools Display Modes
Old Mar-31-2012, 12:09 PM
#1
ZBlack is offline ZBlack OP
ZLB Photography
ZBlack's Avatar
Jquery usable with Google hosted file?
To be honest, I don't fully understand how it all works :P but after doing a little bit of reading it sounds like it's possible to do this, but maybe I'm wrong.

So is it possible to use some jquery javascript, primarily for a navbar with accordion type functionality, and have the link for the jquery library be the publicly hosted Google one, and then the appropriate script within my smugmug bottom section?

I believe the Google hosted is at this link, and it would be referenced in my header portion if I understand correctly.
Code:
https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js
__________________
-Zach
www.zlbphotography.com (Photography site)
www.zblackwood.com (All things me)
Old Mar-31-2012, 01:35 PM
#2
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by ZBlack View Post
To be honest, I don't fully understand how it all works :P but after doing a little bit of reading it sounds like it's possible to do this, but maybe I'm wrong.

So is it possible to use some jquery javascript, primarily for a navbar with accordion type functionality, and have the link for the jquery library be the publicly hosted Google one, and then the appropriate script within my smugmug bottom section?

I believe the Google hosted is at this link, and it would be referenced in my header portion if I understand correctly.
Code:
https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js
Yes, you can use jQuery in this manner in your Smugmug pages. Smugmug itself is built using the YUI framework (not jQuery) so it's more efficient if you don't have to load another framework, but it can certainly be done and some people are doing it.

In your particular example, that was including jQuery UI. You would also need to include a comparable version of the jQuery core library (which jQuery UI depends upon). And, it is wise to load them from the Google CDN because they are more likely to already be cached in the browser.
__________________
--John
Homepage Popular
JFriend's javascript customizations Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Mar-31-2012, 02:08 PM
#3
ZBlack is offline ZBlack OP
ZLB Photography
ZBlack's Avatar
Thanks for the timely response, that is very helpful. Playing around with some new design ideas, going to rethink some things.
__________________
-Zach
www.zlbphotography.com (Photography site)
www.zblackwood.com (All things me)
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
smugmug command line tool in python rutt SmugMug APIs, Hacks & Tricks 92 Sep-01-2008 05:09 PM
smugDAV - let's get this show on the road rteng SmugMug APIs, Hacks & Tricks 20 Feb-04-2008 03:11 PM
Google Sitemap? caseserve Legacy SmugMug Customization 20 Mar-06-2007 11:03 AM
Photoshop CS File Browser Sorting Question mkpatil Finishing School 1 Nov-29-2006 04:52 AM
Question about chaning the order of information that Google sees docwalker Mind Your Own Business 3 Jan-02-2006 03:38 AM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump