Ref:Ajax is not working in Mozilla Firefox | Familiar Sight | | Join Date: Jul 2007
Posts: 138
| | |
Hai all,
Why ajax code is not working in Mozilla,same code is working in Internet explorer.
thanks,
Aswath.
|  | Moderator | | Join Date: May 2007 Location: Munich, Germany
Posts: 4,134
| | | re: Ref:Ajax is not working in Mozilla Firefox
... ajax IS working in Moz/FF ... please post the code that makes the problem so that we may have a look at it and suggest you the fixes ...
kind regards
| | Familiar Sight | | Join Date: Jul 2007
Posts: 138
| | | re: Ref:Ajax is not working in Mozilla Firefox
Hai
Thanks for reply,
This is my code: - dpd_country.Attributes.Add("onChange", "return populatestates();")
-
dpd_state.Attributes.Add("onChange", "return dummycity();")
-
dpd_city.Attributes.Add("onChange", "return getplace();")
Im using 3 dropdownlists.and im applying ajax for that 3 dpd's.
Thanks,
Aswath.
|  | Moderator | | Join Date: May 2007 Location: Munich, Germany
Posts: 4,134
| | | re: Ref:Ajax is not working in Mozilla Firefox
is that the code that is not working? ... it seems to add event-handlers to some nodes ... could you post the Add-method. do you use a framework? what exactly is not working? are the events called?
kind regards
| | Familiar Sight | | Join Date: Jul 2007
Posts: 138
| | | re: Ref:Ajax is not working in Mozilla Firefox
Hai,
Thanks for replay,
Im using .net1.1 so im writing code manually for ajax,im not using any ajax frameworks..
Thanks,
Aswath.
|  | Moderator | | Join Date: May 2007 Location: Munich, Germany
Posts: 4,134
| | | re: Ref:Ajax is not working in Mozilla Firefox
ok ... so show the code that you use :) ... at least the one that is not working in FF
kind regards
|  | Expert | | Join Date: Nov 2007 Location: Slovakia
Posts: 101
| | | re: Ref:Ajax is not working in Mozilla Firefox
As gits said, ajax is working in FF. The only difference is, how xmlhttprequest object is created. IE is using ActiveX while FF got regular object. Show us you code. If it is too long, paste at least part where are you creating XHR object.
| | Familiar Sight | | Join Date: Jul 2007
Posts: 138
| | | re: Ref:Ajax is not working in Mozilla Firefox
Hai Thanks for replay,
my code is - obj = GetXmlHttpRequest();
-
if (obj!=null )
-
{
-
-
obj.onreadystatechange = stateprocess;
-
obj.open("GET","getcontact.aspx?id="+cid+"&status=0",false);
-
obj.send(null);
-
}
-
-
-
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")//Create the XMLDOM object
here im using activeXobject ,insted what i have to use..?
Thanks,
Aswath.
|  | Moderator | | Join Date: May 2007 Location: Munich, Germany
Posts: 4,134
| | | re: Ref:Ajax is not working in Mozilla Firefox
hi ...
in your GetXMLHttpRequest()-method you should have something like this already. for the xml-doc-object have a look here
kind regards
| | Familiar Sight | | Join Date: Jul 2007
Posts: 138
| | | re: Ref:Ajax is not working in Mozilla Firefox
Hai
I followed ur link.I understood my problem,but i didn't get any sollution.here im retriving values from database and binding to dropdownlists.i don't know how to retriving data from database for mozilla....?any help plz..........
thanks,
Aswath.
|  | Moderator | | Join Date: May 2007 Location: Munich, Germany
Posts: 4,134
| | | re: Ref:Ajax is not working in Mozilla Firefox
what is your particular problem? the examples in the links show you exactly what to do in case the browser is not IE ... its always the code without ActiveX-objects ...
kind regards
|  | Similar JavaScript / Ajax / DHTML bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,419 network members.
|