tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Dunne <richarddunne1...@yahoo.com>
Subject Re: AW: Ajax xmlhttprequest
Date Fri, 13 Apr 2007 14:35:45 GMT
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 <p@pidster.com>
To: Tomcat Users List <users@tomcat.apache.org>
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:richarddunne1971@yahoo.com] 
> 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 <john@kewlstuff.co.za>
> To: Tomcat Users List <users@tomcat.apache.org>
> 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" <richarddunne1971@yahoo.com>
> To: <users@tomcat.apache.org>
> 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: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> __________________________________________________
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message