[web2py] Re: redirect using a new window

2010-11-26 Thread leone
I need to redirect to a new page (for example as a new tab in
chrome).

On Nov 25, 4:30 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 I do not understand what you want to do.

 On Nov 25, 7:13 am, leone handja...@gmail.com wrote:







  Thanks for suggest, but I need something redirect(URL(..),
  _target='new').
  I fear that it doesn't exists, though web2py does anything.

  On Nov 24, 11:19 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   or

   a href={{=URL(...)}} target=newclick me/a

   On Nov 24, 2:47 pm, Michele Comitini michele.comit...@gmail.com
   wrote:

do you mean like this?

{{=A('click me!', _href=URL(...), _target='new')}}

2010/11/24 leone handja...@gmail.com:

 Hi,
 there is a way to redirect to a new page simulating A ,
 target='new' using URL()
 or a controller function???
 Thanks
 leone


[web2py] Re: redirect using a new window

2010-11-26 Thread mr.freeze
Like so?:
A('Open in new window',_href=URL('...'),_target='_blank')

On Nov 26, 11:42 am, leone handja...@gmail.com wrote:
 I need to redirect to a new page (for example as a new tab in
 chrome).

 On Nov 25, 4:30 pm, mdipierro mdipie...@cs.depaul.edu wrote:

  I do not understand what you want to do.

  On Nov 25, 7:13 am, leone handja...@gmail.com wrote:

   Thanks for suggest, but I need something redirect(URL(..),
   _target='new').
   I fear that it doesn't exists, though web2py does anything.

   On Nov 24, 11:19 pm, mdipierro mdipie...@cs.depaul.edu wrote:

or

a href={{=URL(...)}} target=newclick me/a

On Nov 24, 2:47 pm, Michele Comitini michele.comit...@gmail.com
wrote:

 do you mean like this?

 {{=A('click me!', _href=URL(...), _target='new')}}

 2010/11/24 leone handja...@gmail.com:

  Hi,
  there is a way to redirect to a new page simulating A ,
  target='new' using URL()
  or a controller function???
  Thanks
  leone




[web2py] Re: redirect using a new window

2010-11-26 Thread mr.freeze
Or do you mean use some javascript in the response to open a new
window?

On Nov 26, 11:46 am, mr.freeze nat...@freezable.com wrote:
 Like so?:
 A('Open in new window',_href=URL('...'),_target='_blank')

 On Nov 26, 11:42 am, leone handja...@gmail.com wrote:

  I need to redirect to a new page (for example as a new tab in
  chrome).

  On Nov 25, 4:30 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   I do not understand what you want to do.

   On Nov 25, 7:13 am, leone handja...@gmail.com wrote:

Thanks for suggest, but I need something redirect(URL(..),
_target='new').
I fear that it doesn't exists, though web2py does anything.

On Nov 24, 11:19 pm, mdipierro mdipie...@cs.depaul.edu wrote:

 or

 a href={{=URL(...)}} target=newclick me/a

 On Nov 24, 2:47 pm, Michele Comitini michele.comit...@gmail.com
 wrote:

  do you mean like this?

  {{=A('click me!', _href=URL(...), _target='new')}}

  2010/11/24 leone handja...@gmail.com:

   Hi,
   there is a way to redirect to a new page simulating A ,
   target='new' using URL()
   or a controller function???
   Thanks
   leone




[web2py] Re: redirect using a new window

2010-11-26 Thread leone
The first:
A('Open in new window',_href=URL('...'),_target='_blank')
.but using redirection. There is a way?

On Nov 26, 6:49 pm, mr.freeze nat...@freezable.com wrote:
 Or do you mean use some javascript in the response to open a new
 window?

 On Nov 26, 11:46 am, mr.freeze nat...@freezable.com wrote:







  Like so?:
  A('Open in new window',_href=URL('...'),_target='_blank')

  On Nov 26, 11:42 am, leone handja...@gmail.com wrote:

   I need to redirect to a new page (for example as a new tab in
   chrome).

   On Nov 25, 4:30 pm, mdipierro mdipie...@cs.depaul.edu wrote:

I do not understand what you want to do.

On Nov 25, 7:13 am, leone handja...@gmail.com wrote:

 Thanks for suggest, but I need something redirect(URL(..),
 _target='new').
 I fear that it doesn't exists, though web2py does anything.

 On Nov 24, 11:19 pm, mdipierro mdipie...@cs.depaul.edu wrote:

  or

  a href={{=URL(...)}} target=newclick me/a

  On Nov 24, 2:47 pm, Michele Comitini michele.comit...@gmail.com
  wrote:

   do you mean like this?

   {{=A('click me!', _href=URL(...), _target='new')}}

   2010/11/24 leone handja...@gmail.com:

Hi,
there is a way to redirect to a new page simulating A ,
target='new' using URL()
or a controller function???
Thanks
leone


[web2py] Re: redirect using a new window

2010-11-26 Thread Wikus van de Merwe
If your talking about the HTTP redirect there is no such mechanism in
it. It's just a simple 303 response which informs your browser to
fetch the content of a page from a different URL. If you want to open
a new panel/window with URL_2 after visiting URL_1 that has to be done
with javascript.

Why do you want to do that anyway? Opening new panel/window is plain
evil (especially if done with javascript). This should be controlled
by the user, not the webapp developer who thinks he knows better what
the users want. Give a normal link and let the users decide how they
want to open it.


[web2py] Re: redirect using a new window

2010-11-26 Thread mdipierro
I still do not understand what you want to do. Perhaps you can explain
what problem are you trying to solve.

On Nov 26, 1:16 pm, leone handja...@gmail.com wrote:
 The first:
 A('Open in new window',_href=URL('...'),_target='_blank')
 .but using redirection. There is a way?

 On Nov 26, 6:49 pm, mr.freeze nat...@freezable.com wrote:

  Or do you mean use some javascript in the response to open a new
  window?

  On Nov 26, 11:46 am, mr.freeze nat...@freezable.com wrote:

   Like so?:
   A('Open in new window',_href=URL('...'),_target='_blank')

   On Nov 26, 11:42 am, leone handja...@gmail.com wrote:

I need to redirect to a new page (for example as a new tab in
chrome).

On Nov 25, 4:30 pm, mdipierro mdipie...@cs.depaul.edu wrote:

 I do not understand what you want to do.

 On Nov 25, 7:13 am, leone handja...@gmail.com wrote:

  Thanks for suggest, but I need something redirect(URL(..),
  _target='new').
  I fear that it doesn't exists, though web2py does anything.

  On Nov 24, 11:19 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   or

   a href={{=URL(...)}} target=newclick me/a

   On Nov 24, 2:47 pm, Michele Comitini michele.comit...@gmail.com
   wrote:

do you mean like this?

{{=A('click me!', _href=URL(...), _target='new')}}

2010/11/24 leone handja...@gmail.com:

 Hi,
 there is a way to redirect to a new page simulating A ,
 target='new' using URL()
 or a controller function???
 Thanks
 leone




[web2py] Re: redirect using a new window

2010-11-25 Thread leone
Thanks for suggest, but I need something redirect(URL(..),
_target='new').
I fear that it doesn't exists, though web2py does anything.

On Nov 24, 11:19 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 or

 a href={{=URL(...)}} target=newclick me/a

 On Nov 24, 2:47 pm, Michele Comitini michele.comit...@gmail.com
 wrote:







  do you mean like this?

  {{=A('click me!', _href=URL(...), _target='new')}}

  2010/11/24 leone handja...@gmail.com:

   Hi,
   there is a way to redirect to a new page simulating A ,
   target='new' using URL()
   or a controller function???
   Thanks
   leone


[web2py] Re: redirect using a new window

2010-11-24 Thread mdipierro
or

a href={{=URL(...)}} target=newclick me/a

On Nov 24, 2:47 pm, Michele Comitini michele.comit...@gmail.com
wrote:
 do you mean like this?

 {{=A('click me!', _href=URL(...), _target='new')}}

 2010/11/24 leone handja...@gmail.com:

  Hi,
  there is a way to redirect to a new page simulating A ,
  target='new' using URL()
  or a controller function???
  Thanks
  leone