attach a test case to a jira issue
It is a bit weird error because as far as ia see window.parent is again a
window and that should have a setTimeuut function
On Tue, Apr 22, 2008 at 7:49 PM, Michael Mehrle <[EMAIL PROTECTED]>
wrote:
> Yeah, so I noticed :-)
>
> Okay, I'm pressing the save button in my form, which is inside a panel,
> which is inside a modal. Here's what's happening in the AJAX debug
> window:
>
> INFO: Initiating Ajax POST request ../../../../ etc..
> INFO: Received ajax response (457 characters)
> INFO: < JS code wrapped in XML .... >
> INFO: Response parsed: Now invoking steps...
> ERROR: Exception evaluating javascript: TypeError:
> window.parent.setTimeout is not a function
>
> That window.parent.setTimeout is at the tail end of that JS code that
> was sent up. I can't copy/paste because the modal freezes up.
>
> Here's the save button's onSubmit() handler:
>
> add(new AjaxButton("save", SubmitForm.this) {
>
> @Override
> protected void
> onSubmit(AjaxRequestTarget target, Form form) {
> modalWindow.close(target);
> }
> });
>
> Nothing fancy, the panel that contains the modal handles the
> modalWindow.close():
>
>
> final FooModalWindow modalWindow;
> add(modalWindow = new
> FooModalWindow("recurringEventModalWindow", 477, 620, false) {
> @Override
> public void onClose(AjaxRequestTarget
> target) {
>
> setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
> public void
> onClose(AjaxRequestTarget target) {
>
> LOG.debug("Window closed");
> //Event event =
> (Event) EventDetailsPanel.this.getModelObject();
>
> //event.setEventSchedule((EventSchedule)SubmitForm.this.getModelObject()
> );
> }
> });
> }
>
> @Override
> public void onCancel(AjaxRequestTarget
> target) {
>
> }
> });
>
> ANY HELP would be appreciated. I've been stuck on this for several days
> now, and getting pretty frustrated.
>
> Thanks in advance...
>
> Michael
>
> -----Original Message-----
> From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 22, 2008 12:05 AM
> To: [email protected]
> Subject: Re: Strange AJAX error
>
> Attachments are filtered from the list.
>
> Maurice
>
> On Tue, Apr 22, 2008 at 1:47 AM, Michael Mehrle <[EMAIL PROTECTED]>
> wrote:
> > I have attached a screen grab of the error and its context since the
> > modal is locking up and I can't just copy/paste it. Sorry it's so
> dark,
> > that's because of the modal and I don't have Photoshop on this
> system.
> >
> > Michael
> >
> >
> >
> > -----Original Message-----
> > From: Michael Mehrle [mailto:[EMAIL PROTECTED]
> > Sent: Monday, April 21, 2008 4:38 PM
> > To: [email protected]
> > Subject: Strange AJAX error
> >
> > This is in the context of my prior postings. When submitting my form
> > which is part of a modal it just freezes up and I get the following
> > error message in the AJAX debug window:
> >
> >
> >
> > ERROR: Exception evaluating javascript: TypeError:
> > window.parent.setTimeout is not a function
> >
> >
> >
> > Anyone any idea what's going on here?
> >
> >
> >
> > Michael
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>