iGoogle 用のOpenSocialガジェットを実装しようとしています。PHP でアプリケーションを作成し、XML ガジェット仕様を使用して OpenSocial コンテナーに「ラップ」しています。
スタンドアロン ページで PHP を実行すると、iGoogle コンテナーで正常に動作します。フォームのボタンを押すと、「Web ページが見つかりませんでした」と表示されます。
ここで何が間違っていますか?PHP を使用してガジェットを実装したい場合、これは正しい方法ですか? これは可能ですか?
XML ガジェットの説明:
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Register interest 29">
<Require feature="opensocial-0.8"/>
<Require feature="views" />
<Preload href="http://opensocial-resources.googlecode.com/svn/samples/tutorial/tags/api-0.8/gifts.json" />
</ModulePrefs>
<Content type="html" href="http://myserver.com/OpenSocialSamples/test7.php">
</Content>
</Module>
そして、私はtest7.php
ファイルを持っています:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Random DBpedia reader example</title>
</head>
<body>
<form action="test7.php" method=post">
Search: <input type=text name="searchString"><br>
<input type=submit value="Get data" >
</form>
<br><br>
<h3> Data Test: </h3>
<?php
if ($_GET['searchString']) {
echo $_GET['searchString'];
}
?>
</body>
</html>