2011-01-25 10 views
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); 
     }, 
    }); 
} 
+0

whats called 'install2()'? –

+0

install2()は、install1経由で更新されたdiv内のボタンから呼び出されます。コードは次のとおりです。 Florian

答えて

0

あなたが$("#installer").html("<div align='center'>...を呼び出し、入力を除去することにより、install2のdiv要素の内容をリセットするあります。

install2機能の最初の行を削除します。

関連する問題