Cfgrid & coldfusion.navigate

I am using a cfgrid and javascript to update a div container.
I am binding the grid to the javascript with cfajaxproxy.
When I click on the grid the appropriate record should show
in the div contain and it does. The problem is that the div
container flashes therefore it is not seamless. I am using
Coldfusion.navigate to pass appropriate parms to the page that
needs to load into the div container. Here is the code that I am
using. I hope that someone has a clue how I can fix this because I
apparently am clueless......
Grid Code followed by the javascript code:

oops, I had two arguments inverted..
Should have been...
ColdFusion.navigate('/cf8/text.cfm','myDiv',mycallBack,myerrorHandler,'POST','form1')

Similar Messages

  • Cfmenuitems no longer work after coldfusion.navigate

    There are times when you want to make slight changes to menus based on what a user does.  It would be nice to simply "refresh" the menu (likely a cfdiv containing a cfmenu) using ColdFusion.navigate(..).  However, if your menu contains cfmenuitems, they no longer appear ("drop down") after performing the navigate. If this is the intended behavior I think it is a major limitation.  (CF9 and CF8)
    code for my_test.cfm:
    <cfajaximport />
    <cfdiv id="myDiv">
    <cfmenu name="my_menu" type="horizontal">
    <cfmenuitem name="options" display="My Options">
    <cfmenuitem name="option1" display="Option 1" href="javascript:ColdFusion.navigate('my_test.cfm','myDiv')" />
    <cfmenuitem name="option2" display="Option 2" href="javascript:ColdFusion.navigate('my_test.cfm','myDiv')" />
    <cfmenuitem name="option3" display="Option 3" href="javascript:ColdFusion.navigate('my_test.cfm','myDiv')" />
    </cfmenuitem>
    </cfmenu>
    </cfdiv>

    It turns out that if you remove any one of the cfmenuitem elements prior to doing the navigate the cfmenuitems work correctly...
    <cfajaximport />
    <script type="text/javascript">
      function myNav() {
                removeElements();
                ColdFusion.navigate('my_test.cfm','myDiv');
      function removeElements() {
              var d = document.getElementById('myDiv');
              var e = document.getElementById('option1');
              d.removeChild(e);
    </script>
    <cfdiv id="myDiv">
      <cfmenu name="my_menu" type="horizontal">
      <cfmenuitem name="options" display="My Options">
      <cfmenuitem name="option1" display="Option 1" href="javascript:myNav();" />
      <cfmenuitem name="option2" display="Option 2" href="javascript:myNav();" />
      <cfmenuitem name="option3" display="Option 3" href="javascript:myNav();" />
      </cfmenuitem>
      </cfmenu>
    </cfdiv>

  • Can you toggle open/close javascript:ColdFusion.navigate?

    I'm looking for a way to toggle open/close a table row within a search query.  I have a table of results and a link to more detailed information. I would like that page to stay within the current page.  I have the ColdFusion.navigate working correctly but wondering if there is a way to close it?
    Here's some of the code I'm using...
    <td><a href="javascript:ColdFusion.navigate('details.cfm?ID=#ID#','detail#q.CurrentRow#')">#q.sl n#, #q.sfn#</a></td>
    <td><cfdiv id="detail#q.CurrentRow#"></cfdiv>
    Message was edited by: Catherine Lesniewski

    It is still unclear what you wish to toggle with what. There are a number of processes going on underneath: the open window, its original content, the content - within the window - coming from  detail.cfm, and the closed window. It may be impossible to toggle between them.
    ColdFusion.navigate() does not create the window. Neither can it open a window. It simply copies output from the page detail.cfm into the already opened window.
    You would therefore need, besides ColdFusion.navigate(), two further events. One to open or re-open the window and one to close it. That makes a total of at least 3 events.
    Here is an example toggling a shown and a hidden window:
    <table>
    <cfoutput query="q">
    <tr><td><a href="javascript:ColdFusion.navigate('details.cfm?ID=#ID#','detail#q.CurrentRow#')">#q.sl n#, #q.sfn#</a></td><td><a href="javascript:ColdFusion.Window.hide('detail#q.CurrentRow#');">Hide</a> | <a href="javascript:ColdFusion.Window.show('detail#q.CurrentRow#');">Show</a></tr>
    </cfoutput>
    </table>

  • ColdFusion.navigate and unvisited tabs

    I have created a cflayout (type = border). Naturally, I have
    a nifty left side menu, which outputs a query result as a text.
    In the center layoutarea, I have a new layout of two tabs.
    The tabs are named projectOverview and projectTickets
    A link in the left navigation menu is like: <a
    href="javascript:
    ColdFusion.navigate('project.cfm?pid=#id#','projectOverview');
    ColdFusion.navigate('tickets.cfm?pid=#id#','projectTickets')">#projectName#</a>
    Now, when I click the link, the projectOverview tab updates
    contents always, but projectTickets never updates, until I manually
    visit that tab first once. Clicking the left link for the first
    time, and then going to the Tickets tab doesn't show the changes.
    The next clicking will update the tab, because now it was once
    visited.
    How could I get around this issue (a bug?) ?
    Example cflayout that I use currently.
    <cflayout type="border" align="justify">
    <cflayoutarea position="left" name="projectDiv"
    title="Projects" splitter="true"
    collapsible="true" source="projectlist.cfm" size="170"
    maxsize="350">
    </cflayoutarea>
    <cflayoutarea position="center" align="justify"
    overflow="auto" >
    <cflayout type="tab" name="mainarea">
    <cflayoutarea name="projectOverview" title="Project
    Overview" source="project.cfm" selected="true">
    </cflayoutarea>
    <cflayoutarea name="projectTickets" title="Tickets"
    source="tickets.cfm">
    </cflayoutarea>
    </cflayout>
    </cflayoutarea>
    </cflayout>
    And again: The projectTickets source doesn't update until I
    visit that tab once. Then it updates on every click from within
    projectDiv (projectlist.cfm)

    After investigating a bit, it seems that if you don't specify
    the source attribute for a tab, then the ColdFusion.navigate works
    correctly even for an unvisited tab.However, normally a tab loads
    its contents only when it's activated. Previous ColdFusion.navigate
    referrals are overridden when the tab is activated, thus updating
    the content with the original value of source attribute.
    I think this is unwanted behaviour, right?

  • Issues with coldfusion.navigate (CF9) in Safari & Chrome

    I am using Coldfusion 9. I have a ColdFusion.navigate call in a cfdiv tag located within a Cflayout tag (type tab).
    The following piece of code is located in a file called "inc_shjobs.cfm" and is being called using the src attribute from a Cflayout tag on another page:
    <script>
            ColdFusion.navigate('inc_shjobs.cfm?morejobs','jobs1')
      </script>
    <cfdiv id="jobs1">
    <form name="ne">   
        <table width="98%" cellspacing="1" cellpadding="6" border="0" bgcolor="white" >
          <tr>
            <td colspan="1" align="center"><br />
    <input type="submit" name="morejobs" style="font-size:1.4em; font-style:bold " value="Expand Job Search" onClick="javaScript:ColdFusion.navigate('inc_shjobs.cfm?morejobs','jobs1');    "></td>
          </tr>
      </tr>
      <tr><td><br /><br /></td></tr>
           <tr><td valign="top">
                 <strong>Search Within</strong> <select name="radius" >
          <option value="0" <cfif session.trn.jsradius is 0> selected</cfif>>0 miles</option>
          <option value="5" <cfif session.trn.jsradius is 5> selected</cfif>>5 miles</option>     
          <option value="10" <cfif session.trn.jsradius is 10> selected</cfif>>10 miles</option>           
          <option value="25" <cfif session.trn.jsradius is 25> selected</cfif>>25 miles</option>                 
          <option value="50" <cfif session.trn.jsradius is 50> selected</cfif>>50 miles</option>                 
          <option value="100" <cfif session.trn.jsradius is 100> selected</cfif>>100 miles</option>                 
          <option value="-1" <cfif session.trn.jsradius is -1> selected</cfif>>Statewide</option>                 
          <option value="-2" <cfif session.trn.jsradius is -2> selected</cfif>>Nationally</option>                 
          </select>
        <input type="submit" name="rad" value="Go" onClick="javaScript:ColdFusion.navigate('inc_shjobs.cfm?radius='+ne1.radius.options[radiu s.selectedIndex].value,'jobs1')">  center of  <strong><cfoutput>#session.trn.city#</cfoutput></strong></td>
    <td  valign="top"><a href="dsp_jobresearch.cfm" ><img src="images/justjobs1.gif" alt="Just Job Search" border="0" /> </a></td>
             </tr>
        </table>
        </form>
        </cfdiv>
    In IE and FF, it behaves approriately by loading only the div. In Chrome and Safary, it reloads the entire page and ignores the parameters. When the same code was run under CF8, it also worked.
    Anyone got a clue as to why?
    Thanks!

    I just tested ColdFusion.navigate on Safari and Chrome (Win 7) and everything works fine.
    I recently ran into that same behavior and it had to do with submitting a form. I set an onSuccess or an onSubmit javascript function, which caused an exception and IE didn't handle it very well. It reloaded the entire page.
    I suspect it has to do with a javascript error. I would start by doing some simple js debugging.

  • Coldfusion.navigate moving my browser scrollbar

    I have a little Ajax application to build a document a
    section at a time. It works great except whenever I use
    Coldfusion.navigate to reload my <cflayout type="vbox"> the
    whole page automatically scrolls to the top of the page. Is there
    any way to "lock" the scroll bar in position so it will not move
    when reloading a container? Alternatively is there a way to pass an
    anchor through this function? So far I can't get it to work.

    If you can't see half of your page, it's probably in your
    code. Sounds like
    a tag of somesort hasn't been closed.
    As Ade said, post a link to your page, or put the page
    through the validator
    http://validator.w3.org/ this
    may pick up your problem.
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    |Tutorials|SEO |CSS Templates
    http://www.csstemplates.com.au
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver
    > Hello, I was editing a new template and doing fine until
    SOMETHING in
    > dreamweaver altered my browser settings and now when you
    click on ' view
    > page"
    > in IE browser I have lost the scroll bar and can no
    longer access half of
    > my
    > page. ITS GONE. I have gone over the code dozens of
    times, I even
    > downloaded a
    > new template and still I cannot get the scrollbar to
    show.
    >
    > I have tried to work on this for a week contacting the
    template people and
    > my
    > hosting. While I was working on another page I put my
    cursor over an area
    > on
    > my page where some of the borders were.... just looking
    around at
    > different
    > areas but NOT altering ANYTHING. When I went to close
    that page a notice
    > came
    > up from DREAMWEAVER that ' Settings for the browser had
    been altered did
    > I
    > want to save them?" SEEING THIS ALARMED ME that this may
    be the problem
    > so I
    > said NO and the page was okay. However this may have
    been what happed on
    > my
    > index.html page. Even tho I didnt type or edit ANYTHING
    on the page at
    > the
    > time. I was moving the cursor around on the ' design"
    protion looking at
    > varioius areas on the template.
    >
    > THIS MAY HAVE BEEN WHAT ALTERED MY PAGE and now I cant
    see ' half of my
    > index.html page and there is no scroll bar.
    >
    >
    > PLEASE HELP I have gone everywhere to get some help
    >
    >

  • ColdFusion.navigate call JS function

    Hi,
    I use ColdFusion.navigate to call a cfc method. In this function, it loads a list from database and set the div innerhtml to the list content.
    Then, get the list and it can do the confirmation function.
    However, I find that it always call the confirmation function before loading the list complete.
    What I use is the following:
    ColdFusion.navigate('cfc/control.cfc?method=findSimilarName&new_name='+encodeURIComponent( document.getElementById('name').value),'tempMessage', confirmUpdate(i));
    findSimilarName method will set the similar name list to a div named similarName. And I will use it to do the confirmation.
    Is there any method to force ColdFusion.navigate calling my confirmation function after the findSimilarName method completed?

    Hi Mehdi,
    I'm not really sure what you mean here, but let me suggest a solution.
    I fyou want to execute javascript at the end of a request you can use the ExtendedRenderKitService.
    This makes it possible to add a javascript function call from within javacode.
    Example:
    You have a javascript function named "pressButton"
    <af:resource type="javascript">
         function pressButton() {
             var component = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:r4:0:cb1");
             AdfActionEvent.queue(component, component.getPartialSubmit());
    </af:resource> Now you want to call that function from within javacode using the ExtendedRenderKitService;
    public void actionListener(ActionEvent actionEvent) {  
         FacesContext context = FacesContext.getCurrentInstance();
         AdfFacesContext.getCurrentInstance().isPartialRequest(context)) {
         ExtendedRenderKitService erks = Service.getRenderKitService(context, ExtendedRenderKitService.class);
         erks.addScript(context, "pressButton();");
    } good luck
    Luc Bors

  • ColdFusion.navigate and PIE.htc

    Hello, everyone.
    I'm not sure if PIE.htc is part of the problem; I am assuming.
    But most of the links that appear in Google when using "ColdFusion 9" +"'f' is null or not an object" as the keyword search are links related to PIE.htc.
    I have a list of links that load in a cfdiv when clicked.  [onClick = ColdFusion.navigate('doc.cfm?param=blah blah blah','div_name',myCallback,myErrorHandler)]
    The first time a link is clicked, no problems whatsoever.
    The second time a link is clicked (ANY link), I get the error message 'f' is null or not an object.
    Does ColdFusion.navigate clear/delete a JavaScript variable called 'f' when it kicks in?
    Any suggestions on what could be causing this?
    Thanks,
    ^_^

    The following code works.
    Here you go:
    I had to make a simple version. I am swamped today.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <cfajaximport tags="cfinput-autosuggest,cfinput-datefield,
    cfajaxproxy, cfpod, cftooltip, cfdiv, cfwindow, cflayout-tab,
    cfform,cftextarea">
    <script language="javascript">
    var orgcallBack = function(){
    document.getElementById("orgsection").innerHTML = "This
    Works";
    var salescallBack = function(){
    document.getElementById("").innerHTML = "";
    var oppscallBack = function(){
    document.getElementById("").innerHTML = "";
    <!--- The error handler pops an alert with the error code
    and message. --->
    var myerrorhandler = function(errorCode,errorMessage){
    alert("[In Error Handler]" + "\n\n" + "Error Code: " +
    errorCode + "\n\n" + "Error Message: " + errorMessage);
    </script>
    </head>
    <body>
    <cfform format="html" name="enterpartner" id="form1">
    <cfinput type="text"
    name="partnername"
    size="35"
    style="z-index:1000;"
    tabindex="0">
    <cfinput type="button" name="Submit" value="Go!"
    onClick="javascript:ColdFusion.navigate('testcfdiv.cfm','orgsection',orgcallBack,myerrorh andler,'POST','form1');"
    tabindex="1">
    <cfinput type="button" name="Print" value="Print"
    tabindex="2">
    </cfform>
    <cfdiv id="orgsection"/>
    </body>
    </html>
    Hope this helps!
    Ron

  • ColdFusion.navigate with POST form submission

    I need to refresh the entire page, so I am not using any div
    on my javascript, I am using the following line.
    ColdFusion.navigate(AjaxFormAction, null, callback,
    errorHandler, 'post', 'LocCondByQtr')
    there is no error but, the whole form is being submit as GET
    not POST.
    I see my form variables in the url, I need those in the form
    scope, any idea where I am doing wrong?
    My form name is "LocCondByQtr" and the action for that page
    is save in "AjaxFormAction" variable.
    I am also using the grid on my form as well.
    Please advise.
    Thanks,

    I believe the answer is that the JSP page after put together with other jsp pages via 'includes' should contain only one <form> tag. The outer most JSP should have the form tag. The inner jsp pages should not. Note all tags on the completed jsp page need to have unique names (to avoid name collisions).

  • Coldfusion 11 error with cflayout

    0 down vote  favorite  
    I have some applications developed on older CF versions (9&10) and in anticipation of a hosting system migrating to CF11 and started doing some
    testing with a CF development platform on Windows 8 with Apache 2.4. I have found that in CF11 pages using cflayout and cflayoutarea does not work
    correctly when collapsed with javascript:ColdFusion.Layout.collapseArea.  Firebug does flag an error in the CF javascript. Wondering if anyone else
    has seen a problem like this and if there is a circumvention I could use to get this working.
    A very simple example (complements of the Chapter 2 cflayout example demonstrated in Dan Short's video on Ajax & Coldfusion) fails as well on
    CF11 but works in CF9 & CF10. 
    main.cfm
    <!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <cflayout name="borderLayout" type="border" fittowindow="true"> <cflayoutarea name="header" position="top" size="75">This is the header<br /> <a href="javascript:ColdFusion.Layout.collapseArea('borderLayout', 'left');">Collapse Left Column</a><br> </cflayoutarea> <cflayoutarea name="centerColumn" position="center" source="content.cfm?pageName=Header 1" /> <cflayoutarea name="rightColumn" position="right" style="width: 100px;">This is the right column</cflayoutarea> <cflayoutarea name="leftColumn" position="left" title="Left Column" style="width: 250px;" collapsible="true" splitter="true" minsize="200"> This is the left column<br /> <a href="javascript:ColdFusion.navigate('content.cfm?pagename=Header 2', 'centerColumn');">Load Header 2</a> </cflayoutarea> <cflayoutarea name="footer" position="bottom">This is a footer &copy; 2010</cflayoutarea> </cflayout> </body> </html>
    content.cfm
    <cfsilent> <cfparam name="URL.pageName" default="Default header" /> </cfsilent> <!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <cfoutput><h2>#URL.pageName#</h2></cfoutput> <p>This is the text content from content.cfm</p> </body> </html>  

    use <CFAJAXIMPORT tag and make sure you have the CFIDE folder as a virtual directory in your IIS local or server machine. if the "cfajaximport" tag alone didn't work, try using it in little more details to the path of CFIDE folder and specify cflayout within the cfajaximport tag as follows:
    <CFAJAXIMPORT
        CSSSRC = "CFIDE/scripts/ajax/"
        SCRIPTSRC = "/CFIDE/scripts"
        TAGS = "cfdiv,cfform,cfgrid,cfinput-autosuggest,cfinput-datefield,cflayout-border,cflayout-tab,cfmenu,cftextarea,cftooltip,cftree,cfwindow">
    Normally, you shouldn't need all these specifications in the cfajaximport but in case you may try it in more detail as shown above.

  • Cfgrid and href attribute issue

    HI Gang-
    I'm building a relatively simple query driven cfgrid, read-only for the most part but I need one of the columns to be a href value that will serve as a drilldown. Everything working fine except that the name/value pair I need appended to the url is being persnickety.
    The url I'd like to build and have effected in the cfgrid is something like "index.cfm?action=drilldown&orderid=#dynamicValue#"
    I finally got it to work, but not as I would like. Turns out both cfgrid and cfgridcolumn tags each have the "href" and the "hrefkey" attributes, which made for a confusing 45 minutes of trial and error.  The closest I could eventually come to my target url of:
    index.cfm?action=drilldown&orderid=#dynamicValue#
    is actually
    index.cfm?action=drilldown&CFGRIDKEY=#dynamicValue#
    Not what I wanted but I can deal for now.
    Has anyone gotten a hold of building out hrefs in cfgrid using custom name/value pairs dynamically? Would love to know how you did it. Code postings would be even better!
    Many thanks,
    Rich

    Quite a challenge, that one. You can run the following example directly. Have a look at my use of the lastName column. You could also have a look at the ext library.
    <html> 
    <head> 
         <title>Grid URL Demo</title> 
         <script type="text/javascript"> 
         function init(){ 
             var grid = ColdFusion.Grid.getGridObject("ArtistGrid"); 
             grid.addListener("rowclick",onRowClick); 
         function onRowClick(g,rowIndex,e){
           var lastName = ColdFusion.getElementValue("ArtistGrid", "artistGridForm", "lastName");
           var url = "index.cfm?action=drilldown&lastName="+lastName;
           ColdFusion.navigate(url);    
         </script>     
    </head> 
    <body> 
         <cfquery name="getArtists" datasource="cfartgallery"> 
         SELECT artistId, firstname, lastname, address, city, state, postalcode, email 
         FROM Artists 
         </cfquery> 
         <cfset args = structNew()> 
         <cfset args.name = "ArtistGrid"> 
         <cfset args.format = "html"> 
         <cfset args.query = "getArtists"> 
         <cfset args.stripeRows = true> 
         <cfset args.selectColor = "##D9E8FB"> 
         <cfset args.width = 600> 
         <h1>Artists Grid</h1>       
         <cfform name="artistGridForm" id="artistGridForm"> 
            <cfgrid attributeCollection="#args#"> 
               <cfgridcolumn name="artistid" display="false"> 
               <cfgridcolumn name="firstname" header="First Name"> 
               <cfgridcolumn name="lastname" header="Last Name"> 
               <cfgridcolumn name="email" header="Email Address"> 
               <cfgridcolumn name="address" header="Address"> 
               <cfgridcolumn name="city" header="City"> 
               <cfgridcolumn name="state" header="State"> 
               <cfgridcolumn name="postalcode" header="Zip"> 
            </cfgrid> 
         </cfform>  
         <cfset ajaxOnLoad("init")>      
    </body> 
    </html>

  • Please Help me in solving this issue. i am a newbie to coldfusion

    i want to use a single home page where i will show a form (which is in another file) to user to upload a file,after uploading (action file result) i want to show result of upload also on the same page.
    these are my three files:
    1. index.cfm
    <!-- start -->
    <html>
    <head>
    <title>HomePage</title>
    <cfajaximport tags="CFFORM">
    </head>
    <body>
    <cfdiv id="Main" style="width:1000px; height:600px" >
            <cfdiv id="Options" style=" width:100%;height:20%" >
                Welcome Admin, <a href="javascript:ColdFusion.navigate('FileUpload.cfm','Content')" class="settings">Update  </a><a href="#" class="logout">Logout</a>
            </cfdiv>
            <cfdiv id="Content" style=" width:100%;height:80%">
    <h2>Here Goes Form and FileUploading</h2>
            </cfdiv>
    </cfdiv>
    </body>
    </html>
    <!--  -->
    2.FileUpload.cfm
    <!-- start -->
    <html>
        <head>
            <title>
                Upload A File
            </title>
        </head>
        <body >       
    <cflayout type="vbox" name="layout1">
    <cflayoutarea>
        <cfform  enctype="multipart/form-data"  action="FileReceiver.cfm" >
                            File To Upload:
                            <cfinput type="file" name="Filename" size="50" >
                 <br/>       
                            <cfinput type="submit" name="UploadFile" value="UPLOAD THIS FILE">
                    <br/>
            </cfform>
    </cflayoutarea>
    <cflayoutarea>       
        <table border="1" >
                <tr>
                <th >
                    Directory Information
                </th>
                </tr>
                <tr>
                    <td>
                    <cfoutput >
                        CurrectDirectory Path: #getdirectoryFromPath(expandPath("index.cfm"))#
                    </cfoutput>
                    </td>
                </tr>
            </table>
    </cflayoutarea>
    </cflayout>
        </body>
    </html>
    <!-- -->
    3.FileReceiver.cfm
    <!---start-->
    <cfif isdefined('UploadFile')  >
    <cfoutput >
    <cffile nameconflict="makeunique"
    action="upload"
    filefield="Form.Filename"
    destination="#getdirectoryFromPath(expandPath("index.cfm"))#" > <!--- or destination="c:\Upload\"--->
            File upload was successful!
    </cfoutput>
    </cfif>
    <!-- -->
    when i click on "update link" index page shows the FileUpload.cfm page in one of its container but while uploading file
    i always get ERROR MESSAGE:
    Error retrieving markup for element cf_layoutarea736558924094373 : Invalid content type: application/x-www-form-urlencoded; charset=UTF-8. [Enable debugging by adding 'cfdebug' to your URL parameters to see more information]
    Kindly Help me doing it right...i am unable to figure out problem ...

    Ah, I found the cause of the issue: Coldfusion stores the properties of user-interface tags like cfdiv and cflayoutarea in the form scope. That is what is destroying your upload form. To see it, run the following test code:
    <cfdump var="#form#">
    <cflayout type="vbox" name="layout1">
    <cflayoutarea name="myLayoutArea123">
    <cfform >
    <cfinput type="submit" name="submit" value="Test by posting form to same page.">
    </cfform>
    </cflayoutarea>
    </cflayout>
    Now, the search for a possible solution.

  • MTOM + ColdFusion

    Hi,
    I want to send and receive binary files via webservices, but
    I don't want to use the Base64 encoding method - too slow
    performance.
    I read that now we can attach binary files to a soap envelop
    (SwA, MTOM or DIME) but I'm wondering if there's an easy way to do
    it in ColdFusion. I think that Axis2 is required but CF7 is still
    using Axis.
    Any clue/advice/experience ?
    Thanks in advance, I need to put a final word on it very
    soon.
    Cyril

    oops, I had two arguments inverted..
    Should have been...
    ColdFusion.navigate('/cf8/text.cfm','myDiv',mycallBack,myerrorHandler,'POST','form1')

  • ColdFusion.Window.destroy issues

    I have been trying to get this to work, and I am not able to
    get a working solution. I have tried all weekend to no luck.
    Heres what Im doing>
    I have a page that I have a href link that i have opening a
    CFwindow loading a page. That is working. What i would like to do
    is be able to once the CFWindows closes, that it will destroy the
    window instance, so that if I wanted to navigate to another page,
    then back to that page, the window would be new. The window name is
    static and needs to stay static if all possible.
    Here is some test code i'm working on. I'm trying to have it
    so that once the user hits the 'x' to hide the window, it will
    destroy itself. Its going to be a file rename page, so I'm also
    doing a page refresh in there. I can work on that later, but for
    now, Im just trying to get the window to destroy.
    Anyone have a suggestion on what to try?

    I didn't know you could destroy windows, but I have been
    getting around the same problem via javascript, and having it just
    navigate the already created window to a CFM page that I pass
    arguments to, allowing it to change the page in the cfwindow.
    Example:
    function navigate_CFWindow(sID, action) {
    if (action == "edit") {
    ColdFusion.navigate('SOPEditor.cfm?sop='+sID+'&action=edit',
    'SOPEditor_body');
    ColdFusion.Window.show('SOPEditor');
    seems to work just fine :)

  • Richtext fails with coldfusion.ajax.submitForm in IE

    Hi all,
    got a cfform containing a cftextarea with richtext = true, invoking the FCKeditor.  The form is inside a cflayoutarea and to maintain the page view I'm doing the calling forumAddPost to do the submission using coldfusion.ajax.submitform, processing it through a CFC method....shown below.
    The CFC simply writes to the database and once returned, the handler navigates the layoutarea to the mainpage.
    function forumAddPost() {
    ColdFusion.Ajax.submitForm('formnewpost', 'groups.cfc?method=forumNewPosts', forumAddPostHandler, errorHandler);
    function forumAddPostHandler(result) {
    ColdFusion.navigate('forum_showtopics_search.cfm?subject_id=<cfoutput>#group.forumid#</cf output>&searchtext=', 'MOD2');
    function errorHandler(code, msg)
    alert('error '+code+': '+msg);
    This code works fine in Chrome or Firefox, but in IE it fails and closes IE down.  If I remove the richtext option the posting works fine, so I've established it's something to do with the FCKeditor and the ajax posting method, but can't work out what?!
    Anyone have any ideas?
    Cheers
    Phil

    I was testing on IE8, Windows7 Starter.  I don't have IE6 available to test on.  Can test on IE7 a bit later on, but I have to fart-arse around with a VM to get it ready, so I'll do that after work.
    I tested multiple submits both via clicking between the tabs within one main "request" as well as multiple entire requests (like via refreshing the whole browser window).  I had no problems.
    I think you're being quite optimistic ot expect AJAX stuff to work reliably on IE6.  IE6 crashes.  That's what it's most famous for doing.  One needs to expect crashes if one pushes it (push it anywhere than out the window, that is).  And your client company's IT dept should be lined up against a wall and shot for still running it.  That's professionally negligent IMO.  But... you probably don't need to be told that.
    Adam

Maybe you are looking for