Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
349
Javascript file paths
posted

Hi Guys,

 A quick question.

I am working on application left to me my previous employees. This application is a web application that is often installed by third parties on their own web servers and the application makes use of Infragistics controls.

The problem I have is this:

 In many places the Javascript file names have been hardcoded into the application, which used to work nicely, however as the controls change the files required the hardcoded file paths become a real problem. For instance I have a datepicker with the following:

'Me.JavaScriptFileName = "MyIgScripts/ig_webdropdown.js"

'Me.JavaScriptFileNameCommon = "MyIgScripts/ig_csom.js"

'Me.CalendarJavaScriptFileName = "MyIgScripts/ig_calendar.js"

When upgraded to the latest version of infragistics the ig_csom.js is no longer required, however because the paths are hardcoded as shown it still looks for these files.

The reason this has been done is so the project can be redistributed with no requirement to have infragistics control scripts installed in the default directory. Basically we have to put these scripts in a subfolder off the main application path, so that the install can be easily x-copied etc.

What I was wondering is if you have any advice on how I should handle this scenario, I'd imagine it's quite common. Our experience of working with infragistics is that controls are constantly changed and their javascript files etc. changed, so the approach above is not future proof or sensible in this environment.

Any suggestions gratefully received.

Thanks,

 Andy

 

Parents Reply Children
No Data