WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
jquery.form.js file (5 posts)

  1. Byron
    Member
    Posted 3 years ago #

    This latest of CF 7 is using the latest version of jquery.form.js file (not the one standard delivered with WP). This new version of that file might cause issues with plugins that are using it. You may need to tweak your plugins to make them compatible, assuming WP will eventually upgrade to that version.

    Just an FYI.

    Byron

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Byron
    Member
    Posted 3 years ago #

    As a follow on...the issue with the latest version of jquery.form.js is that it requires you to put your JSON code in textarea tags if you're uploading files (this uses iframes and they're saying the textarea tags make that work better) like this:
    <textarea> ...JSON goes here... </textarea>

    If your server code doesn't wrap your JSON in the textarea, it just dies when it hits the client browser. Wrap it in textarea, and it works.

    The good news is that it appears that wrapping your JSON in the textarea still works with the old version of jquery.form.js that is delivered via WP. So, if you update your plugin to be compatible with the new version, it should still work with the old version as well...at least my testing has done so. I'd love to know if you find out different!

    Cheers to all!
    Byron

  3. Byron
    Member
    Posted 3 years ago #

    BTW, read all about the textarea issue in the jquery.form.js file at the source: http://jquery.malsup.com/form/#file-upload

    Hasta!
    Byron

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    FYI. jquery.form.js bundled with WordPress (old v2.02) is "deprecated".

    http://core.trac.wordpress.org/browser/tags/3.0.1/wp-includes/script-loader.php#L144

    It won't be updated and might be removed someday.

    The current version of jquery.form.js is 2.47 and the developer (Thank you, Mike Alsup!) is continuing development. Anyway using latest version is always safe.

  5. Byron
    Member
    Posted 3 years ago #

    Thanks for the info. I'll have to be on the lookout for when they remove it.

    BB

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic