-2
我遇到問題。我發送變量c_prot至頁面parsing.php。 它的工作原理,但我需要發送c_prot在同一時間也頁chart.php但它不工作。如果你解決了類似的問題,或者你知道如何去做,如果你能幫助我,我會非常感謝。將PHP變量發送到更多頁面
感謝很多:)
這是我的代碼:
<script type="text/javascript">
$(document).ready(function()
{
$('#generuj').submit(function()
{
$.post('parsing.php',
{
c_prot : $('select#protokoly option:selected').val()
},
function(data)
{
if(data == 'no')
{
$('#refresh').html('Chyba')
}
else
{
$('#refresh').html(data); // START
$('chart_plot').click(function()
{
document.location.reload();
});
//END
}
});
$.post('chart.php',
{
c_prot : $('select#protokoly option:selected').val()
});
return false;
});
});
使用兩個後期功能有問題嗎? – StoicJester
我試過了,但它不起作用,這個腳本與提交按鈕連接 – forgatn
或者你有一個想法如何添加另一個帖子功能到我的代碼?:) – forgatn