0

DefinitionNotFoundException: Component definition not found: javascript in [LanguageDefinition: xul/

asked 2010-07-22 04:58:36 +0800

Jameszk gravatar image Jameszk
48 1

updated 2010-07-22 05:00:04 +0800

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

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-07-22 19:51:42 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Do you mean <script>?

<script src="http://someurlstring" charset="UTF-8" type="text/javascript" />

link publish delete flag offensive edit

answered 2010-07-23 02:45:14 +0800

Jameszk gravatar image Jameszk
48 1

updated 2010-07-23 02:50:32 +0800

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

link publish delete flag offensive edit

answered 2010-07-23 04:17:51 +0800

603424 gravatar image 603424
127 3

try

<?script type="text/javascript" src="script/myscript.js"?> 

after <?page ....?> tag


Regards,
Niral Soni

link publish delete flag offensive edit

answered 2010-07-23 05:20:44 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

http://books.zkoss.org/wiki/ZK_ZUML_Reference/The_ZK_User_Interface_Markup_Language/Processing_Instructions/The_link,_meta_and_script_Directives

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-07-22 04:58:36 +0800

Seen: 673 times

Last updated: Jul 23 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More