User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 423,464 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,866 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Site Layout and Usability advertiser: Programming Forums
Views: 1484 | Replies: 8
Reply
Join Date: Apr 2006
Posts: 1
Reputation: themastertaylor is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
themastertaylor themastertaylor is offline Offline
Newbie Poster

First post need some help!

  #1  
Apr 29th, 2006
Hi I'm currently buidling my own website and know a feature i want and am looking for a script or some code to do it. only thing is i can't think what it would be called!

basically i want key features of the product on one side of the page, and the other side displays a description of each feature as it is clicked. I want it to load just on the far side of the page though rather than refreshing the whole page if that makes sense - i.e the user remains on the one page but the information changes as they click on things. any pointers would be appreciated!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 49
Reputation: rus is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
rus's Avatar
rus rus is offline Offline
Light Poster

Re: First post need some help!

  #2  
May 19th, 2006
There are many ways to accomplish this, the easiest would be frames, although frames aren't the best way to go anymore. If you use Dreamweaver there are built in options to help you accomplish this, otherwise a tutorial on webmonkey or another how to site would be a good place to learn.
Reply With Quote  
Join Date: Apr 2006
Posts: 116
Reputation: alpha2006 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 5
alpha2006's Avatar
alpha2006 alpha2006 is offline Offline
Junior Poster

Re: First post need some help!

  #3  
May 20th, 2006
Yes. rus is right. The only way to do what you are asking for is using frames. However, frames are not widely used or accepted anymore as good website design.
Reply With Quote  
Join Date: May 2006
Location: Virginia Beach
Posts: 48
Reputation: rickvidallon is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
rickvidallon's Avatar
rickvidallon rickvidallon is offline Offline
Light Poster

Re: First post need some help!

  #4  
May 25th, 2006
You could accomplish this effect with Java Script!
Reply With Quote  
Join Date: Jul 2005
Location: Dallas, TX
Posts: 481
Reputation: campkev is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: First post need some help!

  #5  
May 26th, 2006
The only way to do what you are asking for is using frames
yes, and mountain dew is the only flavor of soda....

taylor, here is a javascript example of something similar to what you want using javascript
<html>
<head>
<title>Our Products</title>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<style type="text/css"> 
	.submenu { padding-left:15px;}
		</style>
<script type="text/javascript">
<!--


function SwitchtoSub1(){
if(document.getElementById){
	var el = document.getElementById('sub2');
		el.style.display = "none";
	var el = document.getElementById('sub1');
		el.style.display = "block";
	var el = document.getElementById('sub3');
		el.style.display = "none";
	}
}

function SwitchtoSub2(){
if(document.getElementById){
	var el = document.getElementById('sub2');
		el.style.display = "block";
	var el = document.getElementById('sub1');
		el.style.display = "none";
	var el = document.getElementById('sub3');
		el.style.display = "none";
	}
}



function SwitchtoSub3(){
if(document.getElementById){
	var el = document.getElementById('sub2');
		el.style.display = "none";
	var el = document.getElementById('sub1');
		el.style.display = "none";
	var el = document.getElementById('sub3');
		el.style.display = "block";
	}
}


-->
</script>
</head>
<body>
<p><b>ProductList</b></p>

<form name="form1" action="productorder.html" method=post>
Please select a product:<br><br>
<input type=radio name=mType onclick="SwitchtoSub1()" value="prod1" checked><b>Product1</b><br>
<input type=radio name="mType" onclick="SwitchtoSub2()" value="prod2"><b>Product2</b><br>
<input type=radio name=mType onclick="SwitchtoSub3()" value="prod3"><b>Product3</b><br>

<br>
<br>
Product Information:
<table bgcolor="#CCCCCC" border=2>
<tr>
<td width=600 height=300>

<div class="submenu" id="sub1" style="display:block;">
Product 1 Sucks but its free.
</div>


<div class="submenu" id="sub2" style="display:none;">
Product 2 is cheap and does some neat stuff
</div>
<div class="submenu" id="sub3" style="display:none;">
Product 3 does everything, but it costs more than your house
</div>&nbsp;
</td></tr></table><br>
<table>
<tr><td width=600>
<center><input type=submit name="cont" value=Continue></center>
</td></tr></table></form>
</body></html>
Reply With Quote  
Join Date: Jun 2006
Posts: 15
Reputation: GRex is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
GRex's Avatar
GRex GRex is offline Offline
Newbie Poster

Re: First post need some help!

  #6  
Jun 1st, 2006
If you feel adventurous enough, read up on ajax. It's meant to be such that everything that happens on your page don't need to be refreshed.
Reply With Quote  
Join Date: Oct 2005
Location: Northampton UK
Posts: 1,142
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Rep Power: 6
Solved Threads: 9
roryt's Avatar
roryt roryt is offline Offline
Veteran Poster

Re: First post need some help!

  #7  
Jun 7th, 2006
Originally Posted by alpha2006
Yes. rus is right. The only way to do what you are asking for is using frames. However, frames are not widely used or accepted anymore as good website design.

Really you think this yet you can type your own name? Who's a clever boy. lol. The most effective way is defenately using javascript. I wouldn't use frames it will not achieve what you want exactly and will give you strange scroll bars.
Reply With Quote  
Join Date: Dec 2004
Posts: 49
Reputation: rus is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
rus's Avatar
rus rus is offline Offline
Light Poster

Re: First post need some help!

  #8  
Jun 7th, 2006
Originally Posted by roryt
Really you think this yet you can type your own name? Who's a clever boy. lol. The most effective way is defenately using javascript. I wouldn't use frames it will not achieve what you want exactly and will give you strange scroll bars.


Yes, you could do frames without the scrollbars, but frames are old technology that doesn't work very well. In fact, it's been so long since I've used frames in a site I can't even give you a code sample.

I'm sorry you are having to hear all the bickering and different ideas when you really need a clear pointer as to how to acheive the effect you want.

Some solutions you could research further are:
Frames
I Frames
Ajax
You could do this with "dynamic" coding such as PHP or VBScrip.
Javascript

As they say, there are many ways to skin a cat.

I hope this helps some.
Reply With Quote  
Join Date: Oct 2004
Location: Romania
Posts: 48
Reputation: m-soft is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
m-soft m-soft is offline Offline
Light Poster

Re: First post need some help!

  #9  
Sep 17th, 2006
the best solution is with php and Javascript.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Site Layout and Usability Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Site Layout and Usability Forum

All times are GMT -4. The time now is 3:13 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC