Welcome to the bugtracker of the ISPConfig project. This bugtracker is for ISPConfig 3.x only.
FS#854 - Display Error in Internet Explorer creating a website
Attached to Project:
ISPConfig 3
Opened by Samir (Samir) - Tuesday, 18 August 2009, 10:50 GMT
Last edited by Till (Till) - Wednesday, 19 August 2009, 12:48 GMT
Opened by Samir (Samir) - Tuesday, 18 August 2009, 10:50 GMT
Last edited by Till (Till) - Wednesday, 19 August 2009, 12:48 GMT
|
DetailsIn the Webinterface of ISPConfig 3 (latest version from SVN), there is a display error only occuring browsing with the Internet Explorer. It appears when I want to set up a new Website. After choosing the Webserver for this site, there should be an asterix where you can choose the IPs. This Asterix does not show up in the IE 8.x. That's why I had to patch the following files:
/usr/local/ispconfig/interface/web/sites/templates/database_edit.htm <select name="server_id" id="server_id" class="selectInput" onChange="loadContentInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value)"> -> <select name="server_id" id="server_id" class="selectInput"> /usr/local/ispconfig/interface/web/sites/ajax_get_ip.php $ip_select = "<option value='*'>*</option>\r\n"; -> $ip_select = "*"; $ip_select .= "<option value='$ip[ip_address]'>$ip[ip_address]</option>\r\n"; -> $ip_select .= "#$ip[ip_address]"; /usr/local/ispconfig/interface/web/sites/templates/web_domain_edit.htm (18) <select name="server_id" id="server_id" class="selectInput" onChange="loadContentInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value);"> -> <select name="server_id" id="server_id" class="selectInput" onChange="loadOptionInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value);"> [changed the name of the function loadContentInto to loadOptionInto] /usr/local/ispconfig/interface/web/js/scrigo.js.php function loadOptionInto(elementid,pagename) { var itemContentCallback = { success: function(o) { var teste = o.responseText; var elemente = teste.split('#'); el=document.getElementById(elementid); el.innerHTML=''; for (var i = 0; i < elemente.length; ++i){ var foo2 = document.createElement("option"); foo2.appendChild(document.createTextNode(elemente[i])); foo2.value=elemente[i]; el.appendChild(foo2); } }, failure: function(o) { alert('Ajax Request was not successful.'); } } var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename, itemContentCallback); } These changes caused the Asterisk to appear in the Internet Explorer, too. |
This task depends upon
<select name="server_id" id="server_id" class="selectInput" onChange="loadOptionInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value);">