Expand|Select|Wrap|Line Numbers
- function prof_info(fobj){
- var vld_inp=Get_Prof_Info(fobj,"validate");
- xmlHttp=GetXmlHttpObject();
- if(xmlHttp!=null){
- xmlHttp.onreadystatechange=StateChangeA;
- xmlHttp.open("POST","prof_save.php",true);
- xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
- xmlHttp.send(vld_inp);
- }
- else{
- alert("your browser is not supported Please Upgrade it ");
- return false;
- }
- }
- function StateChangeA(){
- alert("ready");
- if(xmlHttp.status == 200){
- if(xmlHttp.readyState == 4){
- var str="";
- str=xmlHttp.responseText;
- }
- }
- }
Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://server/rageprojects/myrage/site/edit_account.php :: StateChangeA :: line 46" data: no]
Source File: http://server/rageprojects/myrage/site/edit_account.php
Line: 46
the error is on the line where i have the if (xmlHttp.status == 200)
where as the php file from which it is getting the response is here
Expand|Select|Wrap|Line Numbers
- include("config.php");
- $firstname=$_POST["member_first_name"];
- $lastname=$_POST["member_last_name"];
- $email=$_POST["member_email"];
- $country=$_POST["members_country"];
- $city=$_POST["member_city"];
- $url=$_POST["member_url"];
- $memberaim=$_POST["member_Aim"];
- $mem_aboutme=$_POST["member_aboutme"];
- $mem_male=$_POST["member_male"];
- $mem_fmale=$_POST["member_female"];
- $mem_tel=$_POST["member_n_tel"];
- $mem_show_age=$_POST["show"];
- $mem_nshow_age=$_POST["n_show"];
- echo $firstname;