tycheik85 Posted August 23, 2006 Share Posted August 23, 2006 I have a .js file stored in a folder named "lib". So to load it i use the following code:[color=red] <script language="javascript" src="lib/js_function.js" type="text/javascript"></script>[/color]it look correct but when i load the page i got a script error saying [b]";" expected[/b] ???No error is displayed when i change the code to the following:[color=red] <script language="javascript" src="lib/js_function.js;" type="text/javascript"></script>[/color] OR[color=red] <script language="javascript" src="lib/js_function.js" type="text/javascript;"></script>[/color]But here is another problem. I can't call any function from js_function.js. Whenever i do that i'll get another error message "[b]object expected[/b]".Does anyone face this problem before? Quote Link to comment Share on other sites More sharing options...
448191 Posted August 23, 2006 Share Posted August 23, 2006 The problem is not in the HTML linking the script, but in the script itself. Quote Link to comment Share on other sites More sharing options...
tycheik85 Posted August 23, 2006 Author Share Posted August 23, 2006 I've figured out the problem. Thanks for that remind. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.