Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE 1.2
-
Fix Version/s: BridgeIt 1.0
-
Component/s: Faces
-
Labels:None
-
Environment:ICEmobile, ICEmobile-SX
Description
When ICEmobile-SX returns control to the browser, it is generally required for the browser page to be reloaded or updated via ajax to reflect registration or content upload.
If the page URL already ends with #icemobilesx, this reload does not take place.
If the page URL already ends with #icemobilesx, this reload does not take place.
Activity
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #33849 | Mon Mar 11 14:19:57 MDT 2013 | ted.goddard | clear #icemobilesx hash tag upon return from ICEmobile-SX ( |
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 |
Ted Goddard
created issue -
Steve Maryka
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Steve Maryka [ steve.maryka ] | Ted Goddard [ ted.goddard ] |
Steve Maryka
made changes -
Fix Version/s | Bridge-it 1.0 [ 11172 ] |
Ted Goddard
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
The fix max use of the history.pushState() function being investigated for back-button support. This has the advantage of removing the #icemobilesx hashtag but does not cause a page reload. The setTimeout ensures that the hashtag is cleared after any other hashchange listeners run, thereby allowing script in the page to detect the return from ICEmobile-SX and perform an ajax update if necessary.
+ setTimeout( function()
{ + var loc = window.location; + history.pushState("", document.title, loc.pathname + loc.search); + }, 1);