解决方案 »
- php中xpath要安装哪个插件???
- 这个警告不知道怎么解决mysql_fetch_array() expects parameter 1 to be resource
- Zend studio9 + zend server 如何设置才能调试?高分求教!
- 通过ajax来呈现的html代码,如何获取?
- 〈〈〈页首横幅广告打开。然后会自动关闭JS怎么写〉〉〉
- php里如何知道一个变量的格式?
- 请问在下述情况下如何传递数组?
- 请教一个关于php操作access的问题,请进
- 懂LINUX下重编译安装PHP的过来帮忙
- 文字录入*高手请进*高分相送 help me !!!
- 从mysql中取出图片来rel使用遇到问题
- php get 改 post的疑问
2.$('#blog_content').val() ,你确定值在blog_content里
UE.getEditor('editor').getContent() 用这看看
不过ajax的post提交为啥跳转了,还在地址栏转值呢?
http://blog.local/index.php/admin/blog_c/insertBlog?blog_title=&select_category=%E8%AF%B7%E9%80%89%E6%8B%A9%E6%97%A5%E5%BF%97%E5%88%86%E7%B1%BB&blog_content=%3Cp%3Eaa%3Cbr+%2F%3E%3C%2Fp%3E
比如 jquery包的,
$.post(url,{blog_content:....,select_category:...},function(){
alert('完成')
})
.post(url,{blog_title:UE.getEditor('editor').getContent()},function(d){});OK?
$.post("<?php echo site_url('admin/blog_c/insertBlog') ?>",
{blog_title:blog_title,blog_category:blog_category,blog_content:blog_content},
function(data){
$(".category_list").html(data);
});
提交的一顺点我看间firebug里有提交请求,但是,是红色的,跳转后就看不见了
我就先看 firebug 提交到的 地址有没有错 还有到底有底提交到没
之前弄其他编译器的时候 也出现过同样的问题的。
最后就是查看前后代码 哪里写错了 才解决的。。
赋值那里我现在比较蛋疼研究研究
不过ajax的post提交为啥跳转了,还在地址栏转值呢?
http://blog.local/index.php/admin/blog_c/insertBlog?blog_title=&select_category=%E8%AF%B7%E9%80%89%E6%8B%A9%E6%97%A5%E5%BF%97%E5%88%86%E7%B1%BB&blog_content=%3Cp%3Eaa%3Cbr+%2F%3E%3C%2Fp%3E
UE.getEditor('editor').getContent() 这句话是写在 js 里面吗? 我写这个怎么也包空呢?求大虾指教.
alert(conte);
我在js里写的取不到啊..