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.

Form Questions /

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

Forms & JavaScript (jQuery)


Go to End


2 Posts   1824 Views

Avatar
mexik

Community Member, 16 Posts

18 November 2011 at 11:24pm

Hello,

I have a kind of problem with any type of forms, i've checked it with user forms, polls, newsletter form ... any type of form that is on the website makes a problem with js ... it means that when I have any kind of form on the website it disables javascript so none of those elements like banners, sliders etc. works.

Simply: when I add a form to my page it turns off java script so banners and sliders won't work.

Does anyone knows how to repair that ?

Avatar
jaredkipe

Community Member, 16 Posts

22 November 2011 at 6:05am

It doesn't turn off Javascript, it is probably including a library that isn't playing nicely with your other jQuery stuff. Look in the 'Error Console' of your browser to see what exactly is going on.

Historically, I use jQuery.noConflict(); immediately after the import of jQuery in my templates. Then code that I write to use jQuery I spell out jQuery instead of using the $ symbol.