asp_databases thread: ASP, VBSCRIBT, JAVASCRIPT, HTML TABLES,
Message #1 by "Phil Perks" <philp@w...> on Thu, 25 May 2000 20:34:4
|
|
---Original Message-----
From: Flaherty, ENS John E [mailto:John.E.Flaherty@S...]
Sent: 25 May 2000 16:49
To: 'support@w...'
Cc: 'navyfamily@b...'
Subject: ASP, VBSCRIBT, JAVASCRIPT, HTML TABLES, AND YOUR BOOK
Dear Support,
I own several Wrox books (Beg. ADO databases, Beg ASP 2.0) and love them.
However, I've read through them and still can't seem to find the answer to
what I'm looking for. Here's the situation. I've used ASP to get
questions and answers from an MS Access database into an html table. I
want the answers hidden from the user until they want to see each one
individually.
When they do want to see them I thought the easiest way would be to put a
button of some sort next to the question that said "SHOW ANSWER" and when
the button is pressed the cell appeared dynamically without having to make
a call to the server. I thought I could do it using vbscript as I do in
vb
(i.e. object.hide or object.show), but it appears there is no such
functionality. I even thought I could dynamically change the color of an
individual cell, but can't seem to uncover that functionality either.
Basically, I'm having trouble seeing how to accomplish it with doing
building a layer for each question/answer set and that could be 200 layers
(which I'm sure would load really quickly....not!).
I'd sure appreciate any suggestions you have.
Thanks,
John Flaherty
Message #2 by ckoski@w... on Thu, 25 May 2000 17:20:49 -0400
|
|
Phil,
Your answer lies with DHTML and CSS...
Good luck,
Cory
----- Original Message -----
From: "Phil Perks" <philp@w...>
To: "ASP Databases" <asp_databases@p...>
Sent: Thursday, May 25, 2000 8:00 PM
Subject: [asp_databases] ASP, VBSCRIBT, JAVASCRIPT, HTML TABLES,
> ---Original Message-----
> From: Flaherty, ENS John E [mailto:John.E.Flaherty@S...]
> Sent: 25 May 2000 16:49
> To: 'support@w...'
> Cc: 'navyfamily@b...'
> Subject: ASP, VBSCRIBT, JAVASCRIPT, HTML TABLES, AND YOUR BOOK
>
>
> Dear Support,
>
> I own several Wrox books (Beg. ADO databases, Beg ASP 2.0) and love them.
> However, I've read through them and still can't seem to find the answer to
> what I'm looking for. Here's the situation. I've used ASP to get
> questions and answers from an MS Access database into an html table. I
> want the answers hidden from the user until they want to see each one
> individually.
>
> When they do want to see them I thought the easiest way would be to put a
> button of some sort next to the question that said "SHOW ANSWER" and when
> the button is pressed the cell appeared dynamically without having to make
> a call to the server. I thought I could do it using vbscript as I do in
> vb
> (i.e. object.hide or object.show), but it appears there is no such
> functionality. I even thought I could dynamically change the color of an
> individual cell, but can't seem to uncover that functionality either.
> Basically, I'm having trouble seeing how to accomplish it with doing
> building a layer for each question/answer set and that could be 200 layers
> (which I'm sure would load really quickly....not!).
>
> I'd sure appreciate any suggestions you have.
>
> Thanks,
>
> John Flaherty
>
Message #3 by "Mukul Jain" <jainmukul@h...> on Fri, 26 May 2000 07:25:52 IST
|
|
why don't u try the same using the hidden fields of the FORM !!
and then display the value using Javascript
U have to use form's hidden fields and Javascript(Client Side Scritping) to
atttain what u want
:))
Magic Guy
From: "Phil Perks" <philp@w...>
Reply-To: "ASP Databases" <asp_databases@p...>
To: "ASP Databases" <asp_databases@p...>
Subject: [asp_databases] ASP, VBSCRIBT, JAVASCRIPT, HTML TABLES,
Date: Thu, 25 May 2000 20:34:4
---Original Message-----
From: Flaherty, ENS John E [mailto:John.E.Flaherty@S...]
Sent: 25 May 2000 16:49
To: 'support@w...'
Cc: 'navyfamily@b...'
Subject: ASP, VBSCRIBT, JAVASCRIPT, HTML TABLES, AND YOUR BOOK
Dear Support,
I own several Wrox books (Beg. ADO databases, Beg ASP 2.0) and love them.
However, I've read through them and still can't seem to find the answer to
what I'm looking for. Here's the situation. I've used ASP to get
questions and answers from an MS Access database into an html table. I
want the answers hidden from the user until they want to see each one
individually.
When they do want to see them I thought the easiest way would be to put a
button of some sort next to the question that said "SHOW ANSWER" and when
the button is pressed the cell appeared dynamically without having to make
a call to the server. I thought I could do it using vbscript as I do in
vb
(i.e. object.hide or object.show), but it appears there is no such
functionality. I even thought I could dynamically change the color of an
individual cell, but can't seem to uncover that functionality either.
Basically, I'm having trouble seeing how to accomplish it with doing
building a layer for each question/answer set and that could be 200 layers
(which I'm sure would load really quickly....not!).
I'd sure appreciate any suggestions you have.
Thanks,
John Flaherty
Message #4 by "Ruud Voigt" <RuudVoigt@w...> on Fri, 26 May 2000 09:26:44 +0200
|
|
To hide an object in Internet Explorer add the the following style
style="visibility: hidden"
To make it visable again use something like
elementID.style.visibility = "visible"
another way to do it would be to use
CellID.innerText = "the answer"
to add the answer into the html after loading
I have no idea how to do it in netscape but I
assume its posible in the later versions.
-----Original Message-----
From: Phil Perks [mailto:philp@w...]
Sent: Thursday, May 25, 2000 8:00 PM
To: ASP Databases
Subject: [asp_databases] ASP, VBSCRIBT, JAVASCRIPT, HTML TABLES,
---Original Message-----
From: Flaherty, ENS John E [mailto:John.E.Flaherty@S...]
Sent: 25 May 2000 16:49
To: 'support@w...'
Cc: 'navyfamily@b...'
Subject: ASP, VBSCRIBT, JAVASCRIPT, HTML TABLES, AND YOUR BOOK
Dear Support,
I own several Wrox books (Beg. ADO databases, Beg ASP 2.0) and love them.
However, I've read through them and still can't seem to find the answer to
what I'm looking for. Here's the situation. I've used ASP to get
questions and answers from an MS Access database into an html table. I
want the answers hidden from the user until they want to see each one
individually.
When they do want to see them I thought the easiest way would be to put a
button of some sort next to the question that said "SHOW ANSWER" and when
the button is pressed the cell appeared dynamically without having to make
a call to the server. I thought I could do it using vbscript as I do in
vb
(i.e. object.hide or object.show), but it appears there is no such
functionality. I even thought I could dynamically change the color of an
individual cell, but can't seem to uncover that functionality either.
Basically, I'm having trouble seeing how to accomplish it with doing
building a layer for each question/answer set and that could be 200 layers
(which I'm sure would load really quickly....not!).
I'd sure appreciate any suggestions you have.
Thanks,
John Flaherty
|