Jump to:

23472 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Lightbox 2 and form validator problems

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 2744 Views
  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Lightbox 2 and form validator problems Link to this post

    Hi, having some JS problems. I want to use LightBox2 on a projekt. The projekt has a custom form on all pages.
    The validator of the form loads jsparty/prototype.js and that seems to conflict with lightbox/js/prototype.js or atleast if i don't output the form (deleting my $ContactForm from the template) all is fine and lightbox works.

    Can anyone tell me how to have both a form and a lightbox on same page?

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: Lightbox 2 and form validator problems Link to this post

    I have found a way to get lightbox working, by disabling JS validation for my ContactForm, but ofc. I will now have to find another solution for frontside validation.

    http://doc.silverstripe.org/doku.php?id=validator#disable_javascript_validation

  • SSadmin
    Avatar
    Community Member
    90 Posts

    Re: Lightbox 2 and form validator problems Link to this post

    i have noticed the same problem.
    the ss2.3 brunches using the Jquery 1.26. which was kinda old, as well as the validation plug-in.
    Not sure which version of Jquery of your lightbox2 will be using.
    If it's over 1.2.6. You probably could update the Jquery validate plug-in. update it to be compatiable with Jquery 1.3.2 then update your core Jquery.js file to be Jquery-1.3.2.js .

    You can have a try, see it works or not.. XD

    Alex

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: Lightbox 2 and form validator problems Link to this post

    Hi ALex,

    Thanks for your reply, i will have a look at this.
    I properly wont get around to it one of the first days though, but would be nice to know for future projects.

    /Thomas

    2744 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.