问题描述
这可能看起来像客户端问题但....
我有网页组成一些javascript包括文件
以及''in page''脚本。它们在本地运行良好,直到我在IIS服务器上托管它们。然后页面拒绝看嵌套的javascript
来电。
例如
主页面包含要调用的JS代码一个包含文件的函数( -
没有probs),它反过来想要调用其他一个JS
包含文件中的一个函数,但是''对象预期''错误在
的行中调用 - 我假设因为它不能很好用。
我认为它可能与处理订单有关但是因为这些文件
几乎与我创建的另一个网站相同(当然JS
包含文件并且100%工作),我有点迷茫。任何帮助都会非常感激。
马丁
或者您可以询问服务器端的帮助。
替换:
< script type = " text / javascript"
src =" /js/myjavascript.js">
< / script>
with:
< script type =" text / javascript">
<! - #include virtual =" /js/myjavascript.js" ; - >
< / script>
-
Evertjan。
荷兰。
(请更改x ES成点在我EMAILADDRESS)
Hi,
This may seem like a client side problem but....
I have web pages that are made up of a number of javascript include files as
well as ''in page'' script. They all work fine running locally until I hosted
them on our IIS server. Then the pages refuse to see nested javascript
calls.
e.g.
Main page contains JS code to call a function to one of the include files (-
no probs), which in turn wants to call a function in one of the other JS
include files but falls over with ''object expected'' error in the line of
that call - I assume because it can''t fine the function.
I think it may be something to do with processing order but as these files
are almost identical to another site that I created (certainly the JS
include files are and that worked 100%), I''m a bit lost. Any help would be
greatly appreciated.
Martin
Or you can ask serverside help.
replace:
<script type="text/javascript"
src ="/js/myjavascript.js">
</script>
with:
<script type="text/javascript">
<!--#include virtual ="/js/myjavascript.js"-->
</script>
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)
这篇关于Javascript包含无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!