SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: ajax not working in Firefox 2
-
Nov 18, 2008, 21:32 #1
ajax not working in Firefox 2
well we were using this function in our most ajax file
Code:function GetXmlHttpObject() { var xmlHttp4=null; try { // Firefox, Opera 8.0+, Safari xmlHttp4=new XMLHttpRequest(); } catch (e) { //Internet Explorer try { xmlHttp4=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp4=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp4; }
Now we are using Firefox 2.0.0 ...
and all ajax has stopped working...no error
we have zend studio...error console...firefox extension...it also shows no errors...but ajax action are not evoked..
for eg onchange=showform()
but when we do nothing happens
please help
-
Nov 18, 2008, 22:51 #2
- Join Date
- Jul 2005
- Location
- West Springfield, Massachusetts
- Posts
- 17,290
- Mentioned
- 198 Post(s)
- Tagged
- 3 Thread(s)
new XMLHttpRequest() works for me in Firefox 2
Do you have an extension installed that's causing problems?
Maybe try
HTML Code:function GetXmlHttpObject() { var xmlHttp4=null; try { // Firefox, Opera 8.0+, Safari xmlHttp4=new XMLHttpRequest(); } catch (e) { //Internet Explorer try { xmlHttp4=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp4=new ActiveXObject("Microsoft.XMLHTTP"); } } alert(xmlHttp4); return xmlHttp4; }
Big Change Coming Soon - if you want your PMs save them now!
What you need to do to prepare for our migration to Discourse
A New SitePoint Forum Experience: Our Move to Discourse
Bookmarks