Skip to main content
Inspiring
May 14, 2007
Question

select change address

  • May 14, 2007
  • 2 replies
  • 295 views
Hi,

<cfquery 1> get state </cfquery


<form>

<select name=getlocal>
show states..
</select


in another part on the page; base on the state that was selected in the
getlocal i want to show the full address for that location.

----
<cfquery name="getaddr">
get address from xxx where state = state
</cfquery>

<cfoutput query="getaddr">
Adobe
101 Mockingbird lane
Wilson, CT 01222
</cfoutput>
----

</form>

How do i get the address to change automatically when the user change the
state selection. Right shows the first selection and when i choose another
state, it doesn't change.

thanks in advance.


This topic has been closed for replies.

2 replies

Inspiring
May 14, 2007
google "cold fusion related selects".
or
do an Advanced Google Groups Search for posts by me that contain the word etiology. I posted my code once or twice.

Then think about what you are doing. How many full addresses do you expect to have per state? Have you considered going with cities instead?
Inspiring
May 14, 2007
Good afternoon:

To my knowledge CF can not do that. CF operates on the server-side, where you are looking for an action that would take place on the client-side. Client-side behaviors are done through CSS, Javascript or Ajax (I no little about the latter).

The good news is that you can go to web sites that demonstrate/display that behavior and study the source code to look how they did it. If the operate with a remote javascript, simply load the address in your browser address bar.

Hope this helps,

Hans