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.

Loading safecracker custom field tags with jquery Ajax.load

July 05, 2011 10:13am

Subscribe [2]
  • #1 / Jul 05, 2011 10:13am

    jamestowers

    53 posts

    I’m trying to load in a custom field via ajax but it isn’t working, it just loads the text of the tag like: {field:asset_files}, when it loads it also needs to know what post it applies to.

    Here’s what I’m doing:

    I have a standalone template called ‘old-uploader’ in the ‘assets’ template group, this just has {field:asset_files} in only, I then have a jquery command doing:

    $('#alt-upload').click(function(){
            $('#uploader').load('/assets/old-uploader');
            return false;
        });

    But this isn’t working, I expect it may not even be possible but thought someone out there may have don eit before.

    Thanks for any help I can get!

    James

  • #2 / Jul 06, 2011 3:45am

    John Henry Donovan

    12339 posts

    James,

    That method won’t work I believe. The field needs to exist in the form in the same template. Not knowing the reason why you wish to do this could I suggest using a jQuery a show/hide?

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

ExpressionEngine News!

#eecms, #events, #releases