I am having a problem that I just can't seem to find an answer to. I have 
searched on this and tried several alternatives. Now I am relatively new to 
cfwindow and cfgrid so I am sure I must be missing something/

I am using cfgrid within a cfwindow. Within the grid I am using a href on one 
of the columns to link me to another page. What I want to happen is to display 
this page in the same cfwindow

The problem I have is whenever I click on the link the cfwindow disappears and 
the new page displays in the original browser window. If I use a submit and 
submit the cfform it works fine (unfortunately functionally I cant do that)

I have tried all kinds of solutions but have not succeeded yet, I have tried:

   1. Using appendkey="yes" and href="page.cfm' this has the result above.

   2. appendkey = "yes" and href="javascript:ColdFusion.navigate 
     ('page.cfm','mywindow_body');"

      This has no effect probably because can't have appendkey=yes and 
javascript in
      HREF

   3. I even tried using a seconf cfwindow to display the page and a function to
      show a second window, if linked click in grid using <body onload to open 
second
      window.

If you use a separate browser window using window.open everything works fine. 
The grid shows up in the window, when I click on the link the new page shows up 
in the same window.

Below is the code I am using in example #1 above:

Page 1 - opens the window, displays cfgrid
------
<cfwindow x="210" y="100" width="940" height="675" refreshonshow="true" 
name="mywindow" minHeight="400" minWidth="400"  title="Find an occupation" 
initshow="false" source="T_occupation.cfm?cfdebug" modal="true" />

<a href="javascript:ColdFusion.Window.show('mywindow');"><img 
src="images/Add.gif" align="middle" border="0"></a> 

Page 2
------
<cfgrid width="900" bindonload="no" autowidth="true" 
attributeCollection="#args#"  
    name="Ian" appendkey="Yes" selectmode="Row"
    bind="cfc:occupation.getWorkActivities({cfgridpage},{cfgridpagesize},
    {cfgridsortcolumn},{cfgridsortdirection},{filter2@keyup},{filter3@keyup})">

    <cfgridcolumn name="onetcode" href="page.cfm" header="Job Reqmnt Code" 
     select="false" dataalign="left" width="20">
    <cfgridcolumn name="elementName" header="Description" select="false">
    </cfgrid>

I know I must be missing something.

Thank you for any help,

Ian


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347588
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to