Hi; I have a Web site I'm building a shopping cart for that is built with a basic site template and an iframe where all the page-by-page info goes. I need to redirect the iframe to the address below, but when I use the current incantation, it replaces not just the iframe but the whole page! Can someone suggest a better idea? This is a python script: request = container.REQUEST response = request.RESPONSE response.redirect(request.BASE0 + '/EMarket/Our_Store/Main_frame.pt?category=' + category) TIA, Tony ________________________________________________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.
--On 12. März 2007 11:55:52 -0400 tonylabarbara@aol.com wrote:
Hi; I have a Web site I'm building a shopping cart for that is built with a basic site template and an iframe where all the page-by-page info goes. I need to redirect the iframe to the address below, but when I use the current incantation, it replaces not just the iframe but the whole page! Can someone suggest a better idea? This is a python script: request = container.REQUEST response = request.RESPONSE response.redirect(request.BASE0 + '/EMarket/Our_Store/Main_frame.pt?category=' + category) TIA,
This will of course redirect the whole page including all contents. You have to use Javascript. -aj
Ugh. JS redirects create problems with the search engines. What I really want to do is "fill the hole in the doughnut", to use a radio advertising term. That is, I have code before the page data referenced below, and I have code after it. I want to write the stuff referenced below into the "hole". What's a good way to do this? TIA, Tony -----Original Message----- From: lists@zopyx.com To: tonylabarbara@aol.com; zope@zope.org Sent: Mon, 12 Mar 2007 12:04 PM Subject: Re: [Zope] Redirecting --On 12. März 2007 11:55:52 -0400 tonylabarbara@aol.com wrote:
Hi; I have a Web site I'm building a shopping cart for that is built with a basic site template and an iframe where all the page-by-page info goes. I need to redirect the iframe to the address below, but when I use the current incantation, it replaces not just the iframe but the whole page! Can someone suggest a better idea? This is a python script: request = container.REQUEST response = request.RESPONSE response.redirect(request.BASE0 + '/EMarket/Our_Store/Main_frame.pt?category=' + category) TIA,
This will of course redirect the whole page including all contents. You have to use Javascript. -aj ________________________________________________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.
--On 12. März 2007 12:13:53 -0400 tonylabarbara@aol.com wrote:
Ugh. JS redirects create problems with the search engines. What I really want to do is "fill the hole in the doughnut", to use a radio advertising term.
What you want is not of interest in this particular case. You can perform a redirection of an iframe driven by the main page only through JS - point. -aj
tonylabarbara@aol.com wrote:
Ugh. JS redirects create problems with the search engines. What I really want to do is "fill the hole in the doughnut", to use a radio advertising term. That is, I have code before the page data referenced below, and I have code after it. I want to write the stuff referenced below into the "hole". What's a good way to do this? TIA, Tony
Why on earth do you want to use an iframe anyway? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
----- Original Message ----- From: <tonylabarbara@aol.com> To: <zope@zope.org> Sent: Monday, March 12, 2007 11:55 AM Subject: [Zope] Redirecting
Hi; I have a Web site I'm building a shopping cart for that is built with a basic site template and an iframe where all the page-by-page info goes. I need to redirect the iframe to the address below, but when I use the current incantation, it replaces not just the iframe but the whole page! Can someone suggest a better idea? This is a python script:
request = container.REQUEST response = request.RESPONSE response.redirect(request.BASE0 + '/EMarket/Our_Store/Main_frame.pt?category=' + category)
If the link to the redirect is on a page within the iframe, then it will just reload the contents of the iframe (unless there is some javascript within the target page which is 'breaking out' of the iframe). If the link to the redirect is on the 'main page' and you want it to just reload the iframe, then you need some logic in the main page display routine which sets the 'src' field of the iframe html tag to the 'new' routine. hth Jonathan
participants (4)
-
Andreas Jung -
Chris Withers -
Jonathan -
tonylabarbara@aol.com