All of the sudden my website has Javascript errors: "Can't init script for WebDateChooser" for the treeview and my gridviews only show the header columns but no rows. What is the solution to this problem!!!!
I have tried creating the WebResource.axd and that did not work. I published the code to server A and all if fine - it works wonderful. I copied all files in all folders to Server 2. server # 2 is where this is happening.
Using beyond compare I verified all files are there and the same. I also recompiled and recopied. Same thing.
"can't init script for webdatechooser"
I need help and FAST this is for a production issue.
just create WebResource.axd in your root directory (i.e where your web.config) . I had the similar issue but now fixed.
Arun.K.S
hi !
if u include js file in pages,please make sure its format like this:
<script src="xx.js" type="text/javascript"></script>
<script src="xx.js" type="text/javascript" /> (wrong)
Hi,
That means that controls can not find their js files. I guess you use CLR2 and they use embedded into dlls js files. However, every control has option to use local (or at specific location) js file instead of embedded. Those are JavaScriptFileName and JavaScriptFileNameCommon properties. Of course if there are 2 controls of same type (like 2 datechooser or calendars), then both of them should use js file at the same location, otherwise result will be unpredictable. I case of JavaScriptFileNameCommon absolutely all Infragistics controls should point to the same location of ig_shared.js file.
Also application may change location of all js files for all controls on page by using javascriptdirectory in web.config file.
So, you should check all properties/settings related to JavaSciptFileName. To verify that all is correct, you may run page and look at source of generated html. <link src=...> will contain run time values. Also if you debug, then you may check RunningDocuments/ScriptExplorer window, open each loaded file and verify that all ig_shared.js, ig_webdropdown.js and ig_calendar.js are loaded. If not, then you should try to find the reason for failure. Those are missing files at custom locations. If you did not customize js location, then no problem should happen.