Jump to:

11003 Posts in 2735 Topics by 1824 members

All other Modules

SilverStripe Forums » All other Modules » Modal dialog ThickBox working with jquery (FYI)

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 2890 Views
  • kcd
    Community Member
    54 Posts

    Modal dialog ThickBox working with jquery (FYI) Link to this post

    I just finally worked this out and thought others may find it useful someday as Google failed me....

    I couldn't get lightbox working due to silverstripe's customised prototype.js (the conclusion I came to anyway) so I used thickbox

    PHP Code required:

    //Block prototype

    // DON"T load jquery_improvements
    //      Requirements::javascript('jsparty/jquery/jquery_improvements.js');
    // Load thickbox

    Prior to this I was running into errors such as $(domChunk) is null which in IE is Error: 'null' is null or not an object on Line: 22 or "$ is not a function"
    It is all about $ used by both prototype and jquery. Unfortunately jQuery.noConflict() doesn't seem to work with ThickBox.


    It should be possible to use the built in greybox (or whatever it is). Feel free to share your experiences with modal windows.

Page: 1
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.