Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php jQuery只加载页面的特定部分_Php_Jquery_Html - Fatal编程技术网

Php jQuery只加载页面的特定部分

Php jQuery只加载页面的特定部分,php,jquery,html,Php,Jquery,Html,我知道这是要求在这个网站上1000倍,但我不能得到它的工作 我想使用当前样式从该网站获取表格信息: 所以我尝试了这个(): $.get('https://webuntis.a12.nl/WebUntis/?school=roc%20a12#Timetable?type=1&departmentId=0,函数(数据){ var wrap=$('#mainTable',$(数据)); }); 但它不会做任何事。也许可以用PHP来实现?您遇到了跨域安全问题。 基本上不允许您执行从一个域到另一个域

我知道这是要求在这个网站上1000倍,但我不能得到它的工作

我想使用当前样式从该网站获取表格信息:

所以我尝试了这个():


$.get('https://webuntis.a12.nl/WebUntis/?school=roc%20a12#Timetable?type=1&departmentId=0,函数(数据){
var wrap=$('#mainTable',$(数据));
});

但它不会做任何事。也许可以用PHP来实现?

您遇到了跨域安全问题。 基本上不允许您执行从一个域到另一个域的请求。 你能做的就是把所有的东西都放在一个iframe中

<body>
<html>
this is my page
< iframe src="https://webuntis.a12.nl/WebUntis/?school=roc%20a12#Timetable?   type=1&departmentId=0" height=500 width=500></iframe>
</html>
</body>

这是我的页面