Please tell me whether the below JS code will run in all the browsers -->
Code:
function getHTML(num) { var saf = 0 ; var num; if(!num) { num = document.getElementById('refid').value; } else { num = num; } var url = '/cgi-bin/ptts/search.cgi'; var pars = 'num='+num+'&showallfiles='+saf+'&act=showattachedfilesection'; var myAjax = new Ajax.Updater( {success: 'placeholder'}, url, { method: 'get', parameters: pars, onFailure: reportError }); }
Comment