Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    1

    ECMAScript/onclick event and nokia 6233

    Hello,
    I'm trying to change the value of a text field using ECMAScript function triggered by "onclick" event of the <select> object, but it does not work with Nokia 6233 and Nokia Mobile Browser Simulator 4. Is something wrong with the code or maybe ECMAScript is not supported on Nokia 6233 ?
    --------
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.wapforum.org/DTD/xhtml-mobile11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>test</title>
    <script type="text/ecmascript">
    function upda(myval)
    {
    document.getElementById('field').setAttribute('value', myval);
    return;
    }
    </script>
    </head>
    <body>
    <p>
    <form name="test-form" action="tsend" method="post">
    <select name="contact">
    <option value="a" onclick="upda('field a');">a</option>
    <option value="b" onclick="upda('field b');">b</option>
    </select>
    <br/>
    <input type="text" id="field" name="field" value="" maxlength="12"/>
    <br/>
    </form>
    </p>
    </body>
    </html>

    --------
    Regards

  2. #2
    Registered User
    Join Date
    Feb 2006
    Location
    Brazil
    Posts
    523

    Re: ECMAScript/onclick event and nokia 6233

    6233 doesn't support Java/ECMA scripting language.


    best regards
    Http_user_agent:
    NokiaN80-1/3.0 (4.0707.0.7)
    Series60/3.0
    Profile/MIDP-2.0
    Configuration/CLDC-1.1

Similar Threads

  1. Switch on event on Nokia 9500
    By acvwieringen in forum Symbian
    Replies: 2
    Last Post: 2005-02-04, 14:44
  2. Nokia 6260 camera button event for Long press
    By paulsanbu in forum Symbian
    Replies: 1
    Last Post: 2004-12-18, 07:40
  3. Undetected Event: Nokia Mobile Service Libraries 1.4, CIMD2 driver
    By jobanegas in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2004-11-18, 15:08
  4. Receive mms (notification event) Nokia 6610
    By pb1973 in forum Mobile Java General
    Replies: 0
    Last Post: 2003-11-15, 12:41

Posting Permissions

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