Hi guys,
pulling my hair out with this one.
i want to have an image change when there is a change in the select item change, without having to refresh the page.
the img url output looks like this
how to change the img url when select is changed?Code:<cfoutput query="getsystems"><cfif #getsystems.Picture# is not ""><img name="" src=http//the url/systems/pictures\#Picture#" border="0" alt="#getsystems.system_name#"></cfif></cfoutput> the select statement for said item: <cfoutput query="getcase"> <option value="#recordid#" <cfif #recordid# is #getsystems_defaults.case#> selected</cfif>><cfif #manufacturer# is not "">#manufacturer# - </cfif>#left(item_name,"100")# [<cfif #price# gt #caseprice#>+ #dollarformat(price-caseprice)#<cfelseif #price# lt #caseprice#>- #dollarformat(caseprice-price)#<cfelse>0</cfif>]</option> </cfoutput> </select>
thanks
scott
Last edited by WingedPanther; 11-13-2008 at 09:01 AM. Reason: add code tags
You will have to use JavaScript (possibly AJAX) to do that.
thats exactly what i was trying but having it with in the CF was giving me fits
thanks
scott
CF cannot respond to what happens in the browser unless it is notified by either a form submission or an AJAX communication.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks