dantheman wrote: > > Yes Jan in this current project that I am working on I am using the > ThickBox.js to have the users click on an CD album cover to open an html > file that contains a larger album image and a list of links to playable > MP3's all in the overlay box. > So I wanted to do the same thing on the carousel I have the albums there > and instead of when they click on the image and it get the overlay and > bigger image, I would like for it to call a specific html file and open it > in the overflay thick box. I think if you add that functionality to the > JCarousel many users will love it and since its already able to do this > with Thickbox I'm sure you could do it. I"m not that great at modifying > this stuff and understanding all the JQuery code to do it myself. > > anything else you might need? >
Just add a new column to the example_dynamic_ajax.txt: http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg;Flower1;http://example.com/path/to/file1.html| http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg;Flower1;http://example.com/path/to/file2.html| Then change the getItemHTML() function to: function getItemHTML(data) { var split = data.split(";"); var url = jQuery.trim(split[0]); var title = jQuery.trim(split[1]); var file = jQuery.trim(split[2]); return ' ' + file + '?height=300&width=300 ' + url + ' '; }; You may change the height and width in the href. Cheers, Jan -- View this message in context: http://www.nabble.com/Dynamic-Ajax-example-to-load-html-tf2693203.html#a7519629 Sent from the jCarousel mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
