George6656971
Posts: 0
Joined: Wed Feb 12, 2014 5:05 am

How to include javascript files in appery

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.
Image

Image

Thank you,

George

George6656971
Posts: 0
Joined: Wed Feb 12, 2014 5:05 am

How to include javascript files in appery

An additional detail is that the error happens immediately on start of my app. Even before I reach the page that uses jqplot.

George6656971
Posts: 0
Joined: Wed Feb 12, 2014 5:05 am

How to include javascript files in appery

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

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

How to include javascript files in appery

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.

George6656971
Posts: 0
Joined: Wed Feb 12, 2014 5:05 am

How to include javascript files in appery

Will try that. I thought the names needed to match the original names.

George6656971
Posts: 0
Joined: Wed Feb 12, 2014 5:05 am

How to include javascript files in appery

That did the trick!

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

How to include javascript files in appery

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.

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

How to include javascript files in appery

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.

George6656971
Posts: 0
Joined: Wed Feb 12, 2014 5:05 am

How to include javascript files in appery

Yes. And the important bit is that they are loaded one by one in alphabetical order.
Thank you!
George

Return to “Issues”