Great post. If you have some spare time, interested in writing an article about that? :)
Frank Mantek Google On Feb 7, 2008, at 7:38 AM, michael kariv wrote: > > Guys > > I am using Silverlight Alpha 1.1 with Google Spreadsheets. You can > check it out at > www.gganttic.com (ignore godaddy ads, they will go away soon) > It is a Gantt chart based project management that stores tasks in > Google Spreadsheets. The Gantt control is SL 1.1 based. > > SL currently does not work cross domain. I hit this limitation several > months back. > So I started using Gdata .NET client library on the server end to > proxy. > it was said (don't remember where) that SL 1.1 when released (it is > going to be released as SL 2.0) will do cross-domain. > I did not want to wait for it. So here is the better way. > > It is to do the communication in Javascript layer, above SL. > SL is good in communicating between control and outside DOM > environment. > So SL can throw an event, that is wired to a javascript function, this > function calls asycronously a server (which can be any domain) > recieves JSON data, calls into SL control via SL scriptable methods. > Scriptable are methods of SL that are marked so (if you are C#, it is > [Scriptable] attribute on top of a method) > > There is one drawback to it, the parsing logic would have to be in > JS. > So for the time being I am doing it still with my server. There is a > lot of guesswork involved in trying to understand which column of > spreadsheet means what metadata of a task - so it is best done in C#. > > A word of warning. Just like Frank suspected, SL has a tiny subset > of .NET framework. So GData .NET library would not even compile - it > would need core classes SL has not gotten. It makes sense - SL is only > 4.5 M download so Microsoft had to cut on everything. > I initially hoped I could use Netika control. Netika guys did a great > work adding virtually all of Windows.Forms classes to SL. > It did not work. First Netika control is 900K, too much for my taste, > and second it did not compile anyway. Incomplete implementation. > > So the bottom line: > - In the future you'll be able to call GData feeds direct from SL, but > you'll have to modify .NET library or write your own parser for the > feeds. > - there is a good way of communicating cross domain using Javascript > library. Gdata has got JS lib for Claendar and Blogger, if I am not > mistaken. > > I shall be happy to answer direct questions, email me. I check this > newsgroup but not regularly. > Next on my list (besides improving gGanttic) is Visio like online > thing that would also store data in the Spreadsheets. Searchable and > versionable :))) > > > Google guys, great job, thanks. > > > > > > > On Feb 6, 8:19 pm, Frank Mantek <[EMAIL PROTECTED]> wrote: >> Sure, you could proxy the whole thingie.. Then it "might work". I >> only >> read through the initial documentation, so i am not 100% sure if the >> silverlight runtime supports all the things we need .... >> >> Frank MantekGoogle >> On Feb 6, 2008, at 6:34 PM, Timothy Parez wrote: >> >> >> >> >> >>> Oh, indeed :) >>> But you could put an XML WebService on the same host >>> if you're using ASP.NET (which is not a requirement for >>> Silverlight). >> >>> Timothy P. >>> http://www.itcrowd.be >> >>> On 06 Feb 2008, at 18:33, Frank Mantek wrote: >> >>>> No. The Silverlight runtime, last time i checked, does not allow >>>> you >>>> to do cross domain http requests, so you are not able to pull data >>>> from yourgooglesources.... >> >>>> But i am more than happy to be enlightened... >> >>>> Frank Mantek >>>> Google >>>> On Feb 6, 2008, at 6:24 PM, Deza wrote: >> >>>>> Google.GData.Client works in a Microsoft Silverlight project ?- >>>>> Hide quoted text - >> >> - Show quoted text - > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Data API" 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-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
