faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

How do I use the 'select' form, and display the value (web page) to a div?

Apr 9th, 2008 20:20
ha mo, Dave Clark, Robert Mullins,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Robert,
     Can't display it to a DIV without using AJAX or submitting the 
form to the server and letting server-side code perform the dirty 
work.  Now, if you want to display it in an IFRAME -- can do:
<select name="myselect" size="1" onchange="
 if (this.selectedIndex > 0)
   self.frames['iframeName'].location.href
       = this.options[this.selectedIndex].value;
 return true;">
     Otherwise, to learn more about AJAX:
http://jibbering.com/2002/4/httprequest.html
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.healthinhealth.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com