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.

SafeCracker & AJAX => Anyone have an viable (read: it works) alternative to jquery.form.js

May 10, 2012 5:31pm

Subscribe [1]
  • #1 / May 10, 2012 5:31pm

    ChiefAlchemist

    913 posts

    Without getting into too many details, jquery.form.js seems to have some issues. The jQuery library loads. Even jquery.form.js loads. But I get a console error:

    .ajaxForm is not a function

    After a couple hours of tears and blood it seems (per Stack Overflow and others) that I’m not alone.

    If there’s a known quick fix, I’ll take it. Else I’m looking for a jquery plugin as an alternative to form.js.

    Anybody?

    Thanks in advance
    Mark

  • #2 / May 10, 2012 8:57pm

    Bhashkar Yadav

    727 posts

    Hi ChiefAlchemist,

    Can you try by passing following parameters into SafeCraker tags :

    safecracker_head=“no”

    include_jquery=“no”  (use external jquey library )

    datepicker=“no” (if you are not using EE’s datepicker)


    I hope, it would help you.

    Best Regards,

  • #3 / May 11, 2012 8:08am

    ChiefAlchemist

    913 posts

    Hi Bhashkar

    Thanks.

    Actually, what (eventually) solved the problem was moving the script / ready pair above the safecracker pair to below the safecracker pair. for some reason safecracker was interfering with the ajaxForm bing to the form. Moving that down the page resolved the problem.

    Again, thanks for your help.

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases