473,883 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2714
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("Conten t-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 "simplifyin g"
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 "simplifyin g"
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
"simplifyin g" 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**********@gm ail.com said the following on 3/19/2006 10:52 AM:
PointedEars,
Prototype.js is junk.


Why?


Because it's junk.

--
Randy
comp.lang.javas cript 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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 19 '06 #10

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

Similar topics

3
2521
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
5162
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 truc, passent à côté de l'effet..."
1
2890
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 http://www.easyphp.org/ -Matt
8
3761
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 bind function. The problem with Javascript is that the "this" operator is poorly overloaded and it is often hard to understand in the context of object-oriented javascript So, let's start with the definition:
8
2065
by: Robert | last post by:
Hi, I can use "with" like this: function MyObject(message) { this.message = message; } function _MyObject_speak() {
4
1776
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 have a function called foo? What if I have 5 different objects, all descended from Ancestor? Do
1
3580
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
2251
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
10880
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 be displayed. whats the problem here can u pls help me out.
0
10752
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10858
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9582
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7974
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7134
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5804
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4619
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4225
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.