0
install1のjQuery経由でdivにページをロードしています。私はinstall2で選択した値にアクセスしようとしています、今
<input name="ostype" type="radio" value="solaris">
<input name="ostype" type="radio" value="windows">
: は今install1が私を与えるページには、いくつかのラジオボタンにの同類が含まれています。ここで
は2つの機能のためのJavaScriptコードです:あなたinstall2
機能で
function install1() {
$("#installer").html("<div align='center'><img src='modules/servers/flosoftdedicated/images/ajax/loading-warning.gif' border='0' alt='' /><br />Loading...</div>");
$.ajax({
type: 'GET',
url: 'clientarea.php',
data: 'action=productdetails&id=' + $('#serverid').val() + '&modop=custom&a=installgetos&step=1',
timeout: 10000,
success: function(data){
$("#installer").html(data);
},
});
}
function install2() {
$("#installer").html("<div align='center'><img src='modules/servers/flosoftdedicated/images/ajax/loading-warning.gif' border='0' alt='' /><br />Loading...</div>");
$.ajax({
type: 'GET',
url: 'clientarea.php',
data: 'action=productdetails&id=' + $('#serverid').val() + '&modop=custom&a=installgetos&step=2&ostype=' + $("input[name='ostype']:checked").val(),
timeout: 10000,
success: function(data){
$("#installer").html(data);
},
});
}
whats called 'install2()'? –
install2()は、install1経由で更新されたdiv内のボタンから呼び出されます。コードは次のとおりです。 – Florian