You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by wo...@online.ie on 2004/11/05 09:32:01 UTC

submit and pop up


Hi,

Maybe someone could point me in the right direction.
I would like to create a new component with the following behaviour, create
a button that will do a submit and after submitting, the system will return the
same page that has been submitted with one difference: it will insert some
javascript into the page that will open an new window that points to a direct
link.

The reason for this: I would like to pop-up a window that will show a pdf, but
that pdf will contain information that should be submitted first. Now we deal
with it using two buttons "save" and "show", but I would like to make the whole
a bit more user-friendly and this issue comes up in a lot of our applications.

Pointers anyone?

Regards,
Wouter de Vaal

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: submit and pop up

Posted by James Sherwood <js...@romulin.com>.
I dynamically build direct links in a few projects and its no problem. We
even use them in menus

James

----- Original Message ----- 
From: <wo...@online.ie>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Friday, November 05, 2004 9:44 AM
Subject: Re: submit and pop up


>
> > I would just use a conditional in the page for the javascript.  OR
Create a
> > component to put inside your form that is a conditional that adds
javascript
> > to pop open a page(look at contrib popup component maybe)
> >
> I'm going to create a component as we have various projects that need
this.
>
> > Although with WinXP  SP2 popups are becoming a thing of the past and you
> > have to do workarounds for them(IE detecting if the popup occured etc)
>
> And a good thing too :-) But these are applications for internal use and
the
> clients will have to add a trust in IE for my page then it will work I
hope.
> >
> > As far as the directlink, wouldnt that be part of the page you open and
not
> > in the component on the opener page? Unless I misunderstand you and you
want
> > to actually open the page using a directlink, in which case you just
build
> > the url to pass to the javascript(or popup component)
> >
> I'm planning to recreate the url and put it in in the javascript.
>
> I'm wondering if I don't get state exception stuff all over the place If I
> implement it as described.
>
> Wouter
>
> > James
> >
> >
> > ----- Original Message -----
> > From: <wo...@online.ie>
> > To: "Tapestry users" <ta...@jakarta.apache.org>
> > Sent: Friday, November 05, 2004 4:32 AM
> > Subject: submit and pop up
> >
> >
> > >
> > >
> > > Hi,
> > >
> > > Maybe someone could point me in the right direction.
> > > I would like to create a new component with the following behaviour,
> > create
> > > a button that will do a submit and after submitting, the system will
> > return the
> > > same page that has been submitted with one difference: it will insert
some
> > > javascript into the page that will open an new window that points to a
> > direct
> > > link.
> > >
> > > The reason for this: I would like to pop-up a window that will show a
pdf,
> > but
> > > that pdf will contain information that should be submitted first. Now
we
> > deal
> > > with it using two buttons "save" and "show", but I would like to make
the
> > whole
> > > a bit more user-friendly and this issue comes up in a lot of our
> > applications.
> > >
> > > Pointers anyone?
> > >
> > > Regards,
> > > Wouter de Vaal
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: submit and pop up

Posted by wo...@online.ie.
> I would just use a conditional in the page for the javascript.  OR Create a
> component to put inside your form that is a conditional that adds javascript
> to pop open a page(look at contrib popup component maybe)
>
I'm going to create a component as we have various projects that need this.

> Although with WinXP  SP2 popups are becoming a thing of the past and you
> have to do workarounds for them(IE detecting if the popup occured etc)

And a good thing too :-) But these are applications for internal use and the
clients will have to add a trust in IE for my page then it will work I hope.
>
> As far as the directlink, wouldnt that be part of the page you open and not
> in the component on the opener page? Unless I misunderstand you and you want
> to actually open the page using a directlink, in which case you just build
> the url to pass to the javascript(or popup component)
>
I'm planning to recreate the url and put it in in the javascript.

I'm wondering if I don't get state exception stuff all over the place If I
implement it as described.

Wouter

> James
>
>
> ----- Original Message -----
> From: <wo...@online.ie>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Friday, November 05, 2004 4:32 AM
> Subject: submit and pop up
>
>
> >
> >
> > Hi,
> >
> > Maybe someone could point me in the right direction.
> > I would like to create a new component with the following behaviour,
> create
> > a button that will do a submit and after submitting, the system will
> return the
> > same page that has been submitted with one difference: it will insert some
> > javascript into the page that will open an new window that points to a
> direct
> > link.
> >
> > The reason for this: I would like to pop-up a window that will show a pdf,
> but
> > that pdf will contain information that should be submitted first. Now we
> deal
> > with it using two buttons "save" and "show", but I would like to make the
> whole
> > a bit more user-friendly and this issue comes up in a lot of our
> applications.
> >
> > Pointers anyone?
> >
> > Regards,
> > Wouter de Vaal
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: submit and pop up

Posted by James Sherwood <js...@romulin.com>.
I would just use a conditional in the page for the javascript.  OR Create a
component to put inside your form that is a conditional that adds javascript
to pop open a page(look at contrib popup component maybe)

Although with WinXP  SP2 popups are becoming a thing of the past and you
have to do workarounds for them(IE detecting if the popup occured etc)

As far as the directlink, wouldnt that be part of the page you open and not
in the component on the opener page? Unless I misunderstand you and you want
to actually open the page using a directlink, in which case you just build
the url to pass to the javascript(or popup component)

James


----- Original Message ----- 
From: <wo...@online.ie>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Friday, November 05, 2004 4:32 AM
Subject: submit and pop up


>
>
> Hi,
>
> Maybe someone could point me in the right direction.
> I would like to create a new component with the following behaviour,
create
> a button that will do a submit and after submitting, the system will
return the
> same page that has been submitted with one difference: it will insert some
> javascript into the page that will open an new window that points to a
direct
> link.
>
> The reason for this: I would like to pop-up a window that will show a pdf,
but
> that pdf will contain information that should be submitted first. Now we
deal
> with it using two buttons "save" and "show", but I would like to make the
whole
> a bit more user-friendly and this issue comes up in a lot of our
applications.
>
> Pointers anyone?
>
> Regards,
> Wouter de Vaal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org