-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
Which dependency / jar file do I need to fix this error?
DefinitionNotFoundException: Component definition not found: javascript in [LanguageDefinition: xul/html
This is to use the Javascript tag to put javascript into the <head> section of the html page.
<javascript src="http://someurlstring" charset="UTF-8"/>
Thanks
James
Hi,
the <script> component seems to put the javascript in the body section of the html page. So I had the idea of using the <javascript> tag because we need the javascript to go into the html "head" section. Basically we wish to use ZK to do this, which is surely easy to do?:
<html>
<head>
<title>SetCredentials</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?
v=6.3"></script>
<script type="text/javascript">
var map = null;
function GetMap()
{
map = new VEMap('myMap');
map.AttachEvent("oncredentialserror", MyHandleCredentialsError);
map.AttachEvent("oncredentialsvalid", MyHandleCredentialsValid);
map.SetCredentials("AkUzwQOAQ3jFkawl_nJir-0hQrLPNNMsyaHtheERN61QmKHUaU61SXL9qQiBH2X6");
map.LoadMap();
}
function MyHandleCredentialsError()
{
alert("The credentials are invalid.");
}
function MyHandleCredentialsValid()
{
alert("The credentials are valid.");
}
</script>
</head>
<body onload="GetMap();">
<div id='myMap' style="position:relative; width:600px; height:400px;"></div>
</body>
Thanks,
James
Asked: 2010-07-22 04:58:36 +0800
Seen: 673 times
Last updated: Jul 23 '10