Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

how nice does SilverStripe play with jQuery?


Go to End


12 Posts   9636 Views

Avatar
alexweber15

Community Member, 6 Posts

7 August 2008 at 7:48am

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!

Avatar
Josh

SilverStripe Developer, 65 Posts

7 August 2008 at 11:04am

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

Avatar
alexweber15

Community Member, 6 Posts

7 August 2008 at 11:27am

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 :)

Avatar
Willr

Forum Moderator, 5523 Posts

7 August 2008 at 1:00pm

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

Avatar
alexweber15

Community Member, 6 Posts

7 August 2008 at 1:33pm

nice! that's excellent news! :)

Avatar
erwanpia

Community Member, 63 Posts

26 September 2008 at 7:45pm

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

Avatar
jam13

121 Posts

26 September 2008 at 11:29pm

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.

Avatar
alexweber15

Community Member, 6 Posts

27 September 2008 at 1:49am

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!)

Go to Top