Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

dynamically populate the htmlview

3 posts in General Discussion Last posting was on 2012-08-20 22:36:28.0Z
Mike R Posted on 2012-08-01 22:43:04.0Z
Sender: 4d98.5019afda.1804289383@sybase.com
From: Mike R
Newsgroups: sybase.public.sup.general
Subject: dynamically populate the htmlview
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <5019b0f8.4dca.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 1 Aug 2012 15:43:04 -0700
X-Trace: forums-1-dub 1343860984 172.20.134.41 (1 Aug 2012 15:43:04 -0700)
X-Original-Trace: 1 Aug 2012 15:43:04 -0700, 172.20.134.41
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1067
Article PK: 1087216

All,

I am new to the world of SUP, so forgive the rookie
question.

I am trying to populate the htmlview control dynamically
from within the custom.js file.

Anyone have experience with this, and maybe some sample
code?

Thanks


"Reed Shilts [Sybase]" Posted on 2012-08-06 20:18:26.0Z
From: "Reed Shilts [Sybase]" <reed dot shilts at sybase dot com>
Newsgroups: sybase.public.sup.general
Subject: Re: dynamically populate the htmlview
Message-ID: <0b902890dikj9d0fcketbcon2vqk5ea4se@4ax.com>
References: <5019b0f8.4dca.1681692777@sybase.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 6 Aug 2012 13:18:26 -0700
X-Trace: forums-1-dub 1344284306 172.20.134.152 (6 Aug 2012 13:18:26 -0700)
X-Original-Trace: 6 Aug 2012 13:18:26 -0700, vip152.sybase.com
Lines: 34
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1069
Article PK: 1087218

To populate from the JS file - you can just write into the value
property of the HTML control. Something like this will do the trick:

First - in the HTML, assume your control is like:
<input type="text"
id="ctlResultBox"
size="100" value="results...">

In the JavaScript
var mvcCount = mvCollection.getCount();
document.getElementById("ctlResultBox").value =
"Data Count: " + mvcCount;

The key is the getElementById("...control-id...")

HTH,
Reed Shilts [SAP]
<Standard-Disclaimers-Apply/>

On 1 Aug 2012 15:43:04 -0700, Mike R wrote:

>All,
>
>I am new to the world of SUP, so forgive the rookie
>question.
>
>I am trying to populate the htmlview control dynamically
>from within the custom.js file.
>
>Anyone have experience with this, and maybe some sample
>code?
>
>Thanks