Simple.

As the cfwindow is a div inside the html template, onsubmit check
validation display errors if any. No errors run a JS function in the
main body that closes the window.

There are a number of ways you could achieve it, even get a handle of
the window with JS in the page included into the cfwindow (if lazy
loaded). <form onsubmit="validate();">

Have you tried it this way? Are you having problems with it?



On Thu, Apr 24, 2008 at 7:09 PM, Rony <[EMAIL PROTECTED]> wrote:
>
> Hi Guys,
>
> I have a page that uses the ColdFusion.Window.create() to display a
> form from another template.
>
> Now, when the form submits successfully , I want it to close the
> window.
>
> If any errors occur, I want the error message to appear in the
> ColdFusion Window only. This is done by storing the error message in a
> session and displaying it in the form template. The action template
> will take the form fields, process them and set the errors, if any and
> return back to the form.
>
> At the present time, the whole pages refreshes.
>
> There must be a way to allow the coldfusion window to act
> independently from the main window.
>
> Any suggestions ?
>
> Thanks.
> >
>



-- 



Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613 8676 4223
Mobile: 0404 998 273

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to