Php 目标="_“空白”;从iframe到我的聊天室的功能
我的链接聊天: 文件jsPhp 目标="_“空白”;从iframe到我的聊天室的功能,php,javascript,ajax,forms,iframe,Php,Javascript,Ajax,Forms,Iframe,我的链接聊天: 文件js window.onload = function() { // only needed becouse of a bug in ie8 rc1, there is no BG-image without any div manipilation by js Element.show('lay_pw'); Element.hide('lay_pw'); //------------------------------------------- $("login")
window.onload = function() {
// only needed becouse of a bug in ie8 rc1, there is no BG-image without any div manipilation by js
Element.show('lay_pw');
Element.hide('lay_pw');
//-------------------------------------------
$("login").onsubmit = function(){
if (!Element.visible('lay_pw')) $('pw').value='';
$('submit_button').disabled = true;
var myAjaxObj= new Ajax.Request(
"./?CheckUserName",
{
onSuccess: function(ajaxResult) {
if (ajaxResult.responseText==1) location.href='./?Chat';
else{
$('submit_button').disabled = false;
if (ajaxResult.responseText=='pw' || ajaxResult.responseText=='pw+invisible') {
Element.show('lay_pw');
if (ajaxResult.responseText=='pw+invisible') Element.show('lay_invisible');
Element.hide('lay_gender');
$("pw").focus();
} else {
if (ajaxResult.responseText=='blacklist') location.href="./?AfterBlacklistInsertion";
else if(!ajaxResult.responseText.empty()) alert(ajaxResult.responseText);
else {
$('username').value='';
$('username').focus();
$('coloruser').value='';
$('coloruser').focus();
}
}
}
},
postBody: $("login").serialize()
}
);
return false;
}
}
在这一页上
<form id="login" action="">
<input type="hidden" name="4f4940ef9f9874b3066833f786f06b2c" value="1327851439" />
<input type="text" name="username" id="username" value="" maxlength="100" />
<input type="submit" id="submit_button" name="go" value="enter" />
</form>
试举
<form id="login" action="" target="_blank">
显示链接
!
这显示了信息
致命错误:在第28行的/home/abdooo/public_html/vb/chat/index.php中找不到类“56f130145f599f85afe1d1cb0ebefe5e”
像这样的链接
如何从iframe中直接访问而不出现问题
并且可以在聊天中5秒后自动提交表单
<script type="text/javascript">
window.onload=function(){
window.setTimeout('document.login.submit()', 500)
}
</script>
window.onload=function(){
window.setTimeout('document.login.submit()',500)
}
使用版本
ET-chatv3.x
等待解决方案
谢谢你我道歉了,我是这个网站的新手,我在这里的经验是一些英语:(这与您的
target=\u blank
或iframe
无关。错误源被称为chat/index.php
脚本的第28行。看那里。可能需要在另一个URL参数胡言乱语之前添加chat&
。我试图得到的修改没有解决。)