在后台运行PHP脚本
我有一个运行的弹出窗口,它保存了我的视频。另一个窗口打开,让我知道窗口已被保存,但它相当丑陋。有没有办法在后台运行它并打开一个javascript弹出窗口或一个我可以摆脱的固定位置div 我试过的都没用。我真的不知道该去哪里。以下是我的点击代码:在后台运行PHP脚本,php,database,video,background,save,Php,Database,Video,Background,Save,我有一个运行的弹出窗口,它保存了我的视频。另一个窗口打开,让我知道窗口已被保存,但它相当丑陋。有没有办法在后台运行它并打开一个javascript弹出窗口或一个我可以摆脱的固定位置div 我试过的都没用。我真的不知道该去哪里。以下是我的点击代码: onclick="var my_window = window.open('/saving.php?token=<?=$token?>', 'mywindow1', 'width=300,height=200,toolbar=0
onclick="var my_window = window.open('/saving.php?token=<?=$token?>', 'mywindow1', 'width=300,height=200,toolbar=0,menubar=0,location=0,status=1,scrollbars=0,resizable=0,left=0, top=0');"
onclick=“var my_window=window.open('/saving.php?token=','mywindow1','width=300,height=200,toolbar=0,menubar=0,location=0,status=1,scrollbars=0,reshable=0,left=0,top=0')
我可以在后台运行/saving.php并发出不同的通知吗?您正在询问有关Ajax的问题,因此您可以访问此页面“运行”它,然后等待回复回来并使用它触发警报 Ajax 101: 简单示例(使用jQuery)
您可以通过jQuery上传视频
然后,您可以定义一个成功处理程序来显示通知DIV(或其他内容)。但是,在视频上传过程中,用户将不得不停留在页面上。您是否考虑过使用ajax来实现这一点?
$(document).ready(function(){
$().load("saving.php", function(data){
alert("Finished running")
});
});