Hello Guys, I am looking for some suggestions on this one issue i am trying to resolve.
I have an ajax enabled form which consists of an input field and a submit button. Basically the input needs to be validated against some validation-rules and if successful a popup window should be opened up, ELSE IF the input validation fails a validation-message should be shown and NO popup window should be opened. Now i was able to work out a solution by basically appending the javascript of a PopupSettings class as below in the onSubmit method of the Ajax Enabled Form if the validation is successful (else add a feedback-message) target.appendJavascript(popupSettings.getPopupJavaScript()); Though this works fine and gives the desired behavior, the only problem is the popup-blockers, which when enabled block the window.open() call... So all i am looking for is work arounds, now one way is to make this ajax-form submission to be actually an SYNCHRONOUS call and program the the window.open() call on the client side only (instead of appending the PopupSettings script in the onSubmit()) on the onClick-Event and based on the ajax-response signifying input-validation success or failure, open the popup window(). NOW if i do opt for this approach of blocking call, is there an easy way to achieve this ? that is making a call synchronous ? though i know its not ideal but seems like the only way to avoid the blockers... Any suggestion or work around ? -- View this message in context: http://www.nabble.com/Open-popup-window-in-an-ajax-response-tp22502811p22502811.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
