Re: [Google Wave APIs] gadget trouble using javascript

2010-01-02 Thread Simon Rawet
Hi, I think you have to include the wave javascript api right after ! 
[CDATA[

If that dosent work chek the error console (ff have a grate one)

--
Sent from my iPhone

On Dec 31, 2009, at 1:50 PM, Polson136 polson...@gmail.com wrote:

 I can't seem to get my gadget to use Javascript. (HTML works fine) I
 am new to both wave and javascript, and it is probably something very
 simple. Here is a copy of my code:

 ?xml version=1.0 encoding=UTF-8 ?
 Module
  ModulePrefs title=Hello Wave
Require feature=wave /
Require feature=minimessage/
  /ModulePrefs
  UserPref name=display required=true datatype=string/
  Content type=html
![CDATA[
   script type=text/Javascript
   gadgets.util.registerOnLoadHandler(init);
   function onClick() = {new gadgets.MiniMessage
 ().createDismissibleMessage(hi)}
   var prefs=new gadgets.prefs();
   function listener() = {
   document.getElementById(display).innerHTML =  
 prefs.getString
 (display);
   }
   function init() {document.write(Hello World);
   setStateCallback(listener);
   }
   /script
   font color='blue' id='color'Hello, Wave!/fontbutton
 type='button' onClick=document.write('Hello, World'Hello, Wave!/
 buttondiv id='display'/div
]]
  /Content
 /Module

 --

 You received this message because you are subscribed to the Google  
 Groups Google Wave API group.
 To post to this group, send email to google-wave-...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-wave-api+unsubscr...@googlegroups.com 
 .
 For more options, visit this group at 
 http://groups.google.com/group/google-wave-api?hl=en 
 .



--

You received this message because you are subscribed to the Google Groups 
Google Wave API group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.




[Google Wave APIs] Re: gadget trouble using javascript

2010-01-02 Thread John Dungan
Try putting the gadgets.util.registerOnLoadHandler(init) after the
functions.

I think the OnLoad is firing before the init function is loaded.



On Jan 2, 8:10 am, Simon Rawet wzebera...@gmail.com wrote:
 Hi, I think you have to include the wave javascript api right after !
 [CDATA[

 If that dosent work chek the error console (ff have a grate one)

 --
 Sent from my iPhone

 On Dec 31, 2009, at 1:50 PM, Polson136 polson...@gmail.com wrote:



  I can't seem to get my gadget to use Javascript. (HTML works fine) I
  am new to both wave and javascript, and it is probably something very
  simple. Here is a copy of my code:

  ?xml version=1.0 encoding=UTF-8 ?
  Module
   ModulePrefs title=Hello Wave
     Require feature=wave /
     Require feature=minimessage/
   /ModulePrefs
   UserPref name=display required=true datatype=string/
   Content type=html
     ![CDATA[
        script type=text/Javascript
        gadgets.util.registerOnLoadHandler(init);
            function onClick() = {new gadgets.MiniMessage
  ().createDismissibleMessage(hi)}
            var prefs=new gadgets.prefs();
            function listener() = {
                document.getElementById(display).innerHTML =  
  prefs.getString
  (display);
            }
            function init() {document.write(Hello World);
            setStateCallback(listener);
            }
        /script
        font color='blue' id='color'Hello, Wave!/fontbutton
  type='button' onClick=document.write('Hello, World'Hello, Wave!/
  buttondiv id='display'/div
     ]]
   /Content
  /Module

  --

  You received this message because you are subscribed to the Google  
  Groups Google Wave API group.
  To post to this group, send email to google-wave-...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-wave-api+unsubscr...@googlegroups.com
  .
  For more options, visit this group 
  athttp://groups.google.com/group/google-wave-api?hl=en
  .

--

You received this message because you are subscribed to the Google Groups 
Google Wave API group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.




Re: [Google Wave APIs] Re: Abt comparison between google wave samdbox and normal google wave invitation

2010-01-02 Thread Kapil Neurgaonkar
@Aaron :
I would add something to your assumption.

Robots are nothing but servlets running on AppEngine. Their working is not
limited to sandbox. These robots have a specific function for handling the
wave. As we know, the robot is a participant of the wave as we are and
therefore can perform various operations on the wave which a gadget cannot.
Google has provided the sandbox account for debugging the robots and it also
provides some more developer tools therein. The robot also works fine with
the preview account.

I suggest you a simple testing trick. As you

I do not know much more about the gadget stuff. Even I'm working on a robot
and previously had the same assumption as yours. You will get to know lot
many things as you move on..
Enjoy waving!!

Regards,
Kapil Neurgaonkar
Webmaster
PICT-IEEE Student Branch
Pune Institute of Computer Technology
+91 94222 02007


On Mon, Dec 21, 2009 at 7:26 PM, Aaron Watters aaron.watt...@gmail.comwrote:

 I take it back, sorry.  I just got syntaxy to work.
 I'll try to shut up for a while until I get my bearings a bit better.
-- Aaron Watters

 On Dec 20, 11:01 pm, Aaron Watters aaron.watt...@gmail.com wrote:
  On a related issue, I'm confused about what is supposed
  to work where.
 
  I don't have sandbox access yet and I can get a number of
  gadgets working on the preview but no robots.  I was assuming
  that the robots only work in the sandbox for the moment, right?
  Also, if a gadget doesn't work in the preview I'm assuming
  it's not in sync with the preview api version and could be using
  either a too new version or an obsolete version, yes?
 
  Or am I just doing something horribly wrong?
  in particular the imdb gadget works for me, but not the robot
  and the colorizer bot doesn't work all on preview.
 
  Some commentary in the faq and on the demos pages
  about where what is expected to work might help.
 
  thanks again,  -- aaron watters
 http://whiffdoc.appspot.com
 
  ===
  less is more

 --

 You received this message because you are subscribed to the Google Groups
 Google Wave API group.
 To post to this group, send email to google-wave-...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-wave-api?hl=en.




--

You received this message because you are subscribed to the Google Groups 
Google Wave API group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.




Re: [Google Wave APIs] Re: Abt comparison between google wave samdbox and normal google wave invitation

2010-01-02 Thread Kapil Neurgaonkar
@Aaron : As you improve your robot. You can add the things you want to see
as a blip in the wavelet itself. This will make your work a bit easy. Its a
traditional debugging method but works fine.

Regards,
Kapil Neurgaonkar
Webmaster
PICT-IEEE Student Branch
Pune Institute of Computer Technology
+91 94222 02007


On Sun, Jan 3, 2010 at 11:26 AM, Kapil Neurgaonkar caps...@gmail.comwrote:

 @Aaron :
 I would add something to your assumption.

 Robots are nothing but servlets running on AppEngine. Their working is not
 limited to sandbox. These robots have a specific function for handling the
 wave. As we know, the robot is a participant of the wave as we are and
 therefore can perform various operations on the wave which a gadget cannot.
 Google has provided the sandbox account for debugging the robots and it
 also provides some more developer tools therein. The robot also works fine
 with the preview account.

 I suggest you a simple testing trick. As you

 I do not know much more about the gadget stuff. Even I'm working on a robot
 and previously had the same assumption as yours. You will get to know lot
 many things as you move on..
 Enjoy waving!!


 Regards,
 Kapil Neurgaonkar
 Webmaster
 PICT-IEEE Student Branch
 Pune Institute of Computer Technology
 +91 94222 02007


 On Mon, Dec 21, 2009 at 7:26 PM, Aaron Watters aaron.watt...@gmail.comwrote:

 I take it back, sorry.  I just got syntaxy to work.
 I'll try to shut up for a while until I get my bearings a bit better.
-- Aaron Watters

 On Dec 20, 11:01 pm, Aaron Watters aaron.watt...@gmail.com wrote:
  On a related issue, I'm confused about what is supposed
  to work where.
 
  I don't have sandbox access yet and I can get a number of
  gadgets working on the preview but no robots.  I was assuming
  that the robots only work in the sandbox for the moment, right?
  Also, if a gadget doesn't work in the preview I'm assuming
  it's not in sync with the preview api version and could be using
  either a too new version or an obsolete version, yes?
 
  Or am I just doing something horribly wrong?
  in particular the imdb gadget works for me, but not the robot
  and the colorizer bot doesn't work all on preview.
 
  Some commentary in the faq and on the demos pages
  about where what is expected to work might help.
 
  thanks again,  -- aaron watters
 http://whiffdoc.appspot.com
 
  ===
  less is more

 --

 You received this message because you are subscribed to the Google Groups
 Google Wave API group.
 To post to this group, send email to google-wave-...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-wave-api?hl=en.





--

You received this message because you are subscribed to the Google Groups 
Google Wave API group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.