Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: BridgeIt 1.0.5
-
Fix Version/s: BridgeIt 2.0
-
Component/s: BridgeIt
-
Labels:None
-
Environment:Bridgeit 1.0.5, ICEfaces EE 4.0
Description
We need to know why BridgeIt.js is triggering a submit--allowing components to encode (without user submitting the form), clobbering possible callbacks when services like camera and scan return from capturing data.
If this is a required behaviour, then the callback should be reworked to be triggered last (onafterupdate of the bridgeIt submit? rather than the hashchange event?) so the current workaround in the mobi components of using a none-deterministic timeout can be removed. Testing of showcase on slower networks that have larger latency than the timeouts will also show this issue.
If this is a required behaviour, then the callback should be reworked to be triggered last (onafterupdate of the bridgeIt submit? rather than the hashchange event?) so the current workaround in the mobi components of using a none-deterministic timeout can be removed. Testing of showcase on slower networks that have larger latency than the timeouts will also show this issue.
The submit is being triggered by the checkExecResponse() function in bridgeit.js, which is called after the native utility returns to the browser:
The logic appears to be that the form post is the default behaviour. If the parameters encoded in the data sent by the native utility include a parameter 'name', this is added to the form fields and ice.ajaxRefresh() is not called. I'm not sure what the logic behind this is.