You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by pmaks <pi...@live.com> on 2012/02/13 11:44:18 UTC
replaceOuterHtmlSafari not working proerly
Hi All,
http://apache-wicket.1842946.n4.nabble.com/file/n4383380/webkitBug.zip
webkitBug.zip
replaceOuterHtmlSafari not working properly in some cases. It is not
replacing whole element, it removes that element from DOM on which it is
invoked. I've attached a sample application, and problem images. Please see
the attachement for further explanation.
Thanks
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/replaceOuterHtmlSafari-not-working-proerly-tp4383380p4383380.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: replaceOuterHtmlSafari not working proerly
Posted by Igor Vaynberg <ig...@gmail.com>.
file this in our jira so it doesnt get lost
-igor
On Mon, Feb 13, 2012 at 9:56 PM, pmaks <pi...@live.com> wrote:
> Hi All,
> Please have a look at below images
>
> before form submit
> http://apache-wicket.1842946.n4.nabble.com/file/n4386241/before-submit.png
>
> after form submit (it shows the feedback panel for required fields error),
> notice form is missing.
> http://apache-wicket.1842946.n4.nabble.com/file/n4386241/after-submit.png
>
> Probelm is element on which outerHTML is called is removed from DOM.
> I debug a bit and doubt source of the problem is following function in
> wicket-ajax.js.
>
> Wicket.replaceOuterHtmlSafari = function(element, text) {
> ……………
> element.outerHTML = text; // not working properly on chrome & safari
> ………….
> }
>
> Is this a known issue on safari/chrome, is there any workaround for this.
>
> Thanks
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/replaceOuterHtmlSafari-not-working-proerly-tp4383380p4386241.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: replaceOuterHtmlSafari not working proerly
Posted by pmaks <pi...@live.com>.
Hi All,
Please have a look at below images
before form submit
http://apache-wicket.1842946.n4.nabble.com/file/n4386241/before-submit.png
after form submit (it shows the feedback panel for required fields error),
notice form is missing.
http://apache-wicket.1842946.n4.nabble.com/file/n4386241/after-submit.png
Probelm is element on which outerHTML is called is removed from DOM.
I debug a bit and doubt source of the problem is following function in
wicket-ajax.js.
Wicket.replaceOuterHtmlSafari = function(element, text) {
……………
element.outerHTML = text; // not working properly on chrome & safari
………….
}
Is this a known issue on safari/chrome, is there any workaround for this.
Thanks
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/replaceOuterHtmlSafari-not-working-proerly-tp4383380p4386241.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org