Jump to:

1999 Posts in 1408 Topics by 613 members

Form Questions

SilverStripe Forums » Form Questions » Forms & JavaScript (jQuery)

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

Page: 1
Go to End
Author Topic: 645 Views
  • mexik
    Avatar
    Community Member
    15 Posts

    Forms & JavaScript (jQuery) Link to this post

    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 ?

  • jaredkipe
    Avatar
    Community Member
    16 Posts

    Re: Forms & JavaScript (jQuery) Link to this post

    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.

    645 Views
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.