Cycle function in jQuery module won't work properly - photos exceeded page.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jacekk
Forum Members
Forum Members
Posts: 13
Joined: Fri Apr 23, 2010 7:24 am

Cycle function in jQuery module won't work properly - photos exceeded page.

Post by jacekk »

Hi, this is my first post ;-). I use CMSMS 1.6.7 two months.

Yesterday I found jQuery Module and installed it. But I already implemented jQuery functionality some time ago, independent from jQuery Module.

In both cases I have problem with jQuery. On my page I use cycle function from jQuery to display photo slideshow.

Problem description:
FireFox and IE – when cycle function is used at the end of page and page is displayed first time then SOMETIMES pictures exceed end of page.
Opera – the same as above and more serious problem,
- first photo of the slideshow is displayed properly (sometimes text is under photo) but all the rest photos are displayed as ‘compressed’ lines about 5mm height and with proper length. After refreshing page by F5 all is OK. But it is frustrating ;-).

This is URL to my page if somebody is willing to help me:
http://www.gmina-zukowo.ipns.pl

Thank you,
Jacek
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Cycle function in jQuery module won't work properly - photos exceeded page.

Post by Jos »

Two things I immediatly notice:

1- I get an error on the doctype declaration. It should be:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2- there are meta tags outside the , probably due to the {metadata} tag being in the wrong place in your template.

Don't know if this solves your issue, but it should be a start  ;)
jacekk
Forum Members
Forum Members
Posts: 13
Joined: Fri Apr 23, 2010 7:24 am

Re: Cycle function in jQuery module won't work properly - photos exceeded page.

Post by jacekk »

Thanks a lot for your answer.  :)
I've changed 1 point, but have a problem with understanding what do you mean in second point.
Could you give me an example of meta tag that couldn't be placed outside the ?
Probably it is a basic knowledge but I can't catch it now  ???
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Cycle function in jQuery module won't work properly - photos exceeded page.

Post by Jos »

It is this code in lines 6 - 9:

Code: Select all

<!-- Add code here that should appear in the metadata section of all new pages -->
<meta name="description" content="www.gmina-zukowo.ipns.pl to niezalezna strona poswiecona Gminie Żukowo." />
<meta name="keywords" content="Żukowo, Gmina Żukowo, stowarzyszenie, samorządność, Banino, gmina, samozadnosc, zukowo, gmina zukowo, chwaszczyno, express kaszubski, express, kaszubski, kaszuby, kaszubi, kaszubia, kartuzy, kartuski, somonino, gazeta, kaszubska, gazeta kaszubska, wiadomosci, informacje, aktualnosci, regionalne, regionalny, ogloszenia" />
<MARQUEE bgcolor='dark red' border='0' align='middle' scrollamount='2' scrolldelay='80' behavior='scroll' align='middle' width='100%' height='20' style='color:#660033; bold; font-size: 22'>Uwaga: wersja demo nowej strony o sprawach Gminy Żukowo. O naszych sprawach ;-). W tej chwili strona prawidłowo działa w wyższych rozdzielczościach ekranu z przeglądarkami Firefox 3.6 i Internet Explorer 8. Javascript musi być włączony. Pozostałe przeglądarki będą działać później. Przepraszamy.</MARQUEE>

The tag is in line 14, it should be before the above code.

Look in your page template and see what is between   and
jacekk
Forum Members
Forum Members
Posts: 13
Joined: Fri Apr 23, 2010 7:24 am

Re: Cycle function in jQuery module won't work properly - photos exceeded page.

Post by jacekk »

Thank you again!
You are great  ;D

I've cleaned meta tags you are point out.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Cycle function in jQuery module won't work properly - photos exceeded page.

Post by Jos »

Does it solve your issue already? didn't expect that  8)

You still use a wrong doctype declaration though... You shouldn't change EN in PL there.. This way you get a lot of unnecessary validation errors: http://validator.w3.org/check?uri=http% ... ne&group=0
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Cycle function in jQuery module won't work properly - photos exceeded page.

Post by Jos »

Could be, but that has nothing to do with the problem that jacekk had, for he doesn't use Gallery  :P
Post Reply

Return to “Modules/Add-Ons”