Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default cfGrid problems

    Hi all,

    I can't get the flash version of cfGrid to display when I assign it the
    onChange attribute. If I remove it, it works fine. I get a browser error about
    not being able to load the mxml.cfswf file.

    Cheers

    David Heacock

    Laverda668 Guest

  2. Similar Questions and Discussions

    1. jump menu + cfgrid image width height problems
      2nd day and no answer of anyone, please help! Just to simple questions: 1. HOw could I build a cfselect jump menu, since JavaScript does not work...
    2. <CFGRID>
      I'm experiencing a strange behavior using cfgrid format="applet". If the selectmode="Edit" and I do specify a selectcolor, the field clicked on will...
    3. cfgrid / cfgridupdate problems
      I've got a simple query to a MS Access 2003 database. I want to be able to edit records using cfgrid. I am able to delete records without problem....
    4. CFGRID - Problems displaying in IE
      Is anyone having problems getting the CFGRID (with the java plugin option) to display on IE. I'm finding that its working ok on Windows 2k boxes,...
    5. CF 6.1 Problems with CFGrid and CFTree
      I get the following errors when i use a CFGrid Tag: ----------------------------------------------------------------------- load: class...
  3. #2

    Default Re: cfGrid problems

    Sounds like an actionscript error in your onChange attribute. In the cfadmin
    debugging page make sure you turn on debug and check the "show flash compile
    errors" option. If you still can't see it, send me your onChange
    actionscript and I'll see if I can find the error.

    hth,
    ---nimer


    "Laverda668" <webforumsuser@macromedia.com> wrote in message
    news:cva0fa$p9$1@forums.macromedia.com...
    > Hi all,
    >
    > I can't get the flash version of cfGrid to display when I assign it the
    > onChange attribute. If I remove it, it works fine. I get a browser error
    > about
    > not being able to load the mxml.cfswf file.
    >
    > Cheers
    >
    > David Heacock
    >

    Mike Nimer Guest

  4. #3

    Default Re: cfGrid problems

    <cfform name="form1" method="post"
    action="portfolio_item.cfm" timeout="1800">
    <cfgrid name="Projects" format="flash" rowheaders="no"
    query="ListPortfolioItems" fontsize="9" onChange="Submit();"
    width="440" height="300">
    <cfgridcolumn name="ID" display="no">
    <cfgridcolumn name="Client" width="180">
    <cfgridcolumn name="Title" width="200">
    <cfgridcolumn name="Category" width="50">

    </cfgrid>
    <cfinput name="submit" value="submit" type="submit" style="width:80px;">

    Laverda668 Guest

  5. #4

    Default Re: cfGrid problems

    2 problems
    1) you need to wrap the javascript call in a getURL function so the flash
    movie can call the javascripts
    2) you need to rename your submit button something other then submit. The
    function and the button name were conflicting.


    try this
    <cfform id="form1" name="form1" method="post" action="portfolio_item.cfm"
    timeout="1800">
    <cfgrid name="Projects" format="flash" rowheaders="no"
    fontsize="9" onChange="getURL('javascript:document.form1.submit ()');"
    width="440" height="300">
    <cfgridcolumn name="ID" display="no">
    <cfgridcolumn name="Client" width="180">
    <cfgridcolumn name="Title" width="200">
    <cfgridcolumn name="Category" width="50">

    <cfgridrow data="sad,asd,asd,asd" >
    </cfgrid>
    <cfinput name="submit2" value="submit2" type="submit"
    style="width:80px;">
    </cfform>


    ---nimer
    "Laverda668" <webforumsuser@macromedia.com> wrote in message
    news:cvhjaf$ic8$1@forums.macromedia.com...
    > <cfform name="form1" method="post"
    > action="portfolio_item.cfm" timeout="1800">
    > <cfgrid name="Projects" format="flash" rowheaders="no"
    > query="ListPortfolioItems" fontsize="9" onChange="Submit();"
    > width="440" height="300">
    > <cfgridcolumn name="ID" display="no">
    > <cfgridcolumn name="Client" width="180">
    > <cfgridcolumn name="Title" width="200">
    > <cfgridcolumn name="Category" width="50">
    >
    > </cfgrid>
    > <cfinput name="submit" value="submit" type="submit"
    > style="width:80px;">
    >

    Mike Nimer Guest

  6. #5

    Default Re: cfGrid problems

    Thanks. I found that only give me a page called 'javascript.document...'. What
    I tried was 'getURL(display.cfm?ID=#ID#);', but that won't give me the href key
    from the row. Do you know a way to get the hrefkey attribute into the
    javascript while using the Flash verion of the cfgrid?


    Cheers

    David Heacock

    Laverda668 Guest

  7. #6

    Default CFGRID Problems

    First, I'm using Coldfusion 7 and the "flash" format of cfform. I'm having two
    problems:

    1) According to what I've read on Coldfusion 7, the "query" attribute is
    optional, but that doesn't seem to be the case as I get an error. What I'm
    trying to do is let my users fill out fields and then click a button which
    sends the data to the cfgrid and clears the fields for another entry.
    Basically, I just want to use the cfgrid to organize what they've entered and
    then when they're finally ready to submit, I'll loop through the cfgrid and
    enter the data into the database. Can a cfgrid be populated this way? Or would
    I have to cheat by designing a query that won't bring back anything, just to
    create the cfgrid. Of course, I still have to know if it's possible to populate
    a cfgrid from fields versus queries. This is the main problem I'm having now.
    Any thoughts?

    2) I have a page that has multiple tabs, though I'm not sure it that matters.
    When I'm populating a cfgrid from a database query, there's no problem. But
    when I try to populate 2 cfgrids from one query or each from a seperate query,
    the page doesn't load...no error message...just doesn't load. When I take away
    one of the cfgrids, everything's fine. Thoughts?

    The Ferret Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139