Page 1 of 1
How to include javascript files in appery
Posted: Sun Mar 29, 2015 3:51 pm
by George6656971
Since you did not answer https://getsatisfaction.com/apperyio/.... I have rephrased my question here to be focused on appery.
How does appery include javascript files such that they are loaded and work?
For example,
I am using jqplot and the DateAxisRenderer jqplot plugin. For some reason jqplot is found and works, but the DateAxisRenderer is not found. Below are snapshots that describe my code and the error.
Thank you,
George
How to include javascript files in appery
Posted: Sun Mar 29, 2015 5:01 pm
by George6656971
An additional detail is that the error happens immediately on start of my app. Even before I reach the page that uses jqplot.
How to include javascript files in appery
Posted: Sun Mar 29, 2015 5:43 pm
by George6656971
I found this thread that the order of the files in appery is important.
https://getsatisfaction.com/apperyio/...
However, I cannot figure out how to force the order.
Please help.
George
How to include javascript files in appery
Posted: Sun Mar 29, 2015 6:34 pm
by M&M
If you just need to re-order them and it's going by alphabetical order can you not rename it in a way such that it comes down / moves up?
Not sure if thats the correct way to tackle this problem but if it's purely an file order problem then this should work.
How to include javascript files in appery
Posted: Sun Mar 29, 2015 6:40 pm
by George6656971
Will try that. I thought the names needed to match the original names.
How to include javascript files in appery
Posted: Sun Mar 29, 2015 6:42 pm
by George6656971
How to include javascript files in appery
Posted: Sun Mar 29, 2015 8:29 pm
by Egor Kotov6832188
Hello George,
Javasript files are loaded one by one, thus all functions,objects, etc. inits going also one by one.
You can merge files, of course, and organize content, so there will not be any collisions.
How to include javascript files in appery
Posted: Mon Mar 30, 2015 3:34 am
by M&M
if there are places where you are referencing them by name, then you'd need to change the names over there too. Other than that file names are not that significant other than being named in a way that is easily identifiable.
How to include javascript files in appery
Posted: Tue Apr 07, 2015 3:49 am
by George6656971
Yes. And the important bit is that they are loaded one by one in alphabetical order.
Thank you!
George