LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 507|回复: 3

请教关于浏览器以及PHP代码的问题。谢谢!!

[复制链接]
发表于 2005-3-5 02:20:29 | 显示全部楼层 |阅读模式
最近学习服务器设置,安装了一些PHP程序在本机调试。可是发现有一些文章,论坛程序在我的浏览器上无法输入任何内容,
例如9466文章系统,发布新文章的时候,标题可以填写,但是内容栏无法输入内容,点击没有任何反映,输入区域不可用。
打开javascript控制台,发现如下错误提示:




Inline script thread
Error:
name: TypeError
message: Statement on line 3: Expression evaluated to null or undefined and is not convertible to Object: frames.message
Backtrace:
  Line 3 of inline#5 script in http://127.0.0.1/9466/admin.php?filename=article&action=add
    frames.message.document.designMode = "On";



Event thread: onclick
Error:
name: TypeError
message: Statement on line 16: Expression did not evaluate to a function object: window.opener.frames.message.document.execCommand
Backtrace:
  Line 16 of inline#1 script in http://127.0.0.1/9466/editor.php?action=upfile&do=1
    window.opener.frames.message.document.execCommand("InsertImage", false, imagePath);
  In unknown script
    Addpic("http://127.0.0.1/9466//upfiles/2005/EmCORE-i6022.jpg", "");
  At unknown location
    {event handler trampoline}


Inline script thread
Error:
name: TypeError
message: Statement on line 3: Expression evaluated to null or undefined and is not convertible to Object: frames.message
Backtrace:
  Line 3 of inline#5 script in http://127.0.0.1/9466/admin.php?filename=article&action=add
    frames.message.document.designMode = "On";



Event thread: onclick
Error:
name: TypeError
message: Statement on line 212: Expression did not evaluate to a function object: frames.message.document.execCommand
Backtrace:
  Line 212 of inline#4 script in http://127.0.0.1/9466/admin.php?filename=article&action=add
    frames.message.document.execCommand(command, true, option);
  In unknown script
    FormatText("cut");
  At unknown location
    {event handler trampoline}


Event thread: onclick
Error:
name: TypeError
message: Statement on line 212: Expression did not evaluate to a function object: frames.message.document.execCommand
Backtrace:
  Line 212 of inline#4 script in http://127.0.0.1/9466/admin.php?filename=article&action=add
    frames.message.document.execCommand(command, true, option);
  In unknown script
    FormatText("unLink");
  At unknown location
    {event handler trampoline}

浏览网页没有问题,只是在填写内容时出现这个问题。
希望DX们可以指点一下。
 楼主| 发表于 2005-3-5 02:22:43 | 显示全部楼层
对了,在我的机器上还有一些其它的文章、论坛程序也出现了这种错误。
JAVA已经安装。
回复 支持 反对

使用道具 举报

发表于 2005-3-5 10:46:11 | 显示全部楼层
是不是所见即所得的发布编辑器?
如果是的话,很可能因为编辑器使用了不合W3C规范的JavaScript脚本代码或DHTML语法格式,而这些代码或格式在MS IE 5.5+ 里支持
因此如若确实需要使用这种编辑器,则只能使用IE操作这个发布系统后台。若想兼顾IE和Mozilla,最简单的方法是去掉编辑器,改用最普通的textbox代替
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-5 12:03:40 | 显示全部楼层
看来是编辑器的原因,再请教一下,如果希望进行图文编排的文章发布,哪一个程序比较好?
现在为一个可以比较方便编辑图文的PHP程序困扰。
其实功能和linuxsir的论坛发布一样就可以了,也不用很复杂的,但是找了很多新闻,文章程序,但是在插入图片,上传,图片等方面都不理想;或者出现编辑器无法使用的情况。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表