ISPConfig 3

Welcome to the bugtracker of the ISPConfig project. This bugtracker is for ISPConfig 3.x only.
   | Tasklist |   

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
Task Type Bug Report
Category Backend / Core
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 3.0.1.3
Due in Version 3.0.1.4
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In 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

Closed by  Till (Till)
Wednesday, 19 August 2009, 12:48 GMT
Reason for closing:  Fixed
Comment by Till (Till) - Tuesday, 18 August 2009, 14:24 GMT
Why did you change the function name?
Comment by Samir (Samir) - Wednesday, 19 August 2009, 08:12 GMT
because loadContentInto is too generel, it could be used for other functions where content gets load. loadOptionInto is a little bit more specific and is only used one time in this line:
<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);">

Loading...