Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Lightbox not working in Firefox 3.5.3

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 4485 Views
  • stooni
    Avatar
    Community Member
    89 Posts

    Re: Lightbox not working in Firefox 3.5.3 Link to this post

    i have the same problem,

    For the record, issue was resolved by removing this from my top level Page.ss

    <?xml version="1.0" encoding="UTF-8"?>

    Now works fine.

    -----Stooni

  • pinkp
    Avatar
    Community Member
    168 Posts

    Re: Lightbox not working in Firefox 3.5.3 Link to this post

    This is a great fix! most of the lightbox pop ups didn't work for me until I removed that line as you said, bravo.

    "<?xml version="1.0" encoding="UTF-8"?> "

    But does this have any side effects? It must of been there for a reason?
    -Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Lightbox not working in Firefox 3.5.3 Link to this post

    That stupid XML doctype causes so many issues. It's the first thing I look for when debugging Javascript. I never use it.

    The plans for HTML5 show no indication that such a practice is forward-thinking at all. I think Silverstripe needs to ditch their support of the XML doctype in upcoming versions.

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: Lightbox not working in Firefox 3.5.3 Link to this post

    I think needs for utf translation ? Or?

    -------------Stooni

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Lightbox not working in Firefox 3.5.3 Link to this post

    From my experience, the doctype doesn't cause problems, as long as you stick to the standards. Since a XHTML document is actually a XML document, you should use <![CDATA[ tags to wrap JavaScript. Since IE6 will choke on this, the proper way to put inline code into XHTML is:

    <script type="text/javascript">
    /* <![CDATA[ */
       your code here
    /* ]]> */
    </script>

    This has worked for me with all common browsers...
    So either put all your Scripts into .js files or include inline scripts properly (like the above).

    4485 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.