Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8763673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:50:05+00:00 2026-06-13T15:50:05+00:00

I am just trying to integrate textarea in dhtml environment. I am able to

  • 0

I am just trying to integrate textarea in dhtml environment. I am able to see the text area But i cannot type anything in the text area. Attached is a code snippet.

<canvas debug="true">
 <attribute name="htmlsnippet" type="string" value="" />

    <handler name="oninit" args="e">
    <![CDATA[
        canvas.htmlsnippet = '<textarea id="textArea" rows="8" cols="50"></textarea>';
    ]]>
    </handler>

    <simplelayout axis="y" spacing="30" />

    <text id="textcont" width="530" height="350" bgcolor="#cccccc" />

    <button text="modify text" onclick="textcont.sprite.setText(canvas.htmlsnippet)" />
</canvas>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:50:06+00:00Added an answer on June 13, 2026 at 3:50 pm

    While it’s possible to generate an HTML element at runtime and add that to the display object of a view, the OpenLaszlo kernel will process all the mouse and keydown events and not pass them on to the textarea you created.

    The <inputtext> component in OpenLaszlo instantiates an internal <textarea>. Compile the following OpenLaszlo DHTML app:

    <canvas debug="true">
    
      <inputtext id="iText" multiline="true" width="100" resize="true" bgcolor="red">
        <handler name="oninit"><![CDATA[
            this.setAttribute('text', 'Just\na\ntest!');
        ]]></handler>
      </inputtext>
    
    </canvas>
    

    Now inspect the text object by entering this expression into the browser JavaScript console:

    iText.sprite.__LZdiv.children[0]

    and you will see something like:

    <textarea class="lzswfinputtextmultiline" name="" style="color: rgb(0, 0, 0); width: 96px; height: 40px; pointer-events: auto;">

    Depending on the browser the style values could be different.

    Unfortunately OpenLaszlo doesn’t offer an API to add your custom textarea to the application without handling the keydown, focus and mouse events for the textarea yourself. That’s effectively what the combination of LFC/kernel classes (LzText.lzs, LzInputText.lzs, LzTextSprite.js, LzInputTextSprite.js) do: They replicate the SWF text class behavior for DHTML – since OpenLaszlo had the SWF runtime before the DHTML runtime.

    That’s less than optimal for HTML5, and probably one of the greatest weaknesses of the OpenLaszlo platform. Therefore it’s better to no add your own <textarea> to a DHTML runtime app – unless you put that into an iFrame/separate HTML page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to integrate my app with Soundcloud, but I'm just finding that
just trying to test for equality in this piece of code, but getting a
I'm trying to integrate quartz scheduler into a struts2 web app. Just wondering where
I've just started trying to integrate the Poco C++ Library with our game engine,
I'm trying to integrate reporting services in an C# application, but when I'm trying
I was trying to integrate Slimbox into my web page, but couldn't get it
I'm trying to integrate imageMagick onto my server but I'm having a hard time
I am trying to integrate Netbeans 6.9 or 7 into my development environment (Mac
I'm trying to integrate MyGUI 3.2.0 into my OpenGL 3 engine, but I'm having
I'm trying to integrate a javascript called ImageFlow into a Joomla site, but I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.