×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2013
    Posts
    2

    [moved] mwl.setInputValue() not updating text fields

    I'm having a problem with the mwl.setInputValue() command when deployed on an Asha 305 handset. The target fields should update when a button is clicked. It's working as intended on both local and cloud server testing, but is not working on the phone. A sample section of code is below:

    <div id="midrightbutton">
    <input type="image" id="mrb1" class="show" src="s40-theme/images/Mu_proto_arrow_Right_A.gif" onclick="mwl.iterateClass('#images2', 'im', 'next', 3, false, null); mwl.setInputValue(subgenres, '2'); mwl.setGroupTarget('#midrightbutton', '#mrb2', 'show', 'hide'); mwl.setGroupTarget('#midleftbutton', '#mlb2', 'show', 'hide');" />
    <input type="image" id="mrb2" class="hide" src="s40-theme/images/Mu_proto_arrow_Right_B.gif" onclick="mwl.iterateClass('#images2', 'im', 'next', 3, false, null); mwl.setInputValue(subgenres, '3'); mwl.setGroupTarget('#midrightbutton', '#mrb3', 'show', 'hide'); mwl.setGroupTarget('#midleftbutton', '#mlb3', 'show', 'hide');" />
    <input type="image" id="mrb3" class="hide" src="s40-theme/images/Mu_proto_arrow_Right_C.gif" onclick="mwl.iterateClass('#images2', 'im', 'next', 3, false, null); mwl.setInputValue(subgenres, '3');" />
    </div>

    ... all other mwl commands operate as expected. Hope someone can help.

  2. #2
    Registered User
    Join Date
    Jul 2013
    Posts
    2

    Re: mwl.setInputValue() not updating text fields

    Okay I've got it. I hadn't set the targetNode correctly eg. mwl.setInputValue('#subgenres', '3');

    ..Couldn't see the wood for the trees

Similar Threads

  1. moving between text fields
    By niff111 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2009-01-31, 14:56
  2. two text fields in a single row
    By hnipak in forum Mobile Java General
    Replies: 11
    Last Post: 2006-09-22, 16:02
  3. rms and text fields
    By pullan in forum Mobile Java General
    Replies: 3
    Last Post: 2004-04-22, 09:14
  4. Dynamically Updating Input Fields
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-13, 20:00

Posting Permissions

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