Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Developer
Posts: 6
Registered: ‎09-15-2008
My Device: Not Specified

textarea.value and javascript

[ Edited ]

I'm able to use javascript in some older blackberries to set the contents of textareas (multi-line text boxes).  In the newer 8830, the textarea is not accepting the .value change.

 

I'm still able to update the .value of buttons and textboxes (single line).  Have others seen this?

 

Is there a "multi-line" cell or field or text box that I can update using javascript? 

 

Possibly I can "wrap" the text myself, and use multiple single line text boxes (yuck!) - but since the text area was updatable in older blackberries, but this functionality was tossed out in the newer ones, was there something else added that I missed?

Message Edited by HuskerSam on 09-16-2008 11:34 AM
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: textarea.value and javascript

Please verify that JavaScript is enabled on the newer BlackBerry handheld you are testing with.  This is set by opening the browser, selecting Options from the menu and then Browser Configuration.

 

If you still have an issue, can you provide a sample page or URL?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Guru I
Posts: 19,020
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: textarea.value and javascript


HuskerSam wrote:

I'm able to use javascript in some older blackberries to set the contents of textareas (multi-line text boxes).  In the newer 8830, the textarea is not accepting the .value change.


Hello,

I am not sure it should...
you are using the textarea element from DOM2 that is implemented in javascript. The attributes of that DOM Object are defined here :
http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-24874179

I quote :

value of type DOMString
Represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the contents of the element.

 




The search box on top-right of this page is your true friend, and the public Knowledge Base too: