A lot depends on how you've got your parent page set up.

For things like this, I use a dojo data store and just tell it to
update/refresh after the record is edited.  That doesn't help you much
tho. =]

Without knowing how your data is set up, you've got a few options:

If it's a table that contains the data, you could return the row data
and index, and then loop through the row data, setting the innerHTML
for each cell... (might be able to just set the TR element... hmm,
might not work in ie6 tho...)...

If the rows are all DIVs, you could just return the div id and the
content, and update the div with the content  (<--- easiest, I bet ).

Are you having trouble getting to the parent's elements or something?
If you can get to the parent to tell it to refresh, you should be able
to get to it and just update the elements you want updated.

A lot depends on how this parent page is set up tho, and without more
details (not to do your work for you (although many times that's a
side-effect, if you look at it that way)) there's only so much help
folks can offer.

:]

-- 
Young people have an almost biological destiny to be hopeful.
    Marshall Ganz

On Sat, Aug 1, 2009 at 3:10 PM, Les Mizzell<[email protected]> wrote:
>
> I've still not figured this out.
> This isn't a "do my work for me by posting some code" request!
>
> I just need a pointer in the right direction. I've been looking at the
> live docs and miles of AJAX/Javascript code and my head is starting to
> hurt! Surely it can't be *that* complex!
>
> All I need to do...
>
> 1. Display a number of returned records on a page (grid format doesn't
> really get it)
>
> 2. With the parent window staying in place, click the record to update.
>
> 3. Open a CFWINDOW withe update form.
>
> 4. Submit the form, which will
>    a. update the database
>    b. update the displayed data on the parent page in place
>
>
> Works fine up to 4a. To refresh the changed data on the parent page
> though, I'm having to force a page refresh, which defeats the whole
> purpose of trying to get it to update in place without a page refresh.
>
> There's got to be a good tutorial on this somewhere, I've just not found
> it yet...
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325161
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to