|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Wap reload the current page
I need to refresh the current page to retrieve the update data from server when i select the "refresh" link. So, then, it force the browser to reload. The code can be run on openwave emulator 6.2 but not on mobile phone(nokia 6230). I found some script like using ontimer, meta tag. I tried but it's not working. So...are there any others methods to reload the current page.
<wml> <head> <meta http-equiv="Cache-Control" content="max-age=0" forua="true"/> <meta http-equiv="Cache-Control" content="must-revalidate" forua="true"/> </head> <card id="showAllProduct" title="Product"> <p> <a href="product.cfm?productid=#url.productid#">Refresh</a><br/> <a href="Logout.cfm">Logout</a><br/> </p> </card> </wml> |
|
#2
|
||||
|
||||
|
What exactly is happening then?
I assume that "#url.productid#" is an actual ID number? I don't know cold fusion, but can't you set the http headers to "no cache" - forcing the pages to be the latest versions. You can't really set headers/cache once the content hits the screen or device - you need to do it before. In PHP you can do this, but like I said, I don't know CFM. With ASP this would probably work: Code:
<% response.expires = 0 %> WML options: Code:
<refresh/>
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Wap reload the current page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|