-
FEATURED COMPONENTS
First time here? Check out the FAQ!
In a ZK application I want to load within a zul div element in a zul file the content of an external html page. I believe the best approach is to use JQuery supported in ZK. I have added the following code that does display the alert message, but somehow the div element doesn't load the content of the page. Does anyone know where the problem may be?
<script type="text/javascript">
jq(document).ready(function() {
alert('ready');
jq("$graphWidget").load("http://www.xxxxxx.com");
});
</script>
<div id="graphWidget" style="height: 415px; width: 100%;">
</div>
Becuase the target site might not be accessible by your site for Access-Control-Allow-Origin
.
Please refer to http://stackoverflow.com/questions/10636611/how-does-access-control-allow-origin-header-work
Asked: 2016-05-19 11:13:00 +0800
Seen: 33 times
Last updated: May 27 '16
Facing issue in masking on phone [closed]
How to update ZK Grid values from jQuery
How can I use a newer version of jQuery?
Applet integration - How can i get the html tag id in javascript?
Placeholder with phonemasking in IE11 Browser not working
Customize ZK's JavaScript Code
How to combine jQuery's .fadeOut with server side .removeChild ?
why not use iframe?
chillworld ( 2016-05-19 12:41:33 +0800 )edit