|
Is it possible to load another gallery from another page into the main page? Using your example:
using "onclick" can one target the #g1 div on another page to load?
Mike |
|
Mat is right; loading contents cross pages needs an Ajax call (if those pages are on the same domain; otherwise things are more complex) and mb.gallery doesn't support it yet. To do that you should init the gallery after placing your content in the gallery container with your custom function. I'm going to publish soon mb.gallery 2.0 with the capability of loading Flickr sets from any public Flickr account; but this will not solve your problem. |
|
OK, in that case the mb.Gallery component does not support that, customization would be required. |
|
DrMikey, If you're referring to to the mb.Gallery, the #g1 is a reference to the that you want to apply the mb.Gallery component to, so no, it's not done in this manner. Having said that, it appears as though you can achieve the outcome that you want by including your links in the <div> elements, not the onClick code. Like so:
See http://pupunzi.open-lab.com/mb-jquery-components/mb-gallery/ Thanks, but I am not actually asking about linking to specific images in another location. I am interested in loading the #g1 div within another page containing these images ( as mb-gallery does) into the containment div specified in the javascript, in this case, containment:'galleryPlace'. So I want my onclick event to load this div into the containment div as it does now but load it from another page. I guess, an ajax call.
(Mar 17 '10 at 02:16)
DrMikey
|


