I do a lot of searching on stackoverflow and google, but I can not find the logical path!
I use getScript to load the js file, I get the message "Not Well Formed" in the Firefox error console. I try to comment out all the lines of my code in a js file, and get this error again!
Timestamp: 04/25/2012 02:02:32 PM
Error: not well-formed
Source File: file:///G:/ct/main/main.js?_=1335346352617
Line: 1, Column: 1
Source Code:
/*
I also use $ .ajax, I get exactly this error.
Note: my included JS code works without problems, and everything is fine (when my code is not commented out), but I want to know why my user should get this error in Firefox ?!
Sorry for my bad english.
EDIT:
var ulWidth = 0;
$('.carousel_links ul li').each(function(){
ulWidth += $(this).outerWidth();
});
$('.carousel_links ul').css({
'width' : ulWidth+'px'
});
UPDATE:
I found this way:
How do I include a JavaScript file in another JavaScript file?
, , , $.getScript, , JavaScript .