Slider not rendering properly

jackmolnar1982's Avatar

jackmolnar1982

26 Aug, 2012 11:02 PM

Hi,

When I access a web page directly through it's URL it renders fine. When I access the page via a button or link I keep running into rendering issues, sometimes it just doesn't render the slider at all. Here is links to the two pages I'm talking about

If on the index page (below) and click on 'navigation' then 'admissions' - the admissions page slider doesn't render.
http://www.mobile.glit.edu/index.php

If you're on the admissions page (link below) and click on the home button in the upper left hand corner, the slider on the index page doesn't render.
http://www.mobile.glit.edu/admissions.php

Can you help me fix?

Thanks!

  1. Support Staff 1 Posted by Dmitry Semenov on 27 Aug, 2012 05:31 AM

    Dmitry Semenov's Avatar

    Hi,

    You shouldn't listen for document.ready() in jquery mobile, as it fires once when page loads, and this page may not be page with slider.

    Slider initialization code just never fires.

    Dmitry

  2. 2 Posted by jackmolnar1982 on 28 Aug, 2012 12:51 PM

    jackmolnar1982's Avatar

    I tried initializing the slider by using document.live('pageinit') and it works much better on iPhone but I'm still having rendering issues in Chrome and Android. It renders the slider but it seems like some attributes of the slider are skipped because it won't display text / images at the size specified and won't render the auto height correctly.

    If I resize the browser window in Chrome desktop for whatever reason it fixes and renders correctly.

    Any ideas what could be causing this?

  3. Support Staff 3 Posted by Dmitry Semenov on 29 Aug, 2012 11:24 AM

    Dmitry Semenov's Avatar

    Again, if slider shrinks it means that slider cannot be calculated because it's hidden when initialized. Read more here - http://help.dimsemenov.com/kb/royalslider-jquery-plugin-issues/slid...

    Dmitry

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac