Hi All,
I have a jsp page that works fine on Windows CE 4.0 with Xda II. However, I am trying to get dynamic questions to work on the page which requires me to use the innerHTML property. The business scenario is within a Field Service Mgmt sytem wherby calls can be progressed from one status to another; and this can be done offline before a "sync" (Synchronization to the server)is performed.
Sample Scenario:
A CALL can be progressed from DISPATCHED status -ACKNOWLEDGED - ONSITE - COMPLETE status; with a submit button.
Problem:
Free text values entered in...say ACKNOWLEDGED status are not seen in the next Status when the page reloads while in the offline status.
Code Segment:
<head>
<script>
function displayStatement()
{
var s1 = '<font color="black"> <u> <b> STATEMENT </b>
</u> </font><br>' ;
s1 = s1 + '<textarea rows="2" wrap="physical"
name="FIELD_subjectStatement" cols="50">
<%=actionSubjectStatement%>
</textarea>';
---
---
---
document.eventsForm.StatementDisplay.innerHTML = '';
---
---
---
}
</script>
</head>
<body onload="onLoad="displayStatement();">
---
---
<form action="<%=MobileSerializeServlet.encodeRedirectUrl(request,response,"/servlet/RequestHandler")%>" method="GET" name="eventsForm">
---
---
<tr>
<td class="TextField">
<span id="StatementDisplay">
</span>
</td>
</tr>
---
---
---
//end of Code Segment
The innerHTML allows the dynamic tags/rows to be displayed but the resulting page. I've tried using STYLE (with display:attribute) object but it's not working. Only innerHTML works on my moobile device but then i am stuck with this non-retrieval of free-text values entered in the previous state.
Can anyone help me on this, please.
Cheers.
aadejumo
I have a jsp page that works fine on Windows CE 4.0 with Xda II. However, I am trying to get dynamic questions to work on the page which requires me to use the innerHTML property. The business scenario is within a Field Service Mgmt sytem wherby calls can be progressed from one status to another; and this can be done offline before a "sync" (Synchronization to the server)is performed.
Sample Scenario:
A CALL can be progressed from DISPATCHED status -ACKNOWLEDGED - ONSITE - COMPLETE status; with a submit button.
Problem:
Free text values entered in...say ACKNOWLEDGED status are not seen in the next Status when the page reloads while in the offline status.
Code Segment:
<head>
<script>
function displayStatement()
{
var s1 = '<font color="black"> <u> <b> STATEMENT </b>
</u> </font><br>' ;
s1 = s1 + '<textarea rows="2" wrap="physical"
name="FIELD_subjectStatement" cols="50">
<%=actionSubjectStatement%>
</textarea>';
---
---
---
document.eventsForm.StatementDisplay.innerHTML = '';
---
---
---
}
</script>
</head>
<body onload="onLoad="displayStatement();">
---
---
<form action="<%=MobileSerializeServlet.encodeRedirectUrl(request,response,"/servlet/RequestHandler")%>" method="GET" name="eventsForm">
---
---
<tr>
<td class="TextField">
<span id="StatementDisplay">
</span>
</td>
</tr>
---
---
---
//end of Code Segment
The innerHTML allows the dynamic tags/rows to be displayed but the resulting page. I've tried using STYLE (with display:attribute) object but it's not working. Only innerHTML works on my moobile device but then i am stuck with this non-retrieval of free-text values entered in the previous state.
Can anyone help me on this, please.
Cheers.
aadejumo