Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » how nice does SilverStripe play with jQuery?

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 7523 Views
  • alexweber15
    Avatar
    Community Member
    6 Posts

    how nice does SilverStripe play with jQuery? Link to this post

    hey all,

    I pretty much have the entire front-end f a website i'm working on ready using standard HTML and plenty of custom jQuery and i'm looking for a solution so i won't have to reinvent the wheel with my back-end and admin features.

    I'm currently playing around with the latest build but I was wondering how nice does SilverStripe play with jQuery?

    More exactly, I basically want to create some predefined sections and customize their look and feel with my own HTML, CSS and JS and then use SilverStripe mainly to act as my back-end... is this feasible?

    thanks!

  • Josh
    Avatar
    SilverStripe Developer
    65 Posts

    Re: how nice does SilverStripe play with jQuery? Link to this post

    Hi Alex,

    If you are just using jQuery for the display of the front-end of the website, then there is no reason why it shouldn't work with SilverStripe. Have fun!

    Josh

  • alexweber15
    Avatar
    Community Member
    6 Posts

    Re: how nice does SilverStripe play with jQuery? Link to this post

    thx for your reply Josh!

    after taking a more thorough look at SS i realized that as good as it seems, the fact that it uses scripatculous + proto just goes against the whole point of using jQuery...

    it would be pretty hectic too with all 3 of those libs loaded... i find that with just jQuery and some plugins (namely UI) you can get the same functionality as scriptaculous+prototype with much smaller code... but anyway thats not the point of this thread

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: how nice does SilverStripe play with jQuery? Link to this post

    Well for our own client sites we have started to move towards using jQuery as the CMS is being rewritten to use jQuery rather the prototype.

    If you do use jQuery at the moment things like form vaildation will not work, AJAX page comments etc, you just have to use Requirements::block() for the prototype files. Over the next releases starting with 2.3 the components of the system will be rewritten from prototype into jQuery

  • alexweber15
    Avatar
    Community Member
    6 Posts

    Re: how nice does SilverStripe play with jQuery? Link to this post

    nice! that's excellent news!

  • erwanpia
    Avatar
    Community Member
    63 Posts

    Re: how nice does SilverStripe play with jQuery? Link to this post

    Hi, like the idea too

    for those who can't wait, I have posted a hack of the gallery module that uses jquery lightbox

    http://www.webmasterbulletin.net/2008/09/silverstripe-gallery-jquery-module/307

  • jam13
    Avatar
    121 Posts

    Re: how nice does SilverStripe play with jQuery? Link to this post

    I assume you aware of JQuery's noconflict mode? I'm pretty sure I remember using this to prevent it clashing with prototype in the past.

  • alexweber15
    Avatar
    Community Member
    6 Posts

    Re: how nice does SilverStripe play with jQuery? Link to this post

    yeah im aware of noconflict but in an ideal world there wouldn't be the overhead of loading prototype to begin with! ;) (especially if you dont plan on using it at all!)

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