主题: ajax提交获取不到内容 |
作者: mm, 发布日期: 2012-05-23 11:43:55, 浏览数: 3755 |
var editor;
$.xload('$bbs[view_url]js/kindeditor/kindeditor-min.js', "$bbs[view_url]js/kindeditor/lang/zh_CN.js", function() { KindEditor.basePath = '$bbs[view_url]js/kindeditor/'; editor = KindEditor.create('textarea[name="message"]', { resizeType : 1, allowPreviewEmoticons : false, allowImageUpload : true, urlType : 'domain', uploadJson: '{$bbs[app_url]}{$bbs[urlrewrite]}post-uploadimage-fid-$fid-ajax-1.htm', allowFileManager : true, fileManagerJson: '{$bbs[app_url]}{$bbs[urlrewrite]}post-manager-fid-$fid-ajax-1.htm', items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons', 'image', 'link'] }); }); $('#thread_create_submit').click(function() { //同步数据后可以直接取得textarea的value editor.sync('textarea[name="message"]'); $('div.alert').remove(); $('#thread_create_notice').html('正在提交,请稍后 ...').show(); var postdata = $("#thread_create_form").serialize(); alert(postdata); |
作者: Roddy, 发布日期: 2012-07-04 13:06:01 |
回复 |