ajax calling php not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tinks
    New Member
    • Dec 2010
    • 5

    ajax calling php not working

    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.c om/PHP/php_ajax_databa se.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
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    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.

    Comment

    • tinks
      New Member
      • Dec 2010
      • 5

      #3
      hi,

      i installed the firebug and it says:

      uncaught exception: [Exception... "Component returned failure code: 0x805e000a [nsIXMLHttpReque st.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

      Comment

      Working...