473,503 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A FAQ on my web page

I would like to create a FAQ feature for my web page that populates
from a table in the sql server. My table would have a column for a
question and one for answer. On the web page I would like to only show
the questions listed and when the user clicks the question javascript
would expand the answer below it. Then if they click the question the
answer disappears again.

How do I do the javascript part and fill it with the data from the
server?

Nov 19 '05 #1
3 1098
Antonio wrote:
I would like to create a FAQ feature for my web page that populates
from a table in the sql server. My table would have a column for a
question and one for answer. On the web page I would like to only show
the questions listed and when the user clicks the question javascript
would expand the answer below it. Then if they click the question the
answer disappears again.

How do I do the javascript part and fill it with the data from the
server?


just use a SPAN or DIV. Passing in the text is easy, bury an <asp:Label
into it, but the rest is clientside javascript, I'd suggest hitting a
javascript group....

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #2
First read the asp.net quickstarts.

Dont expect people to make everything for you here. People doesnt post
complete solutions only suggestions.

"Antonio" <bl*****@yahoo.com> escribió en el mensaje
news:11**********************@g14g2000cwa.googlegr oups.com...
I would like to create a FAQ feature for my web page that populates
from a table in the sql server. My table would have a column for a
question and one for answer. On the web page I would like to only show
the questions listed and when the user clicks the question javascript
would expand the answer below it. Then if they click the question the
answer disappears again.

How do I do the javascript part and fill it with the data from the
server?

Nov 19 '05 #3
I would like to create a FAQ feature for my web page that populates
from a table in the sql server. My table would have a column for a
question and one for answer. On the web page I would like to only show
the questions listed and when the user clicks the question javascript
would expand the answer below it. Then if they click the question the
answer disappears again.

How do I do the javascript part and fill it with the data from the
server?

"Antonio" <bl*****@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I would like to create a FAQ feature for my web page that populates
from a table in the sql server. My table would have a column for a
question and one for answer. On the web page I would like to only show
the questions listed and when the user clicks the question javascript
would expand the answer below it. Then if they click the question the
answer disappears again.

How do I do the javascript part and fill it with the data from the
server?


__________________________________________________ _____________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>

Nov 19 '05 #4

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

Similar topics

1
4177
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
0
2405
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
2
4326
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
4
2791
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
2
3603
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
6
2937
by: MooreSmnith | last post by:
When I navigate to the next page using Response.Rediect("MyNextPage.aspx") current page Page_Load event is called. What I may wrongly understood is that post back will happen whenever there is any...
1
2256
by: Lenard Gunda | last post by:
Hi! I have the following problem. From my main page, when someone clicks a button, it uses client side javascript to open another .aspx page. This page displays content, based on what the...
15
4713
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
8
2650
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated?...
3
2314
by: Mesut | last post by:
I have written a form in with radio buttons the name is set to orderby and the value is set to KundeVorName and the next value is KundeNachName and it goes so on. I wanna modify my query according...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
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
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.