I had tried to port an application written in dojox.app to Worklight. When the application startup in iOS, it just show blank page. The XCode console show ERROR error JSON.stringify()ing argument: TypeError: JSON.stringify cannot serialize cyclic structures.
I had also tried to port another application written in dojox.mobile.app to Worklight. The same scenario happen.
My question is dojox.app and dojox.mobile.app supported in Worklight 5.0.5?
If yes, is there something that I had missed? Is there any sample that is build on the two app framework?
This topic has been locked.
4 replies Latest Post - 2013-01-03T16:51:54Z by LaksSundar
Pinned topic Dojox.app and Dojox.mobile.app framework support in worklight 5.0.5
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Re: Dojox.app and Dojox.mobile.app framework support in worklight 5.0.52012-12-25T20:29:53Z in response to SystemAdminIf you're talking about Dojo Mobile (http://dojotoolkit.org/features/mobile) I believe it should work as expected.
Here's a Sample Worklight Project using Dojo Mobile:
IBM Worklight Starter application with Dojo Mobile
More about Dojo Mobile here:
Regarding the JSON.stringify error take a look at this:
Re: Dojox.app and Dojox.mobile.app framework support in worklight 5.0.52012-12-26T03:02:58Z in response to SystemAdminSorry, I am not talking about Dojo Mobile. I know dojo mobile work in WorkLight.
I should have been more specified. What I am referring to is the framework describe here
There are few samples provide in the dojo distribution, under the dojox/mobile/tests directory, eg:
For the dojox.app framework, I am referring to this:
Samples are provided in the dojo, under the dojox/app/tests directory, eg:
berstler 060001NSHB1 PostACCEPTED ANSWER
Re: Dojox.app and Dojox.mobile.app framework support in worklight 5.0.52013-01-03T15:44:28Z in response to SystemAdminWhile Worklight 5.0.5 does not provide explicit tooling for dojox.mobile.app, I can't think of any reason why it shouldn't theoretically work.
I searched around a little about this particular error and found that it seems to be a rather common occurrence on iOS.
The solution or workaround to this problem depends on which code is actually calling JSON.stringify(). Please have a look at the above reports and their solutions to see if any suit your situation. However, if JSON.stringify() is called from deep within a third-party library, you may need to take it up with the maintainer of the library. That being said, if the offending code is within Dojo and you are using the version of Dojo that ships with Worklight Studio, then feel free to open a PMR to have the issue addressed by IBM support.
LaksSundar 270001JGQH13 PostsACCEPTED ANSWER
Re: Dojox.app and Dojox.mobile.app framework support in worklight 5.0.52013-01-03T16:51:54Z in response to berstlerWe had a similar issue but then noticed that it was because of DOJO include dojo/domReady! The app was working fine in mobile web but won't work in iOS Simulator/ devices. Are you facing a similar issue?