IIS ASP - Reading DIV Tags

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > December 2004 > Reading DIV Tags





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Reading DIV Tags
Shahid Juma

2004-12-22, 5:54 pm

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


Ray Costanzo [MVP]

2004-12-22, 5:54 pm

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

"Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
news:OnGaGWG6EHA.2196@TK2MSFTNGP14.phx.gbl...
> 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
>
>



Shahid Juma

2004-12-22, 5:54 pm

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

Shahid

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uqennZG6EHA.3944@TK2MSFTNGP12.phx.gbl...
> 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
>
> "Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
> news:OnGaGWG6EHA.2196@TK2MSFTNGP14.phx.gbl...
know[vbcol=seagreen]
>
>



Ray Costanzo [MVP]

2004-12-22, 5:54 pm

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


"Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
news:uk1weaG6EHA.824@TK2MSFTNGP11.phx.gbl...
> I know it is client side, and the goal is to get it back to the server....
>
> Shahid
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> message news:uqennZG6EHA.3944@TK2MSFTNGP12.phx.gbl...
> It's
javascript[vbcol=seagreen]
> way,
> know
>
>



Shahid Juma

2004-12-23, 7:47 am

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

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OSfvyfG6EHA.248@TK2MSFTNGP10.phx.gbl...
> 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
>
>
> "Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
> news:uk1weaG6EHA.824@TK2MSFTNGP11.phx.gbl...
server....[vbcol=seagreen]
> javascript
>
>



Ray Costanzo [MVP]

2004-12-23, 5:59 pm

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

"Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
news:uPEiEUP6EHA.1404@TK2MSFTNGP11.phx.gbl...
> 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?
>



Curt_C [MVP]

2004-12-23, 5:59 pm

if it hasn't been submitted you cant use ASP to get it, its still client
side. This mean use javascript. Something like a

myVar = formName.controlName.value

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
news:uPEiEUP6EHA.1404@TK2MSFTNGP11.phx.gbl...
> 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
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> message news:OSfvyfG6EHA.248@TK2MSFTNGP10.phx.gbl...
> contents
> server....
>
>



Shahid Juma

2004-12-23, 5:59 pm

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

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uT4iOcP6EHA.2012@TK2MSFTNGP15.phx.gbl...
> if it hasn't been submitted you cant use ASP to get it, its still client
> side. This mean use javascript. Something like a
>
> myVar = formName.controlName.value
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
> news:uPEiEUP6EHA.1404@TK2MSFTNGP11.phx.gbl...
in[vbcol=seagreen]
code.[vbcol=seagreen]
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com