Details
Description
Although correctly registered with ICEmobile-SX, the camera button only causes the page to reload and does not launch ICEmobile-SX.
Activity
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #31993 | Mon Nov 05 13:45:17 MST 2012 | ted.goddard | using verbose but less fragile string based url hashcode manipulation ( |
Files Changed | ||||
MODIFY
/icemobile/trunk/icemobile/jsp/src/main/javascript/icemobile.js
MODIFY /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.util/component.js |
Migration
created issue -
Migration
made changes -
Field | Original Value | New Value |
---|---|---|
Reporter | Migration [ remote ] | Ted Goddard [ ted.goddard ] |
Migration
made changes -
Fix Version/s | 1.2 Beta [ 10344 ] |
Migration
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
The root cause is not clear, but the problem was traced to the following code:
{ returnURL = returnURL.substring(0, lastHash); }var returnURL = window.location;
if ("" == returnURL.hash) {
returnURL.hash = "icemobilesx";
It appears that window.location is being used by reference rather than value, so operating on the hash code causes a subsequent window.location change to fail. The solution is to revert to an earlier implementation that was more verbose but functional:
var returnURL = "" + window.location;
if ("" == window.location.hash) {
var lastHash = returnURL.lastIndexOf("#");
if (lastHash > 0)
returnURL += "#icemobilesx";