Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2011

    Inline code issue on device

    Hi guys,

    I'm having issue with inline code.

    I've code like this:
    		<div onclick='mwl.insertHTML("#holder", "this is clicked")'>click me!</div>
    		<div id='holder'></div>
    It run perfectly on emulator. But failed on device.

    When I change it to:

    		<div onclick='javascript:mwl.insertHTML("#holder2", "this is clicked with javascript")'>click me!</div>
    		<div id='holder2'></div>
    It run fine on device and emulator. But with caveat, that the later code will produce unneeded request to server.

    here's my test project: http://dl.dropbox.com/u/1636195/Test...Javascript.wgt

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008

    Re: Inline code issue on device


    How about this?
    <div onclick="mwl.insertHTML('#holder3', 'this is clicked');">click me!</div>
    Works both on device and on simulator.

Similar Threads

  1. Code can't be built for real device (was. Code can't run on real device)
    By jyuan88 in forum [Archived] Qt Mobility Project
    Replies: 7
    Last Post: 2011-03-07, 12:52
  2. FEP issue regarding inline editing
    By himsymbian in forum Symbian
    Replies: 0
    Last Post: 2009-04-06, 11:41
  3. Uninstallation issue on N95 device
    By sameerbkamble in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2009-03-31, 12:52
  4. HelpExample on device issue
    By electrique in forum Symbian
    Replies: 2
    Last Post: 2006-08-08, 05:35

Posting Permissions

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