| | |
AJAX IE7 Working but Mozilla Problem
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2009
Posts: 1
Reputation:
Solved Threads: 0
this prgram working in ie well but in mozilla mma() ajax function working the second one not working in mozilla..
plz help me
plz help me
JavaScript Syntax (Toggle Plain Text)
function getHTTPObject() { if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP"); else if (window.XMLHttpRequest) return new XMLHttpRequest(); else { alert("Your browser does not support AJAX."); return null; } } function hsc(va2) { var zs,zs1,y1,y2,zz,z1,y3; zs=va2; y1=document.getElementById(zs).src; y2=y1.match("minus_symbol.gif"); y3=y1.match("plus_symbol.gif"); zs1= zs.split("img"); zz=zs1[1]; if(y2=="minus_symbol.gif") //second one [COLOR="Red"][/COLOR] { z1='ct='+zz; b="img"+zz; url ="get_catname.php"; objXMLHTTP1 = getHTTPObject(); objXMLHTTP1.open("POST",url,true); objXMLHTTP1.onreadystatechange = stateChanged; objXMLHTTP1.setRequestHeader('content-type','application/x-www-form-urlencoded'); objXMLHTTP1.send(z1); function stateChanged() { if (objXMLHTTP1.readyState==4) { document.getElementById(zz).innerHTML=""; document.getElementById(zz).innerHTML=objXMLHTTP1.responseText; document.getElementById(b).src="images/plus_symbol.gif"; } } } if(y3=="plus_symbol.gif") { [COLOR="Red"] mma(); //first one[/COLOR] } function mma() { b="img"+zz; z='ct='+zz; url ="get_subcategname.php"; objXMLHTTP = getHTTPObject(); objXMLHTTP.open("POST",url,true); objXMLHTTP.onreadystatechange = stateChanged; objXMLHTTP.setRequestHeader('content-type','application/x-www-form-urlencoded'); objXMLHTTP.send(z); function stateChanged() { if (objXMLHTTP.readyState==4) { m=document.getElementById(zz).innerHTML; document.getElementById(zz).innerHTML=m+objXMLHTTP.responseText; document.getElementById(b).src="images/minus_symbol.gif"; document.getElementById('apDiv10').innerHTML=""; } } } }
Last edited by peter_budo; Jul 6th, 2009 at 10:50 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- AJAX app not working in IE6, IE7, or IE8 I think JS file is problem (JavaScript / DHTML / AJAX)
- Chained Selects - using Ajax - can't make 3rd one work (JavaScript / DHTML / AJAX)
- Javascript not working in IE7 but running in IE5...cross browser problem plz help (JavaScript / DHTML / AJAX)
- Javascript not working in IE7 but running in IE5...cross browser problem plz help (PHP)
- problem with understanding ajax basics (JavaScript / DHTML / AJAX)
- Ajax script not working on firefox (JavaScript / DHTML / AJAX)
- getElementById (JavaScript / DHTML / AJAX)
- onclick=window.closw()is not working in mozilla firefox... (ASP.NET)
- 404 Custom Error Page Not Working in Mozilla Firefox (ASP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to make the textbox mode change to password when prompt message box
- Next Thread: Set visibility of div tags
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically browser bug calendar captchaformproblem cart checkbox child close codes createrange() cursor date debugger dependent disablefirebug dom dropdown editor element embed engine enter events explorer ext file firefox form forms frameworks getselection google gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump libcurl maps masterpage math media microsoft object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post programming progressbar prototype redirect regex runtime safari scale scriptlets scroll search security shopping size software sql text textarea unicode web website windowsxp wysiwyg \n





