Hi,

You can see the simple equation gadget I built which uses getMode and
seems to work (for me).
http://waveyscience.appspot.com/eqygadget/eqygadget.xml

Regards,
Jonny

On Wed, Oct 14, 2009 at 12:33 PM, nerd_boy <i.am.nerd...@gmail.com> wrote:
>
> Changed the require feature as you stated, but it still isn't
> working. :|  I'll continue sifting through the source of other gadgets
> to try and figure it out. Thanks.
>
> On Oct 13, 8:46 pm, "pamela (Google Employee)" <pamela...@gmail.com>
> wrote:
>> Hi nerd_boy -
>> We are currently updating the documentation with a notice that some
>> functionality (like this) is only available in the latest version of the
>> API.
>> Change <Require feature="wave"> to "wave-preview" and it should work.
>>
>> Check the Map Gadget in the samples gallery for example usage.
>>
>> - pamela
>>
>>
>>
>> On Wed, Oct 14, 2009 at 9:21 AM, nerd_boy <i.am.nerd...@gmail.com> wrote:
>>
>> > 'lo all
>>
>> >     Firstly, let me say I don't have access to the Sandbox, so if
>> > this is a silly question that would easily be answered there or
>> > whatever, that is why.
>>
>> >     Toying around with making a gadget, and I'm wanting to have a
>> > different "view" if the wave is in EDIT mode rather than the regular
>> > VIEW mode. However, with the code:
>>
>> >     if(wave.getMode()==wave.Mode.VIEW){document.write("View Mode");
>> >     else if(wave.getMode()==wave.Mode.EDIT){document.write("Edit
>> > Mode");
>>
>> > in <script> tags, neither one appear either when I'm viewing the wave
>> > or when I'm editing it. I threw a document.write("Testing
>> > Javascript"); outside of the if statements to ensure I hadn't borked
>> > anything else up, and that at least prints.
>>
>> >     So, any ideas as to what I'm doing wrong? Or is getMode not yet
>> > fully supported in Wave Preview? Thanks in advance,
>> > --nerd_boy
>
> >
>



-- 
Jonathan J Hunt <j...@42quarks.com>
Homepage: http://www.42quarks.com
(Further contact details there)
"Physics isn't the most important thing. Love is." Richard Feynman

--~--~---------~--~----~------------~-------~--~----~
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-api@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to