Re: [Zope] redirecting from inside a frame

2000-06-09 Thread Jim Sanford



The onlyway I can think off, (which doesn't mean 
its the only way), is to launch a new window and send a HTML document whose 
content is JavaScript. It would either rewrite the original frame or the entire 
window depending on you original input and then close itself.

  - Original Message - 
  From: 
  Fusion Group 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, June 08, 2000 6:03 
  PM
  Subject: [Zope] redirecting from inside a 
  frame
  
  I'm attempting to submit a form from inside of a 
  frame, and depending on the information submitted, redirect to a new page 
  which I no longer want displayed inside of that frame. I want the new 
  page to displayed in the full browser window, but not a new window. Any help 
  would be greatly appreciated.
  
  Regards,
  
  Chad


Re: [Zope] redirecting from inside a frame

2000-06-09 Thread Rik Hoekstra





The onlyway I can think off, (which doesn't mean its the only way), is to
launch a new window and send a HTML document whose content is JavaScript. It
would either rewrite the original frame or the entire window depending on
you original input and then close itself.


[rh] Hm, even for frames, there is a more zopish way to do this using Phil
Harris' method (using target). Suppose you want to make a text and then
display it in a frameset (this may not have been your original question, but
it is just about the hardest to without javascript)
This bugged me for a long time, so I thought i'd write it down:

make your frameset look something like this:

html
head
title/title
/head
frameset rows="100px,*" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0
  frame name="title" SRC="page1" SCROLLING=no
  frameset cols="150px,*" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0
frame name="content" SRC="content" SCROLLING="NO" NORESIZE
dtml-if input
   frame name="text" SRC="dtml-var input"
dtml-else
   frame name="text" SRC="defaultpage"
/dtml-if
  /frameset
/frameset
/html

form method=post action="some_frameset?input=dtml-var id" target="_top"

of course you could complicate this for plain page/frameset etc, but that's
the easy part ;-)

hth

Rik


  ----- Original Message -----
  From: Fusion Group
  To: [EMAIL PROTECTED]
  Sent: Thursday, June 08, 2000 6:03 PM
  Subject: [Zope] redirecting from inside a frame


  I'm attempting to submit a form from inside of a frame, and depending on
the information submitted, redirect to a new page which I no longer want
displayed inside of that frame.  I want the new page to displayed in the
full browser window, but not a new window. Any help would be greatly
appreciated.

  Regards,

  Chad



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] redirecting from inside a frame

2000-06-08 Thread Phil Harris

Chad,

Before I attempt an answer to your question, can I ask you a favour?

Please don't send HTML encoded mail to the list, lesser mortals use crappy
mailers and have trouble reading it 8¬)

Thanks in advance.

If I understand you correctly you want the form to goto a full browser
rather than remain in the frame set?

If so then something like, untested, should do the trick:

form method=post action="some_page" target="_top"
 .
.
 .
.
/form

the some_page script should then be in a full browser window and you can the
do whatever you need there, redirect etc.

hth

Phil
[EMAIL PROTECTED]




- Original Message -
From: Fusion Group
To: [EMAIL PROTECTED]
Sent: 09 June 2000 00:03
Subject: [Zope] redirecting from inside a frame


I'm attempting to submit a form from inside of a frame, and depending on the
information submitted, redirect to a new page which I no longer want
displayed inside of that frame.  I want the new page to displayed in the
full browser window, but not a new window. Any help would be greatly
appreciated.

Regards,

Chad


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )