I am trying implement basics examples of xquery
but having problem whit Hello World. I have downloaded and placed mxqueryjs.nocache.js
file correctly, so I don't know where is problem.
Here is my code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<title>HelloWorld</title>
<meta charset="UTF-8"/>
<script type="text/javascript" src="mxqueryjs/mxqueryjs.nocache.js"></script>
<script type="application/xquery">
b:alert("Hello World")
</script>
</head>
<body>
<h1>Hello world page.</h1>
</body>
</html>
Console output:
Uncaught SecurityError: Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match. 6182B2DC971F7A2C7AEDC4F09F2BAE2D.cache.html:1
(anonymous function) 6182B2DC971F7A2C7AEDC4F09F2BAE2D.cache.html:1
Uncaught SecurityError: Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match. 6182B2DC971F7A2C7AEDC4F09F2BAE2D.cache.html:2867
(anonymous function)
This should open alert dialog and say Hello World, but it does nothing. Online example is here: xqib - HelloWorld
Thanks
您将需要下载以下模块: www.xqib.org/js/module.xquery
并使用脚本标签将其导入:
script type="application/xquery" src="path_to/module.xquery"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.