473,382 Members | 1,665 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,382 software developers and data experts.

ajax calling php not working

5
hi,

I am currently working on linux env.
I have PHP, JS and MySQL.

I am exploring ajax to use.

I tried w3shools and the example was working fine with windows.. please see link:
http://www.w3schools.com/PHP/php_ajax_database.asp

However, this same example does not work in my firefox browser in linux. I am currently on VMware.

I tried this code because my code also does not work when httpRequest calls my php file.

Can you help me whats wrong with this please ?
thanks.

I tried calling PHP without using xmlhttprequest in linux and it was working fine.
I dont know whats wrong...when i use async call it does not work.

thanks much,
tinks
Dec 20 '10 #1
2 2396
gits
5,390 Expert Mod 4TB
try to install the firebug-extension for firefox and see what errors occur ... basically the mentioned code works in all environments ... so it's difficult to say something without some more information about possible errors.
Dec 20 '10 #2
tinks
5
hi,

i installed the firebug and it says:

uncaught exception: [Exception... "Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open]" nsresult: "0x805e000a (<unknown>)" location: "JS frame :: file:///C:/wamp/www/sample.html :: showUser :: line 32" data: no]


i read about this error and said something about AdBlock..i checked my add-ons and i dont even have adBlock installed..

what could possibly be wrong. im really stuck with this..

thanks
Dec 22 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Danny R | last post by:
I have the following javascript which works in either IE or Firefox but not on both. When I set the code to http_request.open('POST', url, true) - Works in IE only http_request.open('GET',...
3
by: nuchphasu | last post by:
Hi I have a problem on Dropdownlist that connect database and retrieve data by Ajax.I write javascript like this -------------------------------------------------------------------------...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
2
by: KBS Tours Development | last post by:
Hi, I've deployed latest release on production with new AJAX functionality but the server posts back completely and toolkit functionalities are not working at all like calendar etc. Here is...
1
by: Mark B | last post by:
This is my first try at using AJAX. I want the calendars to be enabled if the user checks CheckBox1. It works OK for a normal all page refresh but once I introduced the AJAX code it stopped...
5
by: krishna.tunikipati | last post by:
Hi I have updated my firefox browser from 2.0 to 3.0 My AJAX functionality is not working in firefox3.0 But in firefox2.0 it worked fine. and working fine in all IE versions Plz give me a...
6
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I'm building a site with Visual Studio 2008 utilizing ajax extension. The page works fine on IE7/FireFox, but on IE6, each action on the page will cause an entire page refresh. Basically the...
3
by: sarika | last post by:
Hi all I m making a website in which i have used ajax technology . When i make a page request throght ajax it works fine in IE but giving problems in Mozilla .In mozila i m getting 403 status code...
18
by: vetrib2w | last post by:
Hi , In short: How to change the form action attribute value using javascript and that need to supported in IE also ? BRIEF: I am using ajax function to submit the form. I am also...
1
maliksleo
by: maliksleo | last post by:
hi all i configured my website on my local server after some time the ajax stop working on all pages and shows error on page in the left bottom when clicked it shows sys is undefined waiting...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.