2011-07-02 73 views
-1

有什麼地方可以下載大型RSS源或XML源,我想分階段測試數據並檢查計算機是否凍結。 此外,我可以使用帽子使用xml,jquery和json分階段加載xml或json的結果,當用戶點擊「更多」時,它會得到接下來的10或500條記錄並填充表格。示例大型XML/RSS訂閱

在此先感謝

+0

請一次提出一個問題。另外,爲什麼你不能自己創建樣本飼料?它應該很容易。 – svick

回答

0

這裏有一個PHP腳本,與示例工作:

search.php 

<?php 
header("Content-type", "application/json"); 
$term = $_GET['term']; 
?> 
[ 
{ "id": "Turdus pilaris", "label": "Fieldfare", "value": "Fieldfare" }, 
{ "id": "Falco eleonorae", "label": "Eleonora\'s Falcon", "value": "Eleonora\'s Falcon" }, 
{ "id": "Falco rusticolus", "label": "Gyr Falcon", "value": "Gyr Falcon" }, 
{ "id": "Falco biarmicus", "label": "Lanner Falcon", "value": "Lanner Falcon" }, 
{ "id": "Falco vespertinus", "label": "Red-footed Falcon", "value": "Red-footed Falcon" }, 
{ "id": "Falco cherrug", "label": "Saker Falcon", "value": "Saker Falcon" }, 
{ "id": "Falco peregrinus", "label": "Peregrine Falcon", "value": "Peregrine Falcon" }, 
{ "id": "Anas falcata", "label": "Falcated Duck", "value": "Falcated Duck" }, 
{ "id": "Emberiza spodocephala", "label": "Black-faced Bunting", "value": "Black-faced Bunting" }, 
{ "id": "Pelagodroma marina", "label": "White-Faced Storm-Petrel", "value": "White-Faced Storm-Petrel" } 
]; 

您可以生成JSON動態也。只要告訴我你是否需要它。 希望這有助於。歡呼聲