changing data with pjax

[font="Tahoma"][size="3"]I wanted use from Pjax for reloading data in website without refresh.[/size][/font]

[font="Tahoma"][size="3"]I used from below code,but when I run my code in host,my index.php page is refreshing every 4 second.[/size][/font]

[font="Tahoma"][size="3"][color="#ff0000"]<script type="text/javascript">[/color][/size][/font]

[font="Tahoma"][size="3"][color="#ff0000"] setInterval(function(){ $("#refreshButton").click(); }, 4000);[/color][/size][/font]

[font="Tahoma"][size="3"][color="#ff0000"]</script>i[/color][/size][/font]

[font="Tahoma"][size="3"] [/size][/font]

[font="Tahoma"][size="3"][color="#ff0000"]$importantNews=Yii::$app->db->createCommand("SELECT * FROM importantnews);[/color][/size][/font]

[font="Tahoma"][size="3"][color="#ff0000"]Pjax::begin();[/color][/size][/font]

[font=“Tahoma”][size=“3”][color="#ff0000"] echo Html::a(“Refresh”, [‘site/index’], [‘class’ => ‘btn btn-lg btn-primary btn-hide’, ‘id’ => ‘refreshButton’]);[/color][/size][/font]

[font=“Tahoma”][size=“3”][color="#ff0000"] echo “<li>”.$importantNews[0][‘textNews’]."</li>";[/color][/size][/font]

[font="Tahoma"][size="3"][color="#ff0000"]Pjax::end();[/color][/size][/font]

[font="Tahoma"] [/font]

[font="Tahoma"][size="3"]Please help to me,how to use from Pjax for changing data of page without refresh page.[/size][/font]