我先有一个js方法动态加载fck
inner2 = "<div><input type='text' id='FCKeditor1' name='FCKeditor1' value='' style='display:none' />"+
"<input type='text' id='FCKeditor1___Config' name='FCKeditor1' value='' style='display:none' />"+
"<iframe id='FCKeditor1___Frame' src='../include/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar='Default'"+
" width='100%' height='200' frameborder='0' scrolling='no'></iframe></div>";
msg.innerHTML = inner2;
document.getElementById("ajax_maincontent").appendChild(msg);
document.getElementById("ajax_maincontent").appendChild(ajax_title);
document.getElementById("ajax_maincontent").appendChild(ajax_closeimg);
var s = new addButtonPanel();
document.getElementById("ajax_maincontent").appendChild(s.addButtonPanel());
document.getElementById("aButton_OK").focus();
if(document.getElementById("FCKeditor1").readyState=="complete")
{
document.getElementById("FCKeditor1").value=this.textareaValue;
}
现在问题是 我必须在 document.getElementById("FCKeditor1").readyState=="complete" 之前 先用alert一下
fck才加载到面板中 如果不 alert 则只加载面板不加载fck 这是什么问题呢
各位大侠 帮帮忙啊
inner2 = "<div><input type='text' id='FCKeditor1' name='FCKeditor1' value='' style='display:none' />"+
"<input type='text' id='FCKeditor1___Config' name='FCKeditor1' value='' style='display:none' />"+
"<iframe id='FCKeditor1___Frame' src='../include/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar='Default'"+
" width='100%' height='200' frameborder='0' scrolling='no'></iframe></div>";
msg.innerHTML = inner2;
document.getElementById("ajax_maincontent").appendChild(msg);
document.getElementById("ajax_maincontent").appendChild(ajax_title);
document.getElementById("ajax_maincontent").appendChild(ajax_closeimg);
var s = new addButtonPanel();
document.getElementById("ajax_maincontent").appendChild(s.addButtonPanel());
document.getElementById("aButton_OK").focus();
if(document.getElementById("FCKeditor1").readyState=="complete")
{
document.getElementById("FCKeditor1").value=this.textareaValue;
}
现在问题是 我必须在 document.getElementById("FCKeditor1").readyState=="complete" 之前 先用alert一下
fck才加载到面板中 如果不 alert 则只加载面板不加载fck 这是什么问题呢
各位大侠 帮帮忙啊
解决方案 »
- 关于jquery选择器$("")问题
- 如何实现用回车键代替某个按钮的click事件啊?
- 写正则表达式,动态验证输入问题
- 标签中间的 新增 这两个字怎么再另外一个网页中设置啊
- 都市圈地图缩放,高手请进
- [求助]控制iframe载入的方法的优化
- Javascript截取HTML代码问题,还有一点问题没解决。请ice_berg16(寻梦的稻草人) ,wuxinlangman(无心之尘) 进来看看。
- 我想实现当用户点击alert确定按钮后系统自动另外打开一个网页窗口怎样实现呢用其它的方法也行啊,请给出示例代码?
- JAVASCRIPT 请教
- 建立飞船打陨石类游戏的框架:包括html代码和陨石的js框架
- 如何用js脚本实现下载后关闭空白网页
- 无法调用ocx控件?急!!!
方法体
};
在之前我用alert一下 能够出来
但不用就不出来 我想知道下原因啊