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.
Hello Shashidhar Dasyam,
Thank you for contacting Infragistics!
We received your support request concerning the loader locating the Infragistics.theme.css file, and I have been assigned to review your issue. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your submission and I will look further into why you are experiencing this behavior. I will get back to you by the end of the day Monday with more information or questions for you.
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.
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.
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.
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.
I apologize if I have misunderstood you. Issues like this are much easier for me to solve if I have the actual code to look at. Would it be possible for you to send your project over to me? This would allow me to isolate the issue and find a solution for you as quickly as possible. Please let me know if this works for you, and if not, I will continue to work to find a solution for you. Please do not hesitate to contact me with more questions.
Is there anything else I can assist you with on the matter? Please do not hesitate to contact me with more questions.
Hello,
If I understand your post correctlypathandthemeare variables and you are expecting them to be evaluated before the string is used. Is that correct? If so I don't believe that this is possible in JavaScript:
http://stackoverflow.com/questions/3304014/javascript-variable-inside-string-without-concatenation-like-php
If this is the case, then you could use something like: css:[path + "/themes/" + "theme" + "/infragistics.theme.css"]
If that isn't what you are looking for, please clarify what it is you are trying to accomplish.
Let me know if you have any questions with this matter.
Thanks for your willingness to help me. But I am quite confused with your question about the code.
Its the problem with setting the css path and I mentioned it in my very first post. Here is it again:
"
This line in infragistics.loader.js file couldn't be located: css:["$path$/themes/$theme$/infragistics.theme.css"]
And If I change the above css path to css: ["/Content/ignite-141/themes/infragistics2012/infragistics.theme.css"], it works.
All I need to know is there any better way other than modifying the loader file as these changes will be lost whenever we get newer versions from Infragistics.
Please let me know, if you still need more info; thanks.
Were you able to resolve your issue? If not, I am still more than willing to assist you. Please provide your project for me so I can give you a solution as soon as possible.