Re: Ajax xmlhttprequest

2007-04-17 Thread Martin Heiden

Richard!

  As you said: You installed PHP separately installed on your laptop.
  Tomcat can't interpret PHP out of the box. If you only want to use
  PHP without any Java, install the Apache HTTPD (httpd.apache.org)
  with mod_php5 enabled. If you also want to use Java, you've got
  three choices:

  1) Run PHP on Apache HTTPD and Java on Tomcat. Setup communication
 via http - calls between the two servers.

  2) Run PHP on Apache HTTPD and use the PHP-Java Bridge. You don't
 need Tomcat.

  3) You can interpret PHP on Tomcat if you use the reference
 implementation for JSR-223 (Scripting for the Java Platform)
 http://jcp.org/aboutJava/communityprocess/pr/jsr223/index.html

  With the scenario you described, I'd recommend to just switch from
  Tomcat to the Apache HTTPD.

regards,

  Martin

am Dienstag, 17. April 2007 um 00:44 schrieben Sie:

 I have Mozila Firefox, Jakarta Tomcat v5.0.28, PHP5 and PostgreSQL
 8.2.3-1 installed seperately on my laptop, also have MySQL installed
 but using Postgres for project purpose.  All of my php files are
 listed under http://localhost:8080/ProjectFolder.  Some of my php
 files are webpages and most are scripts.  I have a database and a
 few tables created.  So far in DOS, I can query the database with a
 php script on its own.  In Windows, (Editplus text editor) one of my
 webpages is trying to execute the same php script via an Ajax
 xmlhttprequest, using alerts I have gone through the http
 readystates 1,2,3,4 and http status 200, but am having problems
 accessing/parsing responseText.  In tomcat, I am getting as far as
 readystate 1, (firewall turned off).  Is there any
 particular/obvious reason why the request is breaking down in tomcat?

 Richard.


 - Original Message 
 From: dimitryous r. [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, April 16, 2007 10:58:16 PM
 Subject: Re: Ajax xmlhttprequest


 I have a php webpage which is hosted on my laptop (XP and tomcat  
 localhost:8080).

 Hello,
 Please tell me more about your configuration:
 if your Apache Tomcat server is running on port 8080 how come do you  
 get something out of a xxx.php script?
 You mean: at http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x)  
 this script call http://localhost/anyfile.php (Apache 1.3.xx with php/
 MySQL built-in)???

 Is this the way you do it?

 Thank you much.

 On 8 avr. 07, at 14:55, Richard Dunne wrote:

 I have a php webpage which is hosted on my laptop (XP and tomcat  
 localhost:8080). My webpage is executing a php script via an  
 xmlhttprequest which queries a database and sends back the info to  
 the webpage.   I have an a few alerts in my request to see the  
 http.readystate and the http.status as they change.  In windows  
 (IE7), when I execute the request I can see the readystate changing  
 1,2,3,4 and the status 200.  In tomcat when I execute the request,  
 I am getting 1 alert, that is readystate 1, and thats as far as it  
 goes.  Can anyone suggest a possible solution, or have an idea as  
 to what the problem might be.

 Richard.



 __ 
 __
 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at  
 Yahoo! Games.
 http://videogames.yahoo.com/platform?platform=120121


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax xmlhttprequest

2007-04-17 Thread dimitryous r.

Here is a useful link:
http://sourceforge.net/project/downloading.php? 
group_id=117793use_mirror=ovhfilename=php-java- 
bridge_4.0.8a_j2ee.zip80307299


Hope.

On 17 avr. 07, at 10:14, Martin Heiden wrote:



Richard!

  As you said: You installed PHP separately installed on your laptop.
  Tomcat can't interpret PHP out of the box. If you only want to use
  PHP without any Java, install the Apache HTTPD (httpd.apache.org)
  with mod_php5 enabled. If you also want to use Java, you've got
  three choices:

  1) Run PHP on Apache HTTPD and Java on Tomcat. Setup communication
 via http - calls between the two servers.

  2) Run PHP on Apache HTTPD and use the PHP-Java Bridge. You don't
 need Tomcat.

  3) You can interpret PHP on Tomcat if you use the reference
 implementation for JSR-223 (Scripting for the Java Platform)
 http://jcp.org/aboutJava/communityprocess/pr/jsr223/index.html

  With the scenario you described, I'd recommend to just switch from
  Tomcat to the Apache HTTPD.

regards,

  Martin

am Dienstag, 17. April 2007 um 00:44 schrieben Sie:


I have Mozila Firefox, Jakarta Tomcat v5.0.28, PHP5 and PostgreSQL
8.2.3-1 installed seperately on my laptop, also have MySQL installed
but using Postgres for project purpose.  All of my php files are
listed under http://localhost:8080/ProjectFolder.  Some of my php
files are webpages and most are scripts.  I have a database and a
few tables created.  So far in DOS, I can query the database with a
php script on its own.  In Windows, (Editplus text editor) one of my
webpages is trying to execute the same php script via an Ajax
xmlhttprequest, using alerts I have gone through the http
readystates 1,2,3,4 and http status 200, but am having problems
accessing/parsing responseText.  In tomcat, I am getting as far as
readystate 1, (firewall turned off).  Is there any
particular/obvious reason why the request is breaking down in tomcat?



Richard.




- Original Message 
From: dimitryous r. [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, April 16, 2007 10:58:16 PM
Subject: Re: Ajax xmlhttprequest




I have a php webpage which is hosted on my laptop (XP and tomcat
localhost:8080).



Hello,
Please tell me more about your configuration:
if your Apache Tomcat server is running on port 8080 how come do you
get something out of a xxx.php script?
You mean: at http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x)
this script call http://localhost/anyfile.php (Apache 1.3.xx with  
php/

MySQL built-in)???



Is this the way you do it?



Thank you much.



On 8 avr. 07, at 14:55, Richard Dunne wrote:



I have a php webpage which is hosted on my laptop (XP and tomcat
localhost:8080). My webpage is executing a php script via an
xmlhttprequest which queries a database and sends back the info to
the webpage.   I have an a few alerts in my request to see the
http.readystate and the http.status as they change.  In windows
(IE7), when I execute the request I can see the readystate changing
1,2,3,4 and the status 200.  In tomcat when I execute the request,
I am getting 1 alert, that is readystate 1, and thats as far as it
goes.  Can anyone suggest a possible solution, or have an idea as
to what the problem might be.

Richard.



 
__

__
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at
Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax xmlhttprequest

2007-04-17 Thread Pid

Err?

You do know that Tomcat is a Java Servlet Container, rather than a 
multipurpose webserver right?


Course it does an excellent job of serving HTTP - but it's not meant to 
be a competitor for Apache HTTPD, it's for JSPs, Servlets and all things 
Java...


Ever considered JSP instead of PHP?

p



Richard Dunne wrote:

Learn something new everyday.  OK developers, something to maybe look forward 
to in the future perhaps?


- Original Message 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 12:00:57 AM
Subject: Re: Ajax xmlhttprequest


On 4/16/07, Richard Dunne [EMAIL PROTECTED] wrote:


I can query the database with a php script on its own.



...one of my webpages is trying to execute the same php script
via an Ajax xmlhttprequest,



Is there any particular/obvious reason why the request is breaking
down in tomcat?


Uh, because Tomcat has no facility for parsing/interpreting PHP? :-)

Caveat: unless you've ported over the old PHP4 servlet that no longer
comes with the PHP 5 source, in which case we'd need a wee bit more
info... :-)




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Ajax xmlhttprequest

2007-04-16 Thread dimitryous r .

Hi Richard,

As said earlier the only way to parse php files out of Apache Tomcat  
is something like:

http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x)
calling http://localhost/anyfile.php (Apache 1.3.xx with php/MySQL  
built-in)

This means 2 servers running on the same machine.

This way you will be able to run: http://www.yoursite_1.com:8080/ 
myfile.jsp (inside the jsp script - Apache Tomcat 5.5.20 JSP -)  
calling http://www.yoursite_2.com/anyfile.php (- Apache 2.2.32 HTTP -  
running php5 with MySQL databases) (sorry for derby). It is possible  
from this server to bounce-back (and forth) - with the appropriate  
javascript codes - to applets running on server_1.
From now on it is the only way to do it - in my opinion -. Ajax  
don't do that.

If not please let us know.
On 17 avr. 07, at 01:10, Richard Dunne wrote:

Learn something new everyday.  OK developers, something to maybe  
look forward to in the future perhaps?



- Original Message 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 12:00:57 AM
Subject: Re: Ajax xmlhttprequest


On 4/16/07, Richard Dunne [EMAIL PROTECTED] wrote:


I can query the database with a php script on its own.



...one of my webpages is trying to execute the same php script
via an Ajax xmlhttprequest,



Is there any particular/obvious reason why the request is breaking
down in tomcat?


Uh, because Tomcat has no facility for parsing/interpreting PHP? :-)

Caveat: unless you've ported over the old PHP4 servlet that no longer
comes with the PHP 5 source, in which case we'd need a wee bit more
info... :-)
--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax xmlhttprequest

2007-04-13 Thread dimitryous r.

Hi,

I can't give you a response.

But would like to know how you manage to be able to get a index.php  
(for example) page out of your Apache Tomcat server.


Sould I recompile the whole stuff? Should I add some xxx.so file to  
my Apache config?


TIA

dimitryous.
On 8 avr. 07, at 14:55, Richard Dunne wrote:

I have a php webpage which is hosted on my laptop (XP and tomcat  
localhost:8080). My webpage is executing a php script via an  
xmlhttprequest which queries a database and sends back the info to  
the webpage.   I have an a few alerts in my request to see the  
http.readystate and the http.status as they change.  In windows  
(IE7), when I execute the request I can see the readystate changing  
1,2,3,4 and the status 200.  In tomcat when I execute the request,  
I am getting 1 alert, that is readystate 1, and thats as far as it  
goes.  Can anyone suggest a possible solution, or have an idea as  
to what the problem might be.


Richard.



__ 
__

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at  
Yahoo! Games.

http://videogames.yahoo.com/platform?platform=120121



-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax xmlhttprequest

2007-04-13 Thread Johnny Kewl

OK... more than a little confused

I think you saying when you run it against Apache Server... it works
But when you run the script again tomcat it doesnt...

Show us the Script in the web page
and show us the Servlet or JSP in tomcat
You can also show us the php if u want...

Then we can help u


- Original Message - 
From: Richard Dunne [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Sent: Sunday, April 08, 2007 2:55 PM
Subject: Ajax xmlhttprequest


I have a php webpage which is hosted on my laptop (XP and tomcat 
localhost:8080). My webpage is executing a php script via an xmlhttprequest 
which queries a database and sends back the info to the webpage.   I have 
an a few alerts in my request to see the http.readystate and the 
http.status as they change.  In windows (IE7), when I execute the request I 
can see the readystate changing 1,2,3,4 and the status 200.  In tomcat when 
I execute the request, I am getting 1 alert, that is readystate 1, and 
thats as far as it goes.  Can anyone suggest a possible solution, or have 
an idea as to what the problem might be.


Richard.




Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! 
Games.
http://videogames.yahoo.com/platform?platform=120121 



-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax xmlhttprequest

2007-04-13 Thread Richard Dunne
Not familiar with xxx.so.  file.php is within my context.

Richard


- Original Message 
From: dimitryous r. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 11:34:00 AM
Subject: Re: Ajax xmlhttprequest


Hi,

I can't give you a response.

But would like to know how you manage to be able to get a index.php  
(for example) page out of your Apache Tomcat server.

Sould I recompile the whole stuff? Should I add some xxx.so file to  
my Apache config?

TIA

dimitryous.
On 8 avr. 07, at 14:55, Richard Dunne wrote:

 I have a php webpage which is hosted on my laptop (XP and tomcat  
 localhost:8080). My webpage is executing a php script via an  
 xmlhttprequest which queries a database and sends back the info to  
 the webpage.   I have an a few alerts in my request to see the  
 http.readystate and the http.status as they change.  In windows  
 (IE7), when I execute the request I can see the readystate changing  
 1,2,3,4 and the status 200.  In tomcat when I execute the request,  
 I am getting 1 alert, that is readystate 1, and thats as far as it  
 goes.  Can anyone suggest a possible solution, or have an idea as  
 to what the problem might be.

 Richard.



 __ 
 __
 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at  
 Yahoo! Games.
 http://videogames.yahoo.com/platform?platform=120121


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Ajax xmlhttprequest

2007-04-13 Thread Richard Dunne
My php webpage renders just like an html page on localhost:8080, but when I run 
an xmlhttprequest against the tomcat (jakarta) server from within the webpage, 
the request shows a readystate of 1, and thats as far as it gets.  The request 
goes throught the reaystates 1-4 and status 200 in winodws. I'm not using asp 
or jsp, just php and Ajax/javascript. cant post code at the moment, at work u c.

Richard.



- Original Message 
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 12:56:30 PM
Subject: Re: Ajax xmlhttprequest


OK... more than a little confused

I think you saying when you run it against Apache Server... it works
But when you run the script again tomcat it doesnt...

Show us the Script in the web page
and show us the Servlet or JSP in tomcat
You can also show us the php if u want...

Then we can help u


- Original Message - 
From: Richard Dunne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 08, 2007 2:55 PM
Subject: Ajax xmlhttprequest


I have a php webpage which is hosted on my laptop (XP and tomcat 
localhost:8080). My webpage is executing a php script via an xmlhttprequest 
which queries a database and sends back the info to the webpage.   I have 
an a few alerts in my request to see the http.readystate and the 
http.status as they change.  In windows (IE7), when I execute the request I 
can see the readystate changing 1,2,3,4 and the status 200.  In tomcat when 
I execute the request, I am getting 1 alert, that is readystate 1, and 
thats as far as it goes.  Can anyone suggest a possible solution, or have 
an idea as to what the problem might be.

 Richard.



 
 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at Yahoo! 
 Games.
 http://videogames.yahoo.com/platform?platform=120121 


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

AW: Ajax xmlhttprequest

2007-04-13 Thread Konstantin Breu
You can try to use a tool like fiddler, to see better what happens at the
requests. Have you tried to change the xmlhttprequest call so that it
requests a static html file from tomcat? Does that work? Which progid do you
use to instantiate the xmlhttprequest object (if you instantiate it via new
ActiveXObject)?

-Ursprüngliche Nachricht-
Von: Richard Dunne [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 13. April 2007 14:25
An: Tomcat Users List
Betreff: Re: Ajax xmlhttprequest

My php webpage renders just like an html page on localhost:8080, but when I
run an xmlhttprequest against the tomcat (jakarta) server from within the
webpage, the request shows a readystate of 1, and thats as far as it gets.
The request goes throught the reaystates 1-4 and status 200 in winodws. I'm
not using asp or jsp, just php and Ajax/javascript. cant post code at the
moment, at work u c.

Richard.



- Original Message 
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 12:56:30 PM
Subject: Re: Ajax xmlhttprequest


OK... more than a little confused

I think you saying when you run it against Apache Server... it works
But when you run the script again tomcat it doesnt...

Show us the Script in the web page
and show us the Servlet or JSP in tomcat
You can also show us the php if u want...

Then we can help u


- Original Message - 
From: Richard Dunne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 08, 2007 2:55 PM
Subject: Ajax xmlhttprequest


I have a php webpage which is hosted on my laptop (XP and tomcat 
localhost:8080). My webpage is executing a php script via an xmlhttprequest

which queries a database and sends back the info to the webpage.   I have 
an a few alerts in my request to see the http.readystate and the 
http.status as they change.  In windows (IE7), when I execute the request I

can see the readystate changing 1,2,3,4 and the status 200.  In tomcat when

I execute the request, I am getting 1 alert, that is readystate 1, and 
thats as far as it goes.  Can anyone suggest a possible solution, or have 
an idea as to what the problem might be.

 Richard.






 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at Yahoo! 
 Games.
 http://videogames.yahoo.com/platform?platform=120121 


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Ajax xmlhttprequest

2007-04-13 Thread Pid
I'm going to ask a potentially stupid question here: how have you 
configured / are you running PHP code on Tomcat?


Have you called the PHP file directly to see what output it generates?


p



Konstantin Breu wrote:

You can try to use a tool like fiddler, to see better what happens at the
requests. Have you tried to change the xmlhttprequest call so that it
requests a static html file from tomcat? Does that work? Which progid do you
use to instantiate the xmlhttprequest object (if you instantiate it via new
ActiveXObject)?

-Ursprüngliche Nachricht-
Von: Richard Dunne [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 13. April 2007 14:25

An: Tomcat Users List
Betreff: Re: Ajax xmlhttprequest

My php webpage renders just like an html page on localhost:8080, but when I
run an xmlhttprequest against the tomcat (jakarta) server from within the
webpage, the request shows a readystate of 1, and thats as far as it gets.
The request goes throught the reaystates 1-4 and status 200 in winodws. I'm
not using asp or jsp, just php and Ajax/javascript. cant post code at the
moment, at work u c.

Richard.



- Original Message 
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 12:56:30 PM
Subject: Re: Ajax xmlhttprequest


OK... more than a little confused

I think you saying when you run it against Apache Server... it works
But when you run the script again tomcat it doesnt...

Show us the Script in the web page
and show us the Servlet or JSP in tomcat
You can also show us the php if u want...

Then we can help u


- Original Message - 
From: Richard Dunne [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Sent: Sunday, April 08, 2007 2:55 PM
Subject: Ajax xmlhttprequest


I have a php webpage which is hosted on my laptop (XP and tomcat 
localhost:8080). My webpage is executing a php script via an xmlhttprequest


which queries a database and sends back the info to the webpage.   I have 
an a few alerts in my request to see the http.readystate and the 
http.status as they change.  In windows (IE7), when I execute the request I



can see the readystate changing 1,2,3,4 and the status 200.  In tomcat when


I execute the request, I am getting 1 alert, that is readystate 1, and 
thats as far as it goes.  Can anyone suggest a possible solution, or have 
an idea as to what the problem might be.


Richard.








Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! 
Games.
http://videogames.yahoo.com/platform?platform=120121 



-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







smime.p7s
Description: S/MIME Cryptographic Signature


Re: AW: Ajax xmlhttprequest

2007-04-13 Thread Richard Dunne
If you take any .html file and rename it .php for instance, the file will 
change to the php icon.  PHP is installed of course (I have PHP5)  It renders 
exactly the same as an html page does.  Once the file is within your context 
folder, it will be listed in the context dir in localhost under that path 
http://localhost:8080/your-context-folder-name.  Assuming your environment 
variable path is set correctly.

Richard.


- Original Message 
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 3:08:53 PM
Subject: Re: AW: Ajax xmlhttprequest


I'm going to ask a potentially stupid question here: how have you 
configured / are you running PHP code on Tomcat?

Have you called the PHP file directly to see what output it generates?


p



Konstantin Breu wrote:
 You can try to use a tool like fiddler, to see better what happens at the
 requests. Have you tried to change the xmlhttprequest call so that it
 requests a static html file from tomcat? Does that work? Which progid do you
 use to instantiate the xmlhttprequest object (if you instantiate it via new
 ActiveXObject)?
 
 -Ursprüngliche Nachricht-
 Von: Richard Dunne [mailto:[EMAIL PROTECTED] 
 Gesendet: Freitag, 13. April 2007 14:25
 An: Tomcat Users List
 Betreff: Re: Ajax xmlhttprequest
 
 My php webpage renders just like an html page on localhost:8080, but when I
 run an xmlhttprequest against the tomcat (jakarta) server from within the
 webpage, the request shows a readystate of 1, and thats as far as it gets.
 The request goes throught the reaystates 1-4 and status 200 in winodws. I'm
 not using asp or jsp, just php and Ajax/javascript. cant post code at the
 moment, at work u c.
 
 Richard.
 
 
 
 - Original Message 
 From: Johnny Kewl [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, April 13, 2007 12:56:30 PM
 Subject: Re: Ajax xmlhttprequest
 
 
 OK... more than a little confused
 
 I think you saying when you run it against Apache Server... it works
 But when you run the script again tomcat it doesnt...
 
 Show us the Script in the web page
 and show us the Servlet or JSP in tomcat
 You can also show us the php if u want...
 
 Then we can help u
 
 
 - Original Message - 
 From: Richard Dunne [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, April 08, 2007 2:55 PM
 Subject: Ajax xmlhttprequest
 
 
 I have a php webpage which is hosted on my laptop (XP and tomcat 
 localhost:8080). My webpage is executing a php script via an xmlhttprequest
 
 which queries a database and sends back the info to the webpage.   I have 
 an a few alerts in my request to see the http.readystate and the 
 http.status as they change.  In windows (IE7), when I execute the request I
 
 can see the readystate changing 1,2,3,4 and the status 200.  In tomcat when
 
 I execute the request, I am getting 1 alert, that is readystate 1, and 
 thats as far as it goes.  Can anyone suggest a possible solution, or have 
 an idea as to what the problem might be.

 Richard.




 
 
 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at Yahoo! 
 Games.
 http://videogames.yahoo.com/platform?platform=120121 
 
 
 -
 To start a new topic, e-mail: [EMAIL PROTECTED]
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 
 -
 To start a new topic, e-mail: [EMAIL PROTECTED]
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: AW: Ajax xmlhttprequest

2007-04-13 Thread Pid

Richard Dunne wrote:

If you take any .html file and rename it .php for instance, the file will 
change to the php icon.  PHP is installed of course (I have PHP5)  It renders 
exactly the same as an html page does.  Once the file is within your context 
folder, it will be listed in the context dir in localhost under that path 
http://localhost:8080/your-context-folder-name.  Assuming your environment 
variable path is set correctly.

Richard.


- Original Message 
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 3:08:53 PM
Subject: Re: AW: Ajax xmlhttprequest


I'm going to ask a potentially stupid question here: how have you 
configured / are you running PHP code on Tomcat?


Have you called the PHP file directly to see what output it generates?


p



Konstantin Breu wrote:

You can try to use a tool like fiddler, to see better what happens at the
requests. Have you tried to change the xmlhttprequest call so that it
requests a static html file from tomcat? Does that work? Which progid do you
use to instantiate the xmlhttprequest object (if you instantiate it via new
ActiveXObject)?

-Ursprüngliche Nachricht-
Von: Richard Dunne [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 13. April 2007 14:25

An: Tomcat Users List
Betreff: Re: Ajax xmlhttprequest

My php webpage renders just like an html page on localhost:8080, but when I
run an xmlhttprequest against the tomcat (jakarta) server from within the
webpage, the request shows a readystate of 1, and thats as far as it gets.
The request goes throught the reaystates 1-4 and status 200 in winodws. I'm
not using asp or jsp, just php and Ajax/javascript. cant post code at the
moment, at work u c.

Richard.



- Original Message 
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 12:56:30 PM
Subject: Re: Ajax xmlhttprequest


OK... more than a little confused

I think you saying when you run it against Apache Server... it works
But when you run the script again tomcat it doesnt...

Show us the Script in the web page
and show us the Servlet or JSP in tomcat
You can also show us the php if u want...

Then we can help u


- Original Message - 
From: Richard Dunne [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Sent: Sunday, April 08, 2007 2:55 PM
Subject: Ajax xmlhttprequest


I have a php webpage which is hosted on my laptop (XP and tomcat 
localhost:8080). My webpage is executing a php script via an xmlhttprequest
which queries a database and sends back the info to the webpage.   I have 
an a few alerts in my request to see the http.readystate and the 
http.status as they change.  In windows (IE7), when I execute the request I

can see the readystate changing 1,2,3,4 and the status 200.  In tomcat when
I execute the request, I am getting 1 alert, that is readystate 1, and 
thats as far as it goes.  Can anyone suggest a possible solution, or have 
an idea as to what the problem might be.


... right, but how does Tomcat know how to parse the file?

Tomcat won't automatically process the PHP code, unless you do something 
complicated involving a CGI redirection, if I remember correctly.


Your seeing the Javascript ready state change, but you're not seeing the 
same happen on the server because it's probably not executing the PHP.


Try calling the url you're submitting to directly in a browser, and use 
view-source to see if Tomcat is actually executing the PHP, or if it's 
just returning the file as if it's HTML.


p




Richard.








Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! 
Games.
http://videogames.yahoo.com/platform?platform=120121 


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





smime.p7s
Description: S/MIME Cryptographic Signature


Ajax xmlhttprequest

2007-04-08 Thread Richard Dunne
I have a php webpage which is hosted on my laptop (XP and tomcat 
localhost:8080). My webpage is executing a php script via an xmlhttprequest 
which queries a database and sends back the info to the webpage.   I have an a 
few alerts in my request to see the http.readystate and the http.status as they 
change.  In windows (IE7), when I execute the request I can see the readystate 
changing 1,2,3,4 and the status 200.  In tomcat when I execute the request, I 
am getting 1 alert, that is readystate 1, and thats as far as it goes.  Can 
anyone suggest a possible solution, or have an idea as to what the problem 
might be. 

Richard.


 

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121