Skip to main content
Mar 6, 2010 2:44 PM UTC
Question

Show country image "Y" based on countryID selection X

Hi there,

On my web page, I have a list of "countries" on the left using cfquery output, and on the right I want to show the image of that country maybe in a table object. but how do I know which country the user chose from the list on the left so that I can do an sql query "display x where countryID=y"?

thanks a lot

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Inspiring
    Mar 6, 2010 2:51 PM UTC

    Use url variables.  Look at the address bar in your browser for an example.

    Translate
    Mar 6, 2010 2:57 PM UTC

    thanks Dan,

    Yes I am working on that. but I am following Bob Flynn's book (DW CS3: Trainign from the Source) where he shows

    you how to show a country image on the right of a web page, having selected a country from the list on the left (all on the same page). He is using spry widgets based on an XML datasheet. However, he is basing all this on CS3 (I use CS4) and the DW Application developers Toolkit which makes creating the datasheet easy. In CS4 i can't seem to get the XML datasheet to dynamically update properly.

    Any ideas?

    Translate