06-07-2005 07:12 AM - edited 03-13-2019 09:23 AM
If I display a number of records using softkeys to do Next, Prev etc. there seems to be no way to get back to the starting screen without the user having to press Exit loads of times.
Am I missing something obvious here?
06-07-2005 07:57 AM
Required reading to understanding this behavior:
Quote from link----------->
The expiration header can control which URLs are added to the phone URL history. This behavior differs slightly from traditional web browsers but is implemented to perform the same function. Disable the back button functionality to avoid calling a URL twice.
This functionality allows you to make the content of any page that is sent to the phone expire. When a user presses the Exit softkey, the user goes back to the last URL that did not expire when it was loaded. This differs from traditional browsers by not considering the current freshness of the data but the freshness of the data when the URL was requested. This requires you to have a page expire when it is first loaded and to not set a time and date in the future.
The following example shows how to have content on IIS expire by using Active Server Page (ASP):
<%@ Language=JavaScript %>
<%
Response.ContentType = "text/xml";
Response.Expires = -1;
%>
The "Expires" property specifies the number of minutes to wait for the content to expire. Setting this value to -1 subtracts 1 minute from the request time and returns a date and time that have already passed.
<-----------------------------
That said, there are two ways to go about this.
So, you can either use that header to disable caching of pages into the history of the phone, or you can do it another way...
instead of SoftKey:Exit, do Key:Services. It will clear the phone regardless of what the history is.
06-07-2005 10:49 PM
Just the ticket - thanks for that, a real case of RFM!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide