I’ve got a cfgrid that is displaying some program
information. I want the program number to have a link to a pop-up
window which contains an edit form for that program.

Here is the script for the popup window I used on my page
before I implemented a cfgrid:

<script type=”text/javascript”>

function loadEditForm(id) {

windowReference =
window.open(‘frmPrograms.cfm?CFGRIDKEY=’+id,”editProgramWindow”,’scro llbars=no,menubar=no,height=500,width=750,resizable=no,toolbar=no,loca tion=no,status=no’);

}

</script>

I’ve already changed the url to use the CFGRIDKEY.

Here are my cfgridcolumns:

<cfgridcolumn name=”program_id” display=”no”>

<cfgridcolumn name=”program_name” header=”Name”
bold=”yes” href=”?” hrefkey=”program_id” width=”300″
type=”string_noCase”>

<cfgridcolumn name=”description” header=”Description”
width=”650″ select=”no”>

I tried making the program_name cfgridcolumn have an
href=”javascript:loadEditForm(#URLEncodedFormat(Trim(program_id))#)”
but this isn’t working. I get an error message that the variable
program_id doesn’t exist.

I’ve done a grid that links to an edit form in another
section, the difference is that wasn’t using a pop-up window. And I
can send my form to a new window using target=_blank, but I really
would rather use a pop-up window for this.|||
This link may help.
http://www.danvega.org/blog/index.cfm/2008/3/4/ColdFusion-8-Grid-Conte xt-Menu-Part-II

Related posts:

  1. DW 8 to play swf file in popup window
  2. CS3…..using actionscript 2.0…..how do i make a popup window that actually works?
  3. cannot get swf file to play in popup window
  4. CS4 – Open New Window from link; Close newly opened window?
  5. Valuedisplay problems in cfgrid

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD