Hello!
I want to make some iphone-styled XPages in an old database , I tried to do by instruction in ReadMe.pdf.
1. I opened old local database in the Designer.
2. Imported Dojo Mobile 1.5 (dojo-release-1.5.0rc2-src) into dojo15 directory
3. Copied some Custom Controls and XPages from MobileControlsLite.nsf
4. After then I tried to preview "ViewAndDocument" XPage in the browser, and get this error:
The runtime has encountered an unexpected error.
1: #{javascript:
2: var stylesheetUrl = compositeData.stylesheetUrl;
3: if ((stylesheetUrl == null) ||(stylesheetUrl == "")) {
4: if (org.openntf.util.Directories.externalFilesInstalled()) {
5: stylesheetUrl = "/domjs/mobile/themes/iphone/iphone.css";
6: }
7: else {
8: stylesheetUrl = "dojo15/dojox/mobile/themes/iphone/iphone.css";
9: }
10: }
after then a wrote in the XPage:
<xc:mConfiguration
stylesheetUrl = "dojo15/dojox/mobile/themes/iphone/iphone.css">
</xc:mConfiguration>
11: "<link href='" + stylesheetUrl + "' rel='stylesheet'></link>"}
but received this error:
The runtime has encountered an unexpected error.
1: #{javascript:
2: if (org.openntf.util.Directories.externalFilesInstalled()) {
3: "<script type='text/javascript' src='/domjs/mobile/dojo.js'></script>";
4: }
5: else {
6: "<script type='text/javascript' src='dojocustom/dojo.js'></script>";
7: }
8: }
What else should I do in addition to 1)-4) points?
Thanks in advance.