Recently, we're getting this 404 issue on the infragistics theme file.
This line in infragistics.loader.js file couldn't be located:["$path$/themes/$theme$/infragistics.theme.css"]
Is there a reason why the loader is unable to locate the css file with the defined path above?
FYI our current folder structure is: "/Content/ignite-141/themes/infragistics2012/infragistics.theme.css"
Please clarify; thanks.
I wasn't talking about modifying the loader and I am currently using the infragistics loader file as is.
Since the loader has this predefined, not matched to my current project structure, css path, I have no other way but create a wrapper and specify the right css path, which is working flawlessly.
The problem is that some of our application areas aren't utilizing the wrapper that I created and those pages are throwing 404 errors while load testing. That's the reason I need a way to fix the loader or env variables so I don't need to go around and fix each and every individual page..
Please let me know if that's possible.. thanks.
Hello Shashidhar Dasyam,
Were you able to get the igLoader working properly? Is there anything else I can assist you with on the matter? Please do not hesitate to contact me with more questions.
What are you defining as your cssPath option for the igLoader? I may be able to understand the problem better if you can provide the code that you have implemented in the igLoader. You should not have to modify environment variables in order to configure the igLoader. You should be able to provide the path to the css files in the cssPath option and the loader will take care of the rest. The following link may be a good reference to better understand the loader: http://help.infragistics.com/Help/Doc/jQuery/2012.1/CLR4.0/html/Using_Infragistics_Loader.html .
If you can provide your code for the igLoader, it would be a great help in speeding up the process so that I can provide you with a solution as soon as possible. Please do not hesitate to ask any questions which you might have in your response.
The files are there in specified directories, I double checked and they aren't corrupted.
The problem lies in the css path mentioned in the loader.js file, ["$path$/themes/$theme$/infragistics.theme.css"]. This path is incorrect and not pointing to the right file thus throwing 404 error.
I can move the stuff around to make this work, which I would like to avoid as I want to treat these (Infragistics) files just the same way as other js / css files.
So is there a away to modify the environment variables,($path$, $themes$ etc) to match our current directory? Thanks.
Hello Shashidar Dasyam,
There are a few things you may want to confirm to make sure that the file gets loaded properly. The first is to check that the file is in the location you have specified for the path. To check this, navigate to the file in your file explorer then click the navigation bar, and you will be able to see the path to the file. Next, you may want to check that the file is not corrupted. Simply view the file in any text editor to check this. If everything checks out, you can try putting the necessary js and css file folders in the same directory as your project, which I would recommend for simplicity. Lastly, if you still cannot get the file to load, you may want to try redownloading the css and js folders.
Please let me know if any of this works for you, and do not hesitate to ask me any questions.