Galleria and Infinite carousel and ajax
Posted
by John the horn
on Stack Overflow
See other posts from Stack Overflow
or by John the horn
Published on 2010-04-27T21:31:34Z
Indexed on
2010/04/27
21:33 UTC
Read the original article
Hit count: 479
Hy all you smart people
I am using Galleria plugin for a image gallery on a page this page is loaded in a frame page using ajax this is the ajax
$(document).ready(function() {
function loadTab(pageUrl)
{
$.ajax(
{
url: pageUrl,
cache: true,
success: function(load)
{
$("#tabcontent").empty().append(load);
}
});
}
$(document).ready(function()
{
$("#tab1").ready(function()
{
loadTab("acasa.html");
});
$("#tab1").click(function()
{
loadTab("acasa.html");
});
$("#tab2").click(function()
{
loadTab("desprenoi.html");
});
$("#tab3").click(function()
{
loadTab("servici.html");
});
$("#tab4").click(function()
{
loadTab("parteneri.html");
});
$("#tab5").click(function()
{
loadTab("galerie.html");
});
$("#tab6").click(function()
{
loadTab("contact.php");
});
});
});
On the frame page Im using Infinite gallery that uses <ul></ul> tags my problem is that offline, testing the page it work
s perfect but on the server(online) the gallery using galleria goes to the dogs. What I mean is that I have in stead of the gallery the a list of all the images.
Can enione help this pore nube ?
Thx for your time.
P.S. Can enyone help me find a better ajax script :D
© Stack Overflow or respective owner