I need to navigate images on a page without changing the page, similar
to using js.target.location with frame sets.
I have the following code which works fine in IE, but doesn�t render the
pic in NS � any thoughts why the image placeholder shows up but the
image is not rendered?


<!--- For this example I created a table with 3 items. --->
<!---  --->
<!--- Artid
Art_title
picture  --->

<!--- Write a query and select the items you want to appear in the left
side of the table. --->


<cfquery name="getart" datasource="frameless">
    select artid,art_title
    from frames
</cfquery>


<cfquery name="foobar" datasource="frameless">
            SELECT artid
            FROM frames
            WHERE artid=3
</cfquery>


<!--- Set a default parameter .


<cfparam name=�url.artid� default=�0�>--->


<!--- Make a table in your cfm page with 1 row and 2 columns. --->
<table width="400" border="1">
  <tr>
    <td width="200">
            <ul>
            <cfoutput query="getart">
              <li><a
href="">             </cfoutput>
            </ul>
            <cfoutput query="foobar">
            <a href="" src=""> wed01.gif"></a>
            </cfoutput>
            </td>
    <td>
            <cfif isdefined("url.artid") and #Url.artid #is not 0> <!---
--->
    <cfquery name="getart1" datasource="frameless">
           select *
           from frames
           where artid=#url.artid#
     </cfquery>
     <!--- Then output the query results into our right side. --->


     <cfoutput query="getart1">
       <strong>#art_title#</strong><br><br>
       #picture#
      </cfoutput>


     <!--- Add the else statement so the page right side is not empty
when it is first opened  --->


<!--- --->            
            <cfelse>
   <!--- enter default message here --->
   <!---  This picture would appear as the default message on this page.
--->
            <img src="" align="absmiddle"/>
   <!--- end enter default message here --->
            </cfif>
            </td>
  </tr>
</table>

Thanks
Steve
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to