I changed it but it still doesn't work. I still get a message after clicking the button that the information currently isn't available. Any idea?
On 18 Mrz., 03:31, Hu Hailin <[email protected]> wrote: > I'm afaid you have to use the legacy gadgets api in > iGoogle.http://code.google.com/apis/gadgets/docs/legacy/dev_guide.html > > #var prefs = new gadgets.Prefs(); > var prefs = new _IG_Prefs(); > > Have a try and good luck. > -- > Hu Hailin > > On Mar 17, 8:09 am, hpl <[email protected]> wrote: > > > Hi, > > I'm not a developer, nevertheless I'm trying to create a gadget that I > > can use to enter text and post it to a defined Tarpipe workflow. > > The problem is, I need to define the API token in the user's > > preference and then read it dynamically within the gadget's script. > > > So, here's my code so far. If anyone can help, I would appreciate! > > Thanks in advance! > > Chris > > > <?xml version="1.0" encoding="UTF-8"?> > > <Module> > > <ModulePrefs title="Tarpipe Post" /> > > <UserPref name="APItoken" display_name="API Token" required="true" /> > > > <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> > > </Module> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
