473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Reading DIV Tags

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
Jul 22 '05 #1
7 2098
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" <sh*****************@hotmail.com> wrote in message
news:On**************@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

Jul 22 '05 #2
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:uq**************@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" <sh*****************@hotmail.com> wrote in message
news:On**************@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


Jul 22 '05 #3
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" <sh*****************@hotmail.com> wrote in message
news:uk*************@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:uq**************@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" <sh*****************@hotmail.com> wrote in message
news:On**************@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



Jul 22 '05 #4
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:OS*************@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" <sh*****************@hotmail.com> wrote in message
news:uk*************@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:uq**************@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" <sh*****************@hotmail.com> wrote in message
news:On**************@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
>
>



Jul 22 '05 #5
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" <sh*****************@hotmail.com> wrote in message
news:uP**************@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?

Jul 22 '05 #6
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" <sh*****************@hotmail.com> wrote in message
news:uP**************@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:OS*************@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" <sh*****************@hotmail.com> wrote in message
news:uk*************@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:uq**************@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" <sh*****************@hotmail.com> wrote in message
> > news:On**************@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
> > >
> > >
> >
> >
>
>



Jul 22 '05 #7
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:uT**************@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" <sh*****************@hotmail.com> wrote in message
news:uP**************@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:OS*************@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" <sh*****************@hotmail.com> wrote in message
news:uk*************@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:uq**************@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" <sh*****************@hotmail.com> wrote in message
> > news:On**************@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
> > >
> > >
> >
> >
>
>



Jul 22 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Christian Caron | last post by:
Hi all, I have a page which contains the following tag: <head> <meta name="date_modified" content="20030730" /> </head> (...) <script> (...)
12
by: Anna | last post by:
Hi all, I posted the same question this afternoon but my message isn't showing up, so I thought I'd give it another try.... in case you should see it later I apologize for posting the same...
4
by: supster | last post by:
I have the full file path of a file stored as a string and I'de like to get the file size in bytes. What is the most efficient way of doing this with a static method from the File class or...
0
by: David | last post by:
I'm using an XPathNodeIterator to select an element in an XML document that contains text I am going to put in a label on an aspx page. I want to be able to include HTML tags in the text read from...
7
by: emferrari | last post by:
Hi all I have a XML file with the following: <Step step="1"> <Text><b>Chapter 1</b> This is a test. Click <b><i>Load</i></b> </Text> </Step>
0
by: suridcs | last post by:
Hi guys, i want to perform one operation like i am developing a control to compare 2 documents of any format. If i am comparing 2 HTML documents all the HTML tags are appearing in the comparision...
3
by: lizii | last post by:
i have a file - which on each line has some data i need to fill into a box - now although reading in the data is simple enough and putting it in the correct box will be no problem, as i can just...
2
by: dennis.sprengers | last post by:
Ik ben bezig met een eigen UBB editor. Als iemand aan het typen is, zorgt CTRL-B voor een \-tag en nogmaals CTRL-B voor een \ tag. Als je eerst een selectie maakt en dan CTRL-B drukt, wordt de...
3
by: Paul Moore | last post by:
I'd like to write some scripts to analyze and manipulate my music files. The files themselves are in MP3 and FLAC format (mostly MP3, but FLAC where I ripped original CDs and wanted a lossless...
2
by: Clive Green | last post by:
Hello peeps, I am using PHP 5.2.2 together with MP3_Id (a PEAR module for reading and writing MP3 tags). I have been using PHP on the command line (Mac OS X Unix shell, to be precise), and am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.