Forum Moderators: open

Message Too Old, No Replies

Any limit of # of JSs in a page?

browser complains "object expected"..

         

flashfan

1:25 pm on Sep 8, 2005 (gmt 0)

10+ Year Member



The page source shows
..function foo(){..}..<a href="javascript:foo()">blah</a>

When I click "blah", the browser complains "object expected". This page contains many scripts; and Javascript console doesn't show any warning/error in FF after page fully loaded. Is there any limit of # fo JSs?

Bernard Marx

2:00 pm on Sep 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No limit (within reason).

Try commenting out all the script links apart from the one containing

foo
.

flashfan

6:16 pm on Sep 8, 2005 (gmt 0)

10+ Year Member



Found the issue: before the function foo. there is:
<script type="text/javascript" src="s1.js"/>
which failed the following
<script type="text/javascript">...function foo(){..} ..</script>