[support] Writing ahah callbacks to a

Christopher M. Jones cjones at partialflow.com
Tue Nov 2 18:33:50 UTC 2010


I have a custom cck widget. I want part of that widget to open in a 
modal window (modalframe api), which uses an iframe. I have a function 
that encapsulates the portion of the form array in question. There are 
ahah elements througout the form, including in the portion that opens in 
the modal frame.

I want the use of the frame to be optional. So, in case the user has 
elected to use the frame, I want to render a button in the widget that 
activates the frame, rendering the rest of the form. But I need ahah 
actions in the frame to effect changes in the parent. So, when the ahah 
callback returns a new element, I need that element to be passed back to 
the parent.

I'm stuck here. I'm new to CCK widgets and new to ahah. I've read so 
much that my head is spinning. I'd love it if someone could outline for 
me the best method for accomplishing this.

Here's some brain vomit, for anyone who cares to read further:

Should the ahah responses be stored somewhere within the child document, 
to be dumped into the parent when the window is closed?

I'd rather have changes to the parent be incremental, so that the parent 
page is already updated by the time the user thinks to close the window. 
But I'll settle for anything, at this point.

Or, since the form cache is being updated by the ahah callback, then 
couldn't one re-render the whole form when the window is closed?

Is there a way to rebind ahah in the child window to ahah in the parent? 
Pass contexts around?

... and so forth ...


On 11/01/2010 11:31 AM, Aldo Martinez Selleras wrote:
> I can upload a file to web server without user interaction?
> i mean, no dialog asking the user the file for upload!
>
> i'm using an application made in flash that generates a screenshot of the
> result of some interface, and I need upload this screenshot to the
> webserver!
>
> it's that possible ??
>


More information about the support mailing list