User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » web-javascript/html help Page [1]  
raiden
All American
10505 Posts
user info
edit post

trying to do something to where I have the buttons




and when I click on a button, content gets displayed below from html file.

like when I click button number 1, text from number1.html gets displayed, and when click button number 2, text from number2.html gets displayed. not worried about backgrounds and all that, just trying to get text to display on the current page from those other pages when the buttons are clicked.



and my google fu is weak.

8/24/2008 5:00:52 AM

BigMan157
no u
103354 Posts
user info
edit post

http://www.w3schools.com/Ajax/tryit.asp?filename=tryajax_httprequest_js1

8/24/2008 11:08:35 AM

raiden
All American
10505 Posts
user info
edit post

baller, thanks

8/24/2008 1:00:41 PM

RSXTypeS
Suspended
12280 Posts
user info
edit post

you can do it two ways. Either have the content for both buttons on the same page but in hidden divs. Give each div a unique ID. and you can toggle the .style.display from none to block depending on which button is clicked.

OR

you can do it the right and better way and use AJAX.
http://www.prototypejs.org/

[Edited on August 24, 2008 at 3:04 PM. Reason : asdf]

8/24/2008 3:03:33 PM

 Message Boards » Tech Talk » web-javascript/html help Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.