List Info

Thread: CP 2.2.1 Question/Issue Firefox vs. IE strangeness




CP 2.2.1 Question/Issue Firefox vs. IE strangeness
user name
2006-04-28 13:53:11
CP version 2.2.1

I have a form that uses a javascript calendar to pick dates.
 It
references calendar.html (in my templates folder).

Javascript:
	var obj_calwindow = window.open(
		"templates/calendar.html?datetime=" +
this.dt_current.valueOf()+
'&id=' + this.id,
		'Calendar', 'width=200,height='+(this.time_comp ? 215
: 190)+
		',status=no,resizable=no,top=200,left=200,dependent=yes,a
lwaysRaised=yes'
	);
	obj_calwindow.opener = window;
	obj_calwindow.focus();

The input form uses this as a date/time picker and it works
well in
Internet Explorer.  I run the exact same code in Firefox and
I get a
404 Not Found error:

28/Apr/2006:09:49:04 HTTP INFO Page handler: "The path
'/calendar.html'
was not
found."
Traceback (most recent call last):
  File
"C:\Python\Lib\site-packages\cherrypy\_cphttptool
s.py", line
105, in _run

    self.main()
  File
"C:\Python\Lib\site-packages\cherrypy\_cphttptool
s.py", line
246, in main

    page_handler, object_path, virtual_path =
self.mapPathToObject(path)
  File
"C:\Python\Lib\site-packages\cherrypy\_cphttptool
s.py", line
312, in mapP
athToObject
    raise cherrypy.NotFound(objectpath)
NotFound: 404

127.0.0.1 - - [28/Apr/2006:09:49:04] "GET
/calendar.html?datetime=1146232144293&
id=1 HTTP/1.1" 404 727 "http://127.0.0.1:8080
/entryform" "Mozilla/5.0
(W
indows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308
Firefox/1.5.0.2"


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

CP 2.2.1 Question/Issue Firefox vs. IE strangeness
user name
2006-04-28 16:59:10
> CP version 2.2.1
> 
> I have a form that uses a javascript calendar to pick
dates.  It
> references calendar.html (in my templates folder).
> 
> Javascript:
> 	var obj_calwindow = window.open(
> 		"templates/calendar.html?datetime=" +
this.dt_current.valueOf()+
> '&id=' + this.id,
> 		'Calendar', 'width=200,height='+(this.time_comp ?
215 : 190)+
>
		',status=no,resizable=no,top=200,left=200,dependent=yes,a
lwaysRaised=yes'
> 	);
> 	obj_calwindow.opener = window;
> 	obj_calwindow.focus();
> 
> The input form uses this as a date/time picker and it
works well in
> Internet Explorer.  I run the exact same code in
Firefox and I get a
> 404 Not Found error:
> 
> 28/Apr/2006:09:49:04 HTTP INFO Page handler: "The
path '/calendar.html'
> was not
> found."
> Traceback (most recent call last):
>   File
"C:\Python\Lib\site-packages\cherrypy\_cphttptool
s.py", line
> 105, in _run
> 
>     self.main()
>   File
"C:\Python\Lib\site-packages\cherrypy\_cphttptool
s.py", line
> 246, in main
> 
>     page_handler, object_path, virtual_path =
> self.mapPathToObject(path)
>   File
"C:\Python\Lib\site-packages\cherrypy\_cphttptool
s.py", line
> 312, in mapP
> athToObject
>     raise cherrypy.NotFound(objectpath)
> NotFound: 404
> 
> 127.0.0.1 - - [28/Apr/2006:09:49:04] "GET
> /calendar.html?datetime=1146232144293&
> id=1 HTTP/1.1" 404 727 "http://127.0.0.1:8080
/entryform" "Mozilla/5.0
> (W
> indows; U; Windows NT 5.1; en-US; rv:1.8.0.2)
Gecko/20060308
> Firefox/1.5.0.2"

Is /calendar.html the URL that's supposed to get requested
?
Which URL(s) does IE request ?

Remi.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

CP 2.2.1 Question/Issue Firefox vs. IE strangeness
user name
2006-04-28 17:09:30

Remi,
Thanks for responding.

>From IE, I click the calendar control and the server
reports correctly
as /templates/calendar.html (which is how it is in the
calendar.js).



127.0.0.1 - - [28/Apr/2006:13:07:49] "GET
/templates/images/prev.gif
HTTP/1.1" 3
04 -
"http://127.0.0.1:8080/templates/cal
endar.html?datetime=1146244067977&id=0"
 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR
1.1.4322)"


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

CP 2.2.1 Question/Issue Firefox vs. IE strangeness
user name
2006-04-28 18:55:19
Close this..
It must have been something in my html code, it's working
now.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )