PDA

View Full Version : Dynamic Ajax Content with selectbox?



richmoijn
11-12-2005, 09:12 AM
Hi!

I've found an awesome script here att DD, Dynamic Ajax Content (http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm) , I've been looking for this a long period of time now and finally! :)

BUT
Can I (of course I can...) change the textlinks to be selectbox instead, and if, how do i accomplish that? I would prefer a selectbox without needing to submit with a ok button...

Maybe someone can give me som advice?

Thank you for (a) good script(s)/site!

//Rickard

Twey
11-12-2005, 10:26 AM
<select onchange="ajaxpage(this.value, 'contentarea');">
<option value="a.htm">A</option>
<option value="b.htm">B</option>
<option value="c.htm">C</option>
</select>

richmoijn
11-12-2005, 11:04 AM
<select onchange="ajaxpage(this.value, 'contentarea');">
<option value="a.htm">A</option>
<option value="b.htm">B</option>
<option value="c.htm">C</option>
</select>

Thank You! Works Perfect!

//Rickard