Reading DIV Tags

R

Ray Costanzo [MVP]

ASP will not be able to read contents of DIV tags.

The sample snippet that you inlcuded in this message is not ASP code. It's
client-side code. Try asking in a client-side group such as a javascript
one. If you're looking to get this value back to the ~server~ in some way,
then post back here indicating that.

Ray at work
 
S

Shahid Juma

Hi,

I have a function in ASP and I want to read a DIV tag. Any ideas? I know
the syntax but when I apply it, doesn't work.
(document.all.message.innerHtml)

Thanks in advance,
Shahid
 
S

Shahid Juma

I know it is client side, and the goal is to get it back to the server....

Shahid
 
R

Ray Costanzo [MVP]

In order for it to get back to the server, you'll have to pass it in a
cookie, a form input, or the querystring.

How is it that the page is not/can not already be aware of what the contents
are? Is the user entering some text somewhere that is populating the
innerHTML of the div?

Ray at work
 
S

Shahid Juma

Thanks,

What is the syntax to grab a form input? I know once a form has been
submitted you can use request.querystring or request.post, but without
submitting, is there any way?

Thanks,
Shahid
 
R

Ray Costanzo [MVP]

Serverside is request.querystring or request.FORM.

Prior to submission would involve client-side scripting, such as
document.formname.inputname, but you may want to confirm in a group that
focuses on client-side scripting.

Ray at work
 
S

Shahid Juma

Thank you all for your help....I had to use a combination of javascript and
submitting to the form in order to capture the results from
javascript...Perhaps not the best solution but workable for the moment.

Thanks again..

Shahid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,429
Latest member
JacelynKit

Latest Threads

Top