473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

prototype.js problem + easyphp

Hello everyone,

I have a problem with javascripts that runs correctly under EasyPHP 1.7
but not under EasyPHP 1.8 nor WAMP5 1.6.

I am using the prototype.js library.

I wrote the following :

var url = 'simpleDocument.xml';
var methode = 'get';
var myAjax = new Ajax.Request( url, {method: methode, onComplete:
analyseResponse} );

and further :

function analyseResponse(response) {

alert(response.responseText);
alert(response.responseXML);

}

The following occurs.

alert(response.responseText);
displays correctly the contents of simpleDocument.xml in all cases.

alert(response.responseXML);
displays correctly [object XMLDocument] under EasyPHP 1.7, but 'null'
under EasyPHP 1.8 and WAMP5.
Thanks in advance for your responses.

Best regards,

Roger
Mar 16 '06 #1
10 2679
VK

Roger (Bordeaux) wrote:
alert(response.responseXML);
displays correctly [object XMLDocument] under EasyPHP 1.7, but 'null'
under EasyPHP 1.8 and WAMP5.


Set both EasyPHP 1.8 and WAMP5 to return proper content type
("text/xml")

Mar 16 '06 #2
VK a écrit :
Roger (Bordeaux) wrote:
alert(response.responseXML);
displays correctly [object XMLDocument] under EasyPHP 1.7, but 'null'
under EasyPHP 1.8 and WAMP5.

Set both EasyPHP 1.8 and WAMP5 to return proper content type
("text/xml")

Thanks VK for your answer.

I will look around to find how to do this. May be you can give a me
indication where to find this ?

Best regards,

Roger
Mar 17 '06 #3
Roger (Bordeaux) a écrit :
VK a écrit :
Roger (Bordeaux) wrote:
alert(response.responseXML);
displays correctly [object XMLDocument] under EasyPHP 1.7, but
'null'
under EasyPHP 1.8 and WAMP5.


Set both EasyPHP 1.8 and WAMP5 to return proper content type
("text/xml")

Thanks VK for your answer.

I will look around to find how to do this. May be you can give a me
indication where to find this ?

Best regards,

Roger


The PHP script was missing an @header("Content-Type: text/xml;
charset=UTF-8"); statement.

Best regards

Roger
Mar 17 '06 #4
Roger (Bordeaux) wrote:
I have a problem with javascripts that runs correctly under EasyPHP 1.7
but not under EasyPHP 1.8 nor WAMP5 1.6.


Prototype.js is junk. This newsgroup is not a support forum for it, nor is
it a forum for PHP applications or Web servers. RTFM, and ask the vendors
if the former does not help. Or get yourself a minimum clue, in which case
you will come to abhor such misguided, failed attempts at "simplifying"
common (programming) tasks.
PointedEars
Mar 18 '06 #5
Thomas 'PointedEars' Lahn a écrit :
Roger (Bordeaux) wrote:

I have a problem with javascripts that runs correctly under EasyPHP 1.7
but not under EasyPHP 1.8 nor WAMP5 1.6.

Prototype.js is junk. This newsgroup is not a support forum for it, nor is
it a forum for PHP applications or Web servers. RTFM, and ask the vendors
if the former does not help. Or get yourself a minimum clue, in which case
you will come to abhor such misguided, failed attempts at "simplifying"
common (programming) tasks.
PointedEars


Thanks, this is a great constructive answer.

As you certainly have seen my problem is solved.

Roger
Mar 19 '06 #6
Roger (Bordeaux) wrote:
Thomas 'PointedEars' Lahn a écrit :
Roger (Bordeaux) wrote:
I have a problem with javascripts that runs correctly under EasyPHP 1.7
but not under EasyPHP 1.8 nor WAMP5 1.6. Prototype.js is junk. This newsgroup is not a support forum for it, nor
is it a forum for PHP applications or Web servers. RTFM, and ask the
vendors if the former does not help. Or get yourself a minimum clue, in
which case you will come to abhor such misguided, failed attempts at
"simplifying" common (programming) tasks.
[...]


Thanks, this is a great constructive answer.


Yes, it is, as you (and your fellow scriptkiddies) will hopefully no
longer waste the time of subscriber's to this newsgroup and your time
asking _here_.
As you certainly have seen my problem is solved.


No, that only seems to be so.
PointedEars
Mar 19 '06 #7
PointedEars,
Prototype.js is junk.


Why? This sort of statement begs explaination. I've had trouble with
the Prototype.js enumerable methods and don't use them anymore. I think
it is always a matter of variable scope that gets me. I do like the
event observer and handler methods which is all I am using it for right
now. As far as I know, the event methods smooth out the differences
between IE and DOM Level 2 event models.

Peter

Mar 19 '06 #8
pe**********@gmail.com said the following on 3/19/2006 10:52 AM:
PointedEars,
Prototype.js is junk.


Why?


Because it's junk.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 19 '06 #9
Thomas 'PointedEars' Lahn said the following on 3/19/2006 10:10 AM:

Yes, it is, as you (and your fellow scriptkiddies) will hopefully no
longer waste the time of subscriber's to this newsgroup and your time
asking _here_.


I waste more time reading your replies about wasting time than I do
reading wasteful questions. Your statement is garbage at best. The only
other thing I waste more time on is reading your irrelevant rants about
attribution lines.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 19 '06 #10
>>> Prototype.js is junk.
Why?
Because it's junk.


I am genuinely interested in the reasons why.

Thanks,
Peter

Mar 20 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: K. Larsen | last post by:
Downloaded EasyPhp the other day, have not yet tried it. Anybody have any experience using this bundle? K. Larsen
4
by: Jean-Baptiste Hétier | last post by:
How can I change the name of the server on easyPHP ? It is actually localhost. Thanks -- djib -- "Le monde est comme une grande illusion ; mais beaucoup d'hommes, en cherchant à trouver le...
1
by: Matt | last post by:
Hi, Are there any other available software packages that compare to XAMPP or EasyPHP (links below)? I'm trying to see if I have any other choices. http://www.apachefriends.org/en/xampp.html...
8
by: Elf M. Sternberg | last post by:
One of the complaints about prototype.js (google for it if you're not familiar with it) is that it's poorly documented. I have this inkling that the key to understanding prototype.js is in the...
8
by: Robert | last post by:
Hi, I can use "with" like this: function MyObject(message) { this.message = message; } function _MyObject_speak() {
4
by: lkrubner | last post by:
I'm reading an essay, I think one of Crockford's, and it has this example in it: function Demo() { } Demo.prototype = new Ancestor(); Demo.prototype.foo = function () { } ; Does Ancestor now...
1
by: Mick | last post by:
Hi there, I am using the following : - Win XP - Easyphp v 1-7 - PHP 4.3.10 I am getting the following error in my apache error log file when attempting
5
by: Daz | last post by:
Hi everyone. My query is very straight forward (I think). What's the difference between someFunc.blah = function(){ ; } and
8
by: priyasagar | last post by:
i have installed easyphp i wrote a smallpgm word.php <?php echo "hi"; ?> above code is wrking fine n giving o/p hi . but if we call http://localhost/phpmyadmin it is giving that page cannot...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.