×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2003
    Location
    Stuutgart/germany
    Posts
    5

    forwarding to a other Site in xhtml

    Hi

    is there any posibility to get the same feature the

    <meta http-equiv="refresh" content="4" url=foo.html">

    tag in HTML 4.0 does

    in xhtml too?(e.g. by using WMSScript)

    please post a little part of code with teh answer :-)

    Thx

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    New Zealand
    Posts
    9

    WML or XHTML?

    I am confused - are you developing in xhtml or wml? They are not the same.

    WML does not support refreshing or redirects (client or server), but xhtml mobile profile supports it in the same way as (x)html
    eg:
    <meta http-equiv="refresh"
    content="15; url=(http://www.example.com/new.html" />

    (for the official docs, go here:
    http://developer.openwave.com/omdt/x...AppendixA.html)

    In WML you can do:
    <onevent type="ontimer">
    <go href="http://wap.teltest.com/"/>
    </onevent>
    <timer value="10"/>
    Does that help?

  3. #3
    Registered User
    Join Date
    Oct 2003
    Location
    Stuutgart/germany
    Posts
    5
    thx i've treid this but it doesn't work.
    Can anybody tell me why? Here's a small code example... plaes tell me where the bug is.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>foo</title>
    <meta http-equiv="refresh" content="5; url=site2.xhtml"/>
    </head>
    <body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
    <h1>site1</h1>
    </body>
    </html>

  4. #4
    Registered User
    Join Date
    Mar 2003
    Location
    New Zealand
    Posts
    9

    your (x)html code works fine

    I have tried the code you posted in my browesr, only changing the url to another site (http://www.clicksave.co.nz) and it works fine - after 5 seconds it redirects to the page/site specified in the meta tag.

    What browser / device are you tryiong to get this to work in?

  5. #5
    Registered User
    Join Date
    Oct 2003
    Location
    Stuutgart/germany
    Posts
    5
    I'm so sorry... I've tried it on xhtml MP for the Nokia Mobile Browser Simulation... and for the 3650

    May be this is the reason it doesn't work...

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    5
    It does not work at all even on nokia 6600.

  7. #7
    Registered User
    Join Date
    May 2003
    Posts
    7
    unfortunately it is not supported at all on any nokia device, it will work on your openwave emulator but not on the real handset...

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    23

    Trying it with HTTP Status and Header Fields

    Since Nokia XHTML Browser do not support the http-equiv attributes of meta tags,
    I tried to achieve the same thing via HTTP-Header directives set by my JSP Page.
    I need this for an animation, which was simply in WML by using the event handlers.

    How I read the specifications the following Header Information should cause a redirect after 5 Seconds:

    HTTP/1.1 302 FOUND
    Retry-After: 5
    Location: http://anyserver.com/nextpage

    In fact the browser redirects to the new pages, but immediately - not after 5 seconds.

    Since the 302 status code and the Location header field are part of HTTP/1.0,
    but the Retry-After header field is new to HTTP/1.1, I wonder whether the Nokia XHTML browser only supports HTTP/1.0.

    Does anyone know that exactly? Nokia?

    PS: the specs
    HTTP-Response Codes:
    http://www.w3.org/Protocols/rfc2616/...html#sec10.3.1

    HTTP-Header Fields:
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •