Tarpipe gadget for iGoogle
I'm trying it here as well now:
I started creating an iGoogle Gadget (that can also be used for Google Desktop later on).
The problem is, that I am not a developer at all.
So, how can I check for the user's preferences and add the API token to the URL used for posting?
Here's the code I have so far:
<?xml version="1.0" encoding="UTF-8"?>
<module>
<moduleprefs title="Tarpipe Post">
</moduleprefs><userpref name="APItoken">
<content type="html">
<![CDATA[
<html>
<body>
<script language="javascript" type="text/javascript" >
var prefs = new gadgets.Prefs();
var APItoken = prefs.getString("APItoken");
document.write('<form
action="http://rest.receptor.tarpipe.net:8000/?key='+ APItoken +'"
method="POST" enctype="multipart/form-data">');
</script>
<form>
<p>Title: <input type="text" name="title" /></p>
<p>Body: <input type="text" name="body" label="Body"/></p>
<p>URL: <input type="text" name="URL" label="URL"/></p>
<p><input type="submit" value="Post to Tarpipe"/></p>
</form>
</body>
</html>
]></content>
</userpref></module>
I started creating an iGoogle Gadget (that can also be used for Google Desktop later on).
The problem is, that I am not a developer at all.
So, how can I check for the user's preferences and add the API token to the URL used for posting?
Here's the code I have so far:
<?xml version="1.0" encoding="UTF-8"?>
<module>
<moduleprefs title="Tarpipe Post">
</moduleprefs><userpref name="APItoken">
<content type="html">
<![CDATA[
<html>
<body>
<script language="javascript" type="text/javascript" >
var prefs = new gadgets.Prefs();
var APItoken = prefs.getString("APItoken");
document.write('<form
action="http://rest.receptor.tarpipe.net:8000/?key='+ APItoken +'"
method="POST" enctype="multipart/form-data">');
</script>
<form>
<p>Title: <input type="text" name="title" /></p>
<p>Body: <input type="text" name="body" label="Body"/></p>
<p>URL: <input type="text" name="URL" label="URL"/></p>
<p><input type="submit" value="Post to Tarpipe"/></p>
</form>
</body>
</html>
]></content>
</userpref></module>
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
Loading Profile...


