Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorrtfhsd
    • CommentTimeJan 6th 2009
     
    Hello All!
    So, i've been plugging away at plogger and it all finally, finally has come together and works the way I want...works on Firefox.
    I thought i was in the clear until someone using another browser tried to look at the page...alas...IE and Safari won't display the slideshow.

    www.rtfhsd.org/ploggerb3/test2.php

    i can post/send any other information that may be helpful!

    Please help me with this!
    Thank you!!!
    •  
      CommentAuthorsidtheduck
    • CommentTimeJan 6th 2009
     
    rtfhsd,

    Just a quick look and it could be this line of code"
    slides.update();2

    I don't know what that '2' is doing in there or if it would be causing an issue.
    • CommentAuthorrtfhsd
    • CommentTimeJan 6th 2009
     
    Hey sidtheduck!
    thanks for your quick reply!
    I removed the "2" (I have no idea why it's in there...I'm learning as I go and probably just deleted something somewhere and added a "2" for luck?? lol).
    Nothing changed.
    However, in Safari, it reports 1 error on the page and when I look under "activity" I see this:

    http://rtfhsd.org/crossdomain.xml not found (this one is in RED)

    http://www.rtfhsd.org/ploggerb3/js/scripts.js not found (these three are in grey)
    http://www.rtfhsd.org/ploggerb3/Scripts/AC_ActiveX.js not found
    http://www.rtfhsd.org/ploggerb3/Scripts/AC_RunActiveContent.js not found


    Ta!
    •  
      CommentAuthorsidtheduck
    • CommentTimeJan 6th 2009
     
    Don't know where the crossdomain.xml is coming from right now, but the latter 3 errors are found in this in your head:
    <script language="javascript" type="text/javascript" src="js/scripts.js">
    [...]
    <script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

    The first script should have a leading slash (/) like so:
    <script language="javascript" type="text/javascript" src="/js/scripts.js">
    And the other 2 I can't seem to find one your site (plus the AC_RunActiveContent.js script causes an error on the main page of your site as well).
    • CommentAuthorrtfhsd
    • CommentTimeJan 6th 2009
     
    Adding the "/" doesn't make a difference.
    To make it simpler, you can just look at the pre-installed index.html :

    www.rtfhsd.org/ploggerb3/index

    It works in FIREFOX, not in IE or Safari.
    hmmmmmm...
    •  
      CommentAuthorsidtheduck
    • CommentTimeJan 6th 2009
     
    rtfhsd,

    It also looks like you edited your slideshow.js file. Is this correct?

    The reason I ask is IE is having issue with this line (line 197):
    //--------------------------------------------------
    this.play = function(timeout)
    //--------------------------------------------------

    Which was originally a fully defined function:
    //--------------------------------------------------
    this.play = function(timeout) {
    // This method implements the automatically running slideshow.
    // If you specify the "timeout" argument, then a new default
    // timeout will be set for the slideshow.

    // Make sure we're not already playing
    this.pause();

    // If the timeout argument was specified (optional)
    // then make it the new default
    if (timeout) {
    this.timeout = timeout;
    }

    // If the current slide has a custom timeout, use it;
    // otherwise use the default timeout
    if (typeof this.slides[ this.current ].timeout != 'undefined') {
    timeout = this.slides[ this.current ].timeout;
    } else {
    timeout = this.timeout;
    }

    // After the timeout, call this.loop()
    this.timeoutid = setTimeout( this.name + ".loop()", timeout);
    }

    //--------------------------------------------------


    If you don't want the play function, edit your file to this:
    //--------------------------------------------------
    this.play = function(timeout) { }
    //--------------------------------------------------

    but really you shouldn't have to edit the slideshow javascript library at all, just remove the function that is calling it (the "slides.play();" which is still in your code).

    Basically, Firefox is just skipping over the syntax error and loading the rest of the code. It seems that IE, Safari, and Google Chrome hit the syntax error and stop loading the javascript, which causes the slideshow to not work.
    • CommentAuthorrtfhsd
    • CommentTimeJan 6th 2009
     
    And this is why people like me are dangerous!
    i DID edit the slideshow.js file as you suspected; it was my attempt to produce a slideshow that did not automatically play - I wanted the user to manually advance the slides.
    (I believe I posted a discussion asking for help on it, but had no replies, so i just began hacking away...yikes!).

    Returning the slideshow.js to it's original and removing the slides.play() call in slideshow.php FIXED the problem! And now the slideshow does not automatically play.

    Thank you SOO much sidtheduck!!!

    now is there any way to keep the slideshow from resizing depending on whether or not a photo is landscape or portrait? should i open another discussion??

    Serious thanks go to yoU!

    Kiefer
    •  
      CommentAuthorsidtheduck
    • CommentTimeJan 6th 2009
     
    Posted By: rtfhsdnow is there any way to keep the slideshow from resizing depending on whether or not a photo is landscape or portrait? should i open another discussion??
    So you want the height to remain constant? You should be able to fix the CSS height for '#picture-holder' to the max thumbnail size and it should fix it for you (there will just be more space below a landscape picture).
    • CommentAuthorrtfhsd
    • CommentTimeJan 6th 2009
     
    yes! that is exactly what I want..
    SPOT ON!

    Thank you!
    • CommentAuthorrtfhsd
    • CommentTimeJan 6th 2009
     
    Hmm...well, that's what I want to do, but my powers of doing are clearly limited.
    I am not sure where/how to do this.
    :(