• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PHP开发记录
PHP以及web前端(ajax,js,jquery等)
博客园 首页 新随笔 管理
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 83 下一页

2009年5月20日

通过xajax给fckeditor增加自动保存草稿功能
摘要: 使用的xajax版本是0.5.4beta,fckeditor版本是2.4.3,通过xajax给fckeditor增加自动保存草稿功能, 本文侧重于演示,使用sessionid记录对应关系,用户关闭浏览器後数据就会消失,在实际应用中可以使用数据库存储数据,修改保存函数autosave和调用函数loadcache 即可. <?php session_start(); define('ROOT_DIR',str_replace("/","/",dirname(__FILE__))); $cachedir = './cache/&# 阅读全文
posted @ 2009-05-20 10:09 corange 阅读(184) 评论(0) 推荐(0)
 
 

2009年5月19日

xajax如何获取fckeditor的值
摘要: xajax向html页面输出fckeditor是容易的,但是xajax如何获取fckeditor的值?在xajax的wiki上说了,但还是不明白,测试不成功,最后在fckeditor 2.4.3的_samples/html/sample08.html中找到了答案 function GetContents() { // Get the editor instance that we want to interact with. var oEditor = FCKeditorAPI.GetInstance('content1') ; // Get the editor conten 阅读全文
posted @ 2009-05-19 08:22 corange 阅读(131) 评论(0) 推荐(0)
 
 

2009年5月17日

xajax无刷新上传实例
摘要: http://www.corange.cn/archives/2008/10/2080.html主要的xajax结合php上传文件和保存数据的函数集中存放在 ./admin/includes/function.xajax.php 里面 在language.php文件载入并初始化xajax上传扩展 require_once(ROOT_PATH . '/includes/xajax/xajax.inc.php'); require_once(ROOT_PATH . '/admin/includes/function.xajax.php'); require_once 阅读全文
posted @ 2009-05-17 10:03 corange 阅读(160) 评论(0) 推荐(0)
 
 

2009年5月16日

ajax拖动层,保存层位置,这段代码是从网络人扒拉下来的(非XAJAX),使用类库prototype.js,感觉效果非常好
摘要: 下载地址 http://www.corange.cn//uploadfiles/ajax[1].select_22983.rar <script>window.onload = function(){getPage("http://localhost/xuexi/tuodong/xajaxcontent.htm?"+new Date().getTime(),"content");}</script> 注意文件路径,你下载演示时候可以看到 阅读全文
posted @ 2009-05-16 00:13 corange 阅读(100) 评论(0) 推荐(0)
 
 

2009年5月15日

让你的文本框(input)更加丰富多彩
摘要: http://www.corange.cn/archives/2008/10/2077.htmlCSS: <style type="text/css"> input.txtInput { background: #fff; background-repeat: no-repeat; background-position: 2px center; border:1px solid #999; padding:2px 2px 2px 20px; } input.searchInput {background-image: url(search.gif);} inp 阅读全文
posted @ 2009-05-15 00:03 corange 阅读(143) 评论(0) 推荐(0)
 
 
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 83 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3