Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2008, 04:29 AM
Registered User
 
Join Date: Feb 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help: Not able to Assign Value to a Text Area

Hi there,

I am using a simple Javascript function to assign a value to a textarea. The code is something like this:

txtareaObj.value = '123';

However the textarea does not get the value assigned to it, for most simulators, except for a few. I'm testing it with simple HTML as below:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test BlackBerry</title>
<script type="text/javascript">
function TestStampValues(){
TestStampValue('testinp','123');
TestStampValue('testtxt','123');
}

function TestStampValue(tag, value){
var a = document.getElementById(tag);
a.value = value;
}
</script>
</head>
<body>
<form action="ajax.html" method="post" id="testfrm" name="testfrm">
<input type="text" id="testinp" name="testinp" />
<textarea id="testtxt" name="testtxt" cols="10" rows="5"></textarea>
<a href="#" onclick="TestStampValues();">test</a>
</form>
</body>
</html>


I'm testing with several simulators and JDE. Here's the list:

Simulator 4.2.0.67 - 8100 Vodafone - ok
Simulator 4.2.1.90 - 8800 Vodafone - not ok
Simulator 4.2.2.114 - 8300 Vodafone - not ok
JDE 4.0.2 - <b>7290</b> - Not ok
JDE 4.1.0 - <b>7290</b> - Ok
JDE 4.2.1 - 8800 - Not ok
JDE 4.3.0 - 8120 - Not ok

Please help...

 
Old February 19th, 2008, 05:26 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Do you have to use JS? Why not use ASP:

<textarea...><= "123" %></textarea>


Wind is your friend
Matt
www.elitemarquees.com.au
 
Old February 20th, 2008, 02:14 AM
Registered User
 
Join Date: Feb 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did try before, but it is still not working.
I have logged a request to Blackberry support with request number RQST00004699918.
It should a bug and I got reply from other forum said that it will be solved in JDE 4.3.1.
Now, I am waiting reply from BlackBerry support to confirm about this.
 
Old February 20th, 2008, 09:15 PM
Registered User
 
Join Date: Feb 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I already confirmed from BlackBerry support that it is a bug in JDE 4.3.0 and resolved in JDE 4.3.1 (coming release) :D






Similar Threads
Thread Thread Starter Forum Replies Last Post
Text area Wenggo VBScript 5 September 20th, 2008 07:21 PM
Submit text to main page from text area... user0b PHP How-To 2 June 30th, 2008 09:52 PM
text area box shoakat Classic ASP Databases 2 September 11th, 2004 07:28 AM
text in limited area alittlebitter32 Dreamweaver (all versions) 4 July 8th, 2004 10:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.