Partially refresh the page

D

Doru Roman

Hi,

What I want to achieve is:
when changing the value in a drop down box to display something as
a text inside an area without refreshing the whole page
 
R

Ray at

You'll most likely want to use client side code then.

<form name="formname">
<select onchange="this.document.formname.textboxname.value='You selected
'+this.value;">
<option value="1">Option 1</option>
<option value="2">Option 1</option>
<option value="3">Option 1</option>
</select>

<input type="text" name="textboxname">
</form>

Ray at work
 
J

John Beschler

If the text you want to display is already available
someplace inside the page, you could use javascript to
accomplish this. It's a bit tricky, but it can be done.

I've done this using buttons that appear with predefined
text based upon the users selection from a drop-down box.


Basically, you write code for the onclick event of the
drop down to control the text in your page.

BTW, it is not possible to "partially refresh the page."

What you would actually be doing with the javascript is
changing the content of the page client-side.

John
 
D

Doru Roman

I know to do it with the text box, but is it possible without any boxes,
just text?
 
R

Ray at

Probably, with some of that fancy innerHTML stuff that I don't know anything
about. :p Try posting to a client-side group, such as scripting.jscript or
an IE group.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,079
Messages
2,570,575
Members
47,207
Latest member
HelenaCani

Latest Threads

Top