×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    14

    how can i replace OnEventOnTimer in XHTML

    Doe's someone knows how can I replace the wap event

    <onevent type="ontimer">
    <go href="#main"/>
    </onevent>
    <timer value="10"/>

    To XHTML - I need it for nokia 3650

  2. #2
    Super Contributor
    Join Date
    May 2003
    Posts
    839
    Hello!

    Have u tried to use example .jsp to make a work around.

    -Tum-

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    14

    Yes indeed, this is a real problem

    incompatibility issue between WML and XHTML MP especially with Nokia browser.

    Without going into details and Nokia promises to support HTTP refresh header (which is not supported right now on Nokia devices), I would say for the time being it can be done by linking the XHTML page to the old WML deck and execute the script and timer onevent there.
    Last edited by yosi1; 2004-01-21 at 10:13.

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    2

    what do you mean when you say:

    "linking the XHTML page to the old WML deck "

    can you give me a code example of how it can be done?

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    25
    Hi,

    i too am trying to use the Timer event in XHTML, but i don't think it is supported in XHTML.

    I presume the previous person ('yosi1') means creating a simple hyper link to the old code created in WML.
    ...This defeats the objective and purpose of xhtml really.

    It may be the only way is to embed something like SMIL into the file...(the code below works for HTML, but I can not get it working in XHTML!)

    e.g.
    ...................................................

    <!--<?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML Mobile 1.0//EN" "http://www.openwave.com/DTD/xhtml-mobile10.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" t="urn:schemas-microsoft-com:time">
    -->
    <html xmlns:t="urn:schemas-microsoft-com:time">
    <head>
    <?import namespace="t" implementation="#default#time2">
    <style>.t {behavior: url(#default#time2)}</style>
    </head>
    <body>

    <t:seq repeatCount="indefinite">
    <img class="t" src="1b.bmp" dur="3s"
    width="20" height="10" />
    <img class="t" src="1c.bmp" dur="3s"
    width="30" height="10" />
    <img class="t" src="1d.bmp" dur="3s"
    width="40" height="10" />

    </t:seq>

    </body>
    </html>

    ................................

    if you manage to get the timer or any kind of animation working in xhtml i would be interested too.

    thanks.

    Barnsley.

  6. #6
    Super Contributor
    Join Date
    May 2003
    Posts
    839
    Hello!

    Short comment:
    XHTML doesn't support timer.

    In the other track there is info about XHTML -> WML link


    -tum-
    Last edited by Tumpelo; 2004-09-30 at 04:55.

Posting Permissions

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