Dear all,
Sorry for the long post, but I'm started to writing an
application 2
months ago and I'm sad because doesn't work with IE but
with Opera and
Firefox yes.
The application is based on cp2 2.1.1 and a lot of JS.
All works fine except an help function.
In the main class HttpProtected I define the following
global
variable:
self.HELP='''
<SCRIPT TYPE="text/javascript"
src="/css/help.js">
</SCRIPT>
'''
In all cherrytemplate pages I include this variable:
<py-eval="self.HELP">
The help.js opens a new little window with some
informations. The
followings are the first rows of the function
function help(tipology) {
newwin =
window.open('','','top=150,left=150,width=320,height=30
0');
if (!newwin.opener) newwin.opener = self;
if (tipology=="characters") {
with (newwin.document)
{
write('<html>');
write('<body>');
write('<center><table border=1>');
.
.
Using Opera and Firefox, I haven't problem. When I select
the help, the
program opens the new window that I can close to continue to
use the
application. Using the IE the program opens the new window
but destroy
the main page with the following error:
404 Not Found
The path '/HttpProtected/' was not found.
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/cherrypy/_cphttptool
s.py",
line
271, in run
main()
File
"/usr/lib/python2.4/site-packages/cherrypy/_cphttptool
s.py",
line
497, in main
page_handler, object_path, virtual_path =
mapPathToObject(path)
File
"/usr/lib/python2.4/site-packages/cherrypy/_cphttptool
s.py",
line
748, in mapPathToObject
raise cherrypy.NotFound(path)
NotFound: 404: The path '/HttpProtected/' was not found.
HttpProtected is the main class containing all the metods
that I use.
Seems that the programs load two page instead only one.
There are some solutions more than don't using IE?
Thanks
Enrico
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|