You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by durairaj t <du...@gmail.com> on 2016/10/10 19:47:49 UTC

Wicket.Ajax.transports

How to get "Wicket.Ajax.transports" in wicket 7?

I'm getting error while executing the below script in wic7.
var t = Wicket.Ajax.transports;

Re: Wicket.Ajax.transports

Posted by durairaj t <du...@gmail.com>.
Thank you!. Let me integrate it in my application.

On Mon, Oct 10, 2016 at 5:33 PM, Martin Grigorov <mg...@apache.org>
wrote:

> On Mon, Oct 10, 2016 at 11:19 PM, durairaj t <du...@gmail.com>
> wrote:
>
> > Yes I tried, but the following lines from the examples are not working,
> >       $(hiderId).width($(elementId).outerWidth());
> >       $(hiderId).height($(elementId).outerHeight());
> >
> > I'm getting  "Object doesn't support property or method 'outerWidth'"  .
> >
> > I got the jquery.ui.position.min.js from :
> > https://sourceforge.net/projects/mccv/?source=typ_redirect
>
>
> Why not use the latest version from the official jQueryUI site ?
>
> I'd not spend time on this. Better migrate your code than trying to run the
> examples.
>
>
> >
> >
> >
> >
> > On Mon, Oct 10, 2016 at 4:55 PM, Martin Grigorov <mg...@apache.org>
> > wrote:
> >
> > > You should use AjaxCallListener.
> > > Show the mask in #onBeforeSend() callback and hide it in #onComplete().
> > > See https://ci.apache.org/projects/wicket/guide/7.x/
> > guide/ajax.html#ajax_5
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Mon, Oct 10, 2016 at 10:39 PM, durairaj t <du...@gmail.com>
> > > wrote:
> > >
> > > > The below code needs to be replaced for Wicket 7.
> > > >
> > > > var t = Wicket.Ajax.transports;
> > > >
> > > >   for (var i = 0; i < t.length; ++i) {
> > > >  if (t[i].readyState != 0) {
> > > >   return true;
> > > >  }
> > > >   }
> > > >
> > > > I'm migrating my application from 1.5 to 7. It is a part of Progress
> > Mask
> > > > to block the screen (semi-transparent overlay) while it is in
> process .
> > > >
> > > >
> > > >
> > > > On Mon, Oct 10, 2016 at 4:22 PM, Martin Grigorov <
> mgrigorov@apache.org
> > >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > There is no such thing in Wicket 6.x.
> > > > > What exactly you need to accomplish ?
> > > > >
> > > > > Martin Grigorov
> > > > > Wicket Training and Consulting
> > > > > https://twitter.com/mtgrigorov
> > > > >
> > > > > On Mon, Oct 10, 2016 at 9:47 PM, durairaj t <
> durairaj.tha@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > How to get "Wicket.Ajax.transports" in wicket 7?
> > > > > >
> > > > > > I'm getting error while executing the below script in wic7.
> > > > > > var t = Wicket.Ajax.transports;
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Wicket.Ajax.transports

Posted by Martin Grigorov <mg...@apache.org>.
On Mon, Oct 10, 2016 at 11:19 PM, durairaj t <du...@gmail.com> wrote:

> Yes I tried, but the following lines from the examples are not working,
>       $(hiderId).width($(elementId).outerWidth());
>       $(hiderId).height($(elementId).outerHeight());
>
> I'm getting  "Object doesn't support property or method 'outerWidth'"  .
>
> I got the jquery.ui.position.min.js from :
> https://sourceforge.net/projects/mccv/?source=typ_redirect


Why not use the latest version from the official jQueryUI site ?

I'd not spend time on this. Better migrate your code than trying to run the
examples.


>
>
>
>
> On Mon, Oct 10, 2016 at 4:55 PM, Martin Grigorov <mg...@apache.org>
> wrote:
>
> > You should use AjaxCallListener.
> > Show the mask in #onBeforeSend() callback and hide it in #onComplete().
> > See https://ci.apache.org/projects/wicket/guide/7.x/
> guide/ajax.html#ajax_5
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, Oct 10, 2016 at 10:39 PM, durairaj t <du...@gmail.com>
> > wrote:
> >
> > > The below code needs to be replaced for Wicket 7.
> > >
> > > var t = Wicket.Ajax.transports;
> > >
> > >   for (var i = 0; i < t.length; ++i) {
> > >  if (t[i].readyState != 0) {
> > >   return true;
> > >  }
> > >   }
> > >
> > > I'm migrating my application from 1.5 to 7. It is a part of Progress
> Mask
> > > to block the screen (semi-transparent overlay) while it is in process .
> > >
> > >
> > >
> > > On Mon, Oct 10, 2016 at 4:22 PM, Martin Grigorov <mgrigorov@apache.org
> >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > There is no such thing in Wicket 6.x.
> > > > What exactly you need to accomplish ?
> > > >
> > > > Martin Grigorov
> > > > Wicket Training and Consulting
> > > > https://twitter.com/mtgrigorov
> > > >
> > > > On Mon, Oct 10, 2016 at 9:47 PM, durairaj t <du...@gmail.com>
> > > > wrote:
> > > >
> > > > > How to get "Wicket.Ajax.transports" in wicket 7?
> > > > >
> > > > > I'm getting error while executing the below script in wic7.
> > > > > var t = Wicket.Ajax.transports;
> > > > >
> > > >
> > >
> >
>

Re: Wicket.Ajax.transports

Posted by durairaj t <du...@gmail.com>.
Yes I tried, but the following lines from the examples are not working,
      $(hiderId).width($(elementId).outerWidth());
      $(hiderId).height($(elementId).outerHeight());

I'm getting  "Object doesn't support property or method 'outerWidth'"  .

I got the jquery.ui.position.min.js from :
https://sourceforge.net/projects/mccv/?source=typ_redirect



On Mon, Oct 10, 2016 at 4:55 PM, Martin Grigorov <mg...@apache.org>
wrote:

> You should use AjaxCallListener.
> Show the mask in #onBeforeSend() callback and hide it in #onComplete().
> See https://ci.apache.org/projects/wicket/guide/7.x/guide/ajax.html#ajax_5
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Oct 10, 2016 at 10:39 PM, durairaj t <du...@gmail.com>
> wrote:
>
> > The below code needs to be replaced for Wicket 7.
> >
> > var t = Wicket.Ajax.transports;
> >
> >   for (var i = 0; i < t.length; ++i) {
> >  if (t[i].readyState != 0) {
> >   return true;
> >  }
> >   }
> >
> > I'm migrating my application from 1.5 to 7. It is a part of Progress Mask
> > to block the screen (semi-transparent overlay) while it is in process .
> >
> >
> >
> > On Mon, Oct 10, 2016 at 4:22 PM, Martin Grigorov <mg...@apache.org>
> > wrote:
> >
> > > Hi,
> > >
> > > There is no such thing in Wicket 6.x.
> > > What exactly you need to accomplish ?
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Mon, Oct 10, 2016 at 9:47 PM, durairaj t <du...@gmail.com>
> > > wrote:
> > >
> > > > How to get "Wicket.Ajax.transports" in wicket 7?
> > > >
> > > > I'm getting error while executing the below script in wic7.
> > > > var t = Wicket.Ajax.transports;
> > > >
> > >
> >
>

Re: Wicket.Ajax.transports

Posted by Martin Grigorov <mg...@apache.org>.
You should use AjaxCallListener.
Show the mask in #onBeforeSend() callback and hide it in #onComplete().
See https://ci.apache.org/projects/wicket/guide/7.x/guide/ajax.html#ajax_5

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Oct 10, 2016 at 10:39 PM, durairaj t <du...@gmail.com> wrote:

> The below code needs to be replaced for Wicket 7.
>
> var t = Wicket.Ajax.transports;
>
>   for (var i = 0; i < t.length; ++i) {
>  if (t[i].readyState != 0) {
>   return true;
>  }
>   }
>
> I'm migrating my application from 1.5 to 7. It is a part of Progress Mask
> to block the screen (semi-transparent overlay) while it is in process .
>
>
>
> On Mon, Oct 10, 2016 at 4:22 PM, Martin Grigorov <mg...@apache.org>
> wrote:
>
> > Hi,
> >
> > There is no such thing in Wicket 6.x.
> > What exactly you need to accomplish ?
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, Oct 10, 2016 at 9:47 PM, durairaj t <du...@gmail.com>
> > wrote:
> >
> > > How to get "Wicket.Ajax.transports" in wicket 7?
> > >
> > > I'm getting error while executing the below script in wic7.
> > > var t = Wicket.Ajax.transports;
> > >
> >
>

Re: Wicket.Ajax.transports

Posted by durairaj t <du...@gmail.com>.
The below code needs to be replaced for Wicket 7.

var t = Wicket.Ajax.transports;

  for (var i = 0; i < t.length; ++i) {
 if (t[i].readyState != 0) {
  return true;
 }
  }

I'm migrating my application from 1.5 to 7. It is a part of Progress Mask
to block the screen (semi-transparent overlay) while it is in process .



On Mon, Oct 10, 2016 at 4:22 PM, Martin Grigorov <mg...@apache.org>
wrote:

> Hi,
>
> There is no such thing in Wicket 6.x.
> What exactly you need to accomplish ?
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Oct 10, 2016 at 9:47 PM, durairaj t <du...@gmail.com>
> wrote:
>
> > How to get "Wicket.Ajax.transports" in wicket 7?
> >
> > I'm getting error while executing the below script in wic7.
> > var t = Wicket.Ajax.transports;
> >
>

Re: Wicket.Ajax.transports

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

There is no such thing in Wicket 6.x.
What exactly you need to accomplish ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Oct 10, 2016 at 9:47 PM, durairaj t <du...@gmail.com> wrote:

> How to get "Wicket.Ajax.transports" in wicket 7?
>
> I'm getting error while executing the below script in wic7.
> var t = Wicket.Ajax.transports;
>