
ajaxrain.com是一个收集了超过640个Ajax和JavaScript效果的网站,每天都在增加中,对喜欢Ajax但又懒惰的人最适用了!
Archive for 八月, 2007
Ajaxrain
Posted by 小鹅 on 八月 31st, 2007
Flickr有繁体界面
Posted by 小鹅 on 八月 29th, 2007
Aptana IDE
Posted by 小鹅 on 八月 29th, 2007
Aptana是一个免费,开源JavaScript-focused的AJAX开发IDE。它的特点包括:
*JavaScript,JavaScript函数,HTML,CSS语言的Code Assist功能;
*Outliner(大纲):显示JavaScript,HTML和CSS的代码结构;
*支持JavaScript,HTML,CSS,PHP代码提示,包括JavaScript 自定函数;
*代码语法错误提示;
*支持Aptana UI自定义和扩展;
*支持跨平台;
*支持FTP/SFTP;
*调试JavaScript;
*支持流行AJAX框架的Code Assist功能:AFLAX,Dojo,JQuery,MochiKit,Prototype,Rico,script.aculo.us,Yahoo UI,Ext;
*Adobe AIR与iPhone开发工具。
PS:最新版本装上后就会自动设为中文界面的,不过选项设置里面一些还没完全汉化
ThinkPHP中以PHP方式创建FCKeditor
Posted by 小鹅 on 八月 24th, 2007
用JS在ThinkPHP中的模板文件来创建FCK是很简单的事,但用fckeditor.php来创建貌似挺麻烦的说,在Common\common.php中定义一个函数
function createFCK($value, $name='description', $toolbar='MyToolbar', $height=300){
$oFCKeditor = new FCKeditor($name);
$oFCKeditor->BasePath = 'fck目录'; //我试过将FCK目录放在网站公共目录和项目公共模版目录,是成功引入了文件,但就是会报错
$oFCKeditor->ToolbarSet = $toolbar;
$oFCKeditor->Height = $height;
$oFCKeditor->Value = $value;
return $oFCKeditor->CreateHtml();
}
但在模板中{$value|createFCK}用这样来创建并不能成功,会出现HTML页面套着HTML页面的情况,或是模板文件报错,我也查不出来为什么会这样,经过多次尝试,我找到另一个办法。
直接在一个Action类中定义一个方法,然后直接继承这个Action类就OK了
function createFCK($value, $name='description', $toolbar='MyToolbar', $height=300){
require_cache(WEB_ROOT.'/Public/fck/fckeditor_php5.php');
$oFCKeditor = new FCKeditor($name);
$oFCKeditor->BasePath = WEB_PUBLIC_URL.'/Js/fck/';
$oFCKeditor->ToolbarSet = $toolbar;
$oFCKeditor->Height = $height;
$oFCKeditor->Value = $value;
$this->assign('fckhtml', $oFCKeditor->CreateHtml());
}

Posted in
Tags:

