ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Why is SafeCracker killing my jquery?!

February 28, 2013 10:20pm

Subscribe [1]
  • #1 / Feb 28, 2013 10:20pm

    iPixel

    64 posts

    I have a pretty basic SafeCracker form. This form is for product reviews.

    I have 1 link (See Reviews) which uses jQuery to toggle the product reviews into view.

    Once a user clicks See Reviews, below where the reviews are is another link (Write a Review). This link is supposed to toggle the div that has the safecracker form in it.

    Here’s the kicker, the second i add safecracker code all and i mean ALL jquery on that page just dies. And to make this more confusing. It ONLY kills my jquery when i’m logged into EE. If i log out, it works just fine.

    Any ideas what’s going on here!


    Edit: Just incase there was a jQuery conflict, i even tried using

    var $j = jQuery.noConflict();

    But that was useless.

  • #2 / Mar 01, 2013 9:22am

    iPixel

    64 posts

    Ok, finally got it working.

    The fix is adding this code

    safecracker_head="no"
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases