<脚本>导致 XML 标签名称不匹配的问题脚本>
在尝试使用测试页进行一些 jquery getJSON 调用时,我收到错误,这些错误显示在 Firefox 的错误控制台中:
XML tag name mismatch (expected input)
http://localhost:8080/<MyApp>/jquery-1.4.4.js
</body>
XML tag name mismatch (expected input)
http://localhost:8080/<MyApp>/json.js
</body>
The original html has the following:
<html>
<head>
<title>Application</title>
<script type="text/javascript" src="/<MyApp>/jquery-1.4.4.js"></script>
<script type="text/javascript" src="/<MyApp>/json.js"></script>
</head>
<body>
<h1>Application</h1>
<p>
<label id="heartbeatLabel">Gateway Heartbeat:</label>
<input id="heartbeatStatus" type="text" readonly="true" width="30">
<input id="jsRunning" type="text" readonly="true" width="30">
<input id="btnHeartbeat" type="button" value="Test Heartbeat" onclick="javascript:testHeartbeat();">
</body>
Firebug 告诉我,JavaScript 脚本都已找到,并且 Net 面板的状态为 200。有人知道吗?有什么建议吗?
In attempting to work with a test page for making some jquery getJSON calls I get errors which show up in the error console of Firefox:
XML tag name mismatch (expected input)
http://localhost:8080/<MyApp>/jquery-1.4.4.js
</body>
XML tag name mismatch (expected input)
http://localhost:8080/<MyApp>/json.js
</body>
The original html has the following:
<html>
<head>
<title>Application</title>
<script type="text/javascript" src="/<MyApp>/jquery-1.4.4.js"></script>
<script type="text/javascript" src="/<MyApp>/json.js"></script>
</head>
<body>
<h1>Application</h1>
<p>
<label id="heartbeatLabel">Gateway Heartbeat:</label>
<input id="heartbeatStatus" type="text" readonly="true" width="30">
<input id="jsRunning" type="text" readonly="true" width="30">
<input id="btnHeartbeat" type="button" value="Test Heartbeat" onclick="javascript:testHeartbeat();">
</body>
Firebug tells me that the javascript scripts were both found and the Net panel gives a status of 200. Does anyone have any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此行无效:
属性中不允许有
<
和>
。您必须转义这些字符,尽管这不能解决您的问题,因为我不确定
来自哪里。This line is invalid:
It's not allowed to have
<
and>
in attributes. You have to escape these characters, although that wouldn't solve your problem, because I'm not sure where<MyApp>
comes from.