getURL in Flash Form

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default getURL in Flash Form

    I'm trying to use getURL to pass a value to another template. I'm having no
    luck. the URL variable cfgridkey is "undefined".

    <cfsavecontent variable="getRecord">
    getURL('comment.cfm?cfgridkey=' +
    searchResults.dataProvider[searchResults.selectedIndex]['COMMENT_KEY'],'_self');

    </cfsavecontent>

    <cfgrid format="flash" name="searchResults" colheaderfontsize="10"
    colheaderalign="center" colheaderbold="yes" height="210" onchange="#getRecord#">
    <cfgridcolumn name="comment_key" header="Comment ID" dataalign="center"/ >
    <cfgridcolumn name="lastname" header="Last Name"/>
    <cfgridcolumn name="firstname" header="First Name"/>
    <cfgridcolumn name="comment_date" header="Comment Date"
    dataalign="center"/>
    <cfgridcolumn name="comment" header="Comment Preview" width="400"/>
    </cfgrid>

    The grid is being populated with remoting. Would that make any difference as
    to whether the dataProvider can be viewed by the application?
    Thanks.


    Mark Forsberg Guest

  2. Similar Questions and Discussions

    1. getURL flash in a Command, doesnt work.
      I am trying to get a flash file displaying in a Command (or a floater, either would be preferable at this point!) and for the most part its working,...
    2. geturl in flash mx 2004
      Hello, I try to use a button as a email but with the version mx 04 it doesn't work. In the Actions window a write geturl ("email") but nothing
    3. getURL Links are appearing behind my Flash piece?
      Please help. Does anyone know of a way to ensure that a web browser window popping-up from a fullscreen flash projector (*.EXE), using the getURL...
    4. putting a variable into getURL in flash
      Hi, I am sure this is a quick fix. But could use some help. I am pulling a bunch of variables from a php page. from those vairables i want to...
    5. geturl command in flash-html combo site
      Hi, I'm doing a site that has a flash intro. (To make it simpler, the flash intro site is www.website.com) Buttons in the intro should open up...
  3. #2

    Default Re: getURL in Flash Form

    I'm fairly sure that as is case sensative, so

    COMMENT_KEY is not the same as comment_key

    Ken
    The ScareCrow Guest

  4. #3

    Default Re: getURL in Flash Form

    Scarecrow,

    I changed the COMMENT_KEY to comment_key and it is still undefined.
    comment_key works fine in populating the grid with the remote. I thought that
    comment_key would also be the proper case for using the cfgrid value in a url.
    I appreciate the help in this. It's got me stumped.

    Mark

    Mark Forsberg Guest

  5. #4

    Default Re: getURL in Flash Form

    I would say the problem has to be that the value is not being added to the url.

    Is there a reason your still using cfsavecontent ?

    To debug, I would do the following:

    1. Put in an
    Alert(searchResults.dataProvider[searchResults.selectedIndex]['COMMENT_KEY'])
    To see if the value is being returned

    2. Put in a hard coded value and see if this works
    Let's assume a valid comment_key is "search", then
    getURL('comment.cfm?cfgridkey=' + 'search';

    How are you trying to access the value in the comment.cfm page ?
    I think by default it is URL.cfgridkey
    You can also include the attribute of "post" or "url" in the geturl function
    call.

    On reading the doc's about geturl, I can't see anything about a default value.
    So I would suggest putting it in


    getURL('comment.cfm?cfgridkey=' +
    searchResults.dataProvider[searchResults.selectedIndex]['COMMENT_KEY'],'_self',
    'GET');

    Ken




    The ScareCrow Guest

  6. #5

    Default Re: getURL in Flash Form

    Scarecrow,

    I ran numerous tests like you suggested. For grins I populated the grid
    with a cfquery and I was able to attach the index in the getURL function. When
    I populate the grid with remoting it's as though the function called by the
    button click cannot see the grid. I thought that by declaring the name of the
    grid in my remoting call that it would be recognized as _root. Perhaps not.
    For now it's just going to run like an html form. Not what I want but
    I've got other things to finish.
    Thanks for all of your help.

    Mark F.

    Mark Forsberg Guest

  7. #6

    Default Re: getURL in Flash Form

    Instead of the following
    searchResults.dataProvider[searchResults.selectedIndex]['COMMENT_KEY']

    Try

    searchResults.selectedIndex.comment_key

    Ken
    The ScareCrow Guest

  8. #7

    Default Re: getURL in Flash Form

    Your problem is you are not passing all of the items into your grid with
    remoting. You need to use this:

    responseHandler.onResult = function( results: Object ):Void {
    data.dataProvider = results._items;
    }

    This should solve your problem. You can use either method to bind to the
    selected item in the grid and pass it in the getURL clause.

    mcadle Guest

  9. #8

    Default Re: getURL in Flash Form

    mcadle,

    Sorry for the slow response. It's been hectic.
    I'll give this a try and see how it goes.
    Everyone, thanks for the help. Remoting is cool, but I haven't done it
    enough to get good at debugging.
    Again, thanks.

    Mark

    Mark Forsberg 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