【问题标题】:expression engine ajax call module function表达式引擎ajax调用模块函数
【发布时间】:2011-04-05 10:21:07
【问题描述】:

我需要你的帮助,我正在开发表达式引擎 2.x,并使用 uploadify 来通过 jaquery 方法上传文件。

在 js 代码中我需要提供上传 url 脚本。 并且不要如何调用我在 db 中注册的模块函数。 我试过 index.php?ACT=function_name 但没有追加 谢谢

$.ready(函数(){

$('.uploadify').uploadify({
    'swf'           : 'http://ee.statistic.local/index.php/themes/thrid_party/bmm_cloudupload/swf/uploadify.swf',
    'uploader'      : '**http://ee.statistic.local/index.php/index.php?ACT=108**',
    'checkExisting' : false,
    'debug'         : false,
    'cancelImage'   : 'http://ee.statistic.local/index.php/themes/thrid_party/bmm_cloudupload/uploadify-cancel.png',
    'folder'        : 'http://ee.statistic.local/index.php/tmp',
    'auto'          : false,
    'buttonText'    : 'Select Files',
    'fileTypeExts'  : '*.*',
    'queueID'       : 'upload-queue',
    'removeCompleted'   : false,
    'uploadLimit'       : 0,
    'multi'             : true,
    'transparent'       : true

  });

});

【问题讨论】:

    标签: jquery ajax module expressionengine


    【解决方案1】:

    您需要在模块安装期间将“上传器”方法插入到操作表中,这将为您提供要使用的操作 ID。

    http://expressionengine.com/user_guide/development/modules.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多