среда, 6 февраля 2013 г.

скачать sidebar для windows 7+гаджеты

I recently got this email from a user who is trying to build an enterprise level Gadget for Windows 7. If you are in the same boat see if you come across similar problem (my comments below)."I am working to build a windows 7 gadget for our enterprise. We wanted this gadget to be our desktop source for our application. Below is a brief overview of what we want to achieve:Launch the gadget. Display a login screen in a flyout and try to connect to our serverOnce we login, try to display various modules and also favorites across each module. Each module here is an applicationIf we select a module, display a flyout screen which displays the transactions within the moduleOnce a transaction is selected, open the transaction in a chrome less windowAll our application logic resides on a server. We do have all the APIРІР‚в„ўs to perform the above functions, but we are not sure if we can achieve the same through a gadget. Below are some of the specific problems that we are coming across:How to initialize a session in a gadget and how to handle sessions?

Recently I got an email from a reader asking for advice on login and session management with multiple html pages in a Windows 7 Gadget. Here is the problem and the workaround.I'm trying to build a gadget which logs on the a HTTPS server and retrieves & shows data. I am trying to post login credentials to a server, but get an error 'access denied'.However, it is possible to change the settings of IE to allow cross-domain data access.But that's not ideal, users would need to change there settins which could be complex for them. I am wondering if there are alternate options for login, maybe you know any. Using a website instead of posting/retrieving data via an API might be a solution. It is way we can facilitate a secure login via HTTPS and show data (and stay in control). Also I was wondering if you there are ways to encrypt data within a Gadget. I believe this is not ideal, since a gadget can easily be reverse engineered.The Possible WorkaroundCross domain access is allowed in the Gadget, and you can create a REST based API (similar to Facebook/last.fm/flickr) for login to it. There are some javascript libraries which can be used for encryption, The best way would be to create a COM object in C++ or VB and let that handle the login/ encryption (see chapter 9 with MRU example ) part.If you are creating your next windows 7 gadget and come across any problem, send me an email I would be happy to help.Labels: , ,

So I recieved another of the fan mails with the following questions. If you come across similar issues feel free to email me. Is there any sample code to use web service to pull the data from Microsoft SQL server 2005/2008?The Sitemeter Gadget chapter 9 uses Ajax to pull data from online web service and sitemeter uses database in the background to pull and display data. so as long as your web service is able to pull and display data in the form of TEXT, XML, RSS, ATOM, JSON, HTML and HTML, you can display it in the Gadget.I have an icon/image to refresh the data on the Gadget.. is it possible to change the cursor to wait/ progress till the data gets refreshed?Search for this functionality in JavaScript in an html page. Gadget main page is essentially an html page and you can inlcude a JavaScript file which can be used to change the cursor. Is it possible to show spinner on clicking the OK button in the settings page?Yes, we do this in blog gadget(loading animation) chapter 8Is it possible to show some alerts upon clicking the OK button in the settings page?Most of the widgets, allows for message alert, you should also check debugging section to see how to use JavaScript and VBScript alert boxes, look also the last chapter Tips and TricksLabels: , , ,

If you ever wanted a book on Creating Vista Gadgets, with lots of useful samples. Here is a book on the topic. Click to buy the book. Creating Vista Gadgets: Using HTML, CSS and JavaScript with Examples in RSS, Ajax, ActiveX (COM) and Silverlight ( )releasing on "May 19, 2008"Table of Content Advanced Gadgets included in the bookThis book has advanced samples using ActiveX (COM), Ajax, & Microsoft Silverlight. This guide will walk you through the process of designing and developing of each of them.(a) Build a Blog Gadget using RSS /Atom FeedMyBlog Gadget will walk you through a complete gadget development lifecycle using an online RSS/Atom Feed. We see the design patterns and standard practices, common assumptions and then add advanced features to the gadget with multiple feeds and advance page and record management.(b) Create an Information Gadget with Ajax Site Statistics Gadget uses Ajax and a Web API provided by Sitemeter.com to create a unique Information Gadget which mimics the online free service provided by Sitemeter.com. It shows how to do screen scraping and load part of a web page in the Flyout window.(c) Develop a Utility Gadget using ActiveX COM technologyMost Recent Used (MRU).Net Projects is a innovative gadget which lists Most Recent Used projects in .Net. It shows projects for Visual Studio 2003, Visual Studio 2005 and Visual Studio 2008. The gadget also shows how to read and enumerate registry data. The gadget also explains how to use advanced features of Windows Power Shell and Windows Management Instrumentation (WMI) in a sidebar Gadget.(d) Incorporate Internet Radio and YouTube Video in Fun Gadgets Learn to create a Radio Gadget based on an online streaming server and Video Gadget using a YouTube Video feed. The gadgets also show how to incorporate windows Media Player as well as Flash Media Player inside a Sidebar gadget. See how to use XMLDOM to read online feed instead of Ajax approach.(e) Create Cutting edge Sidebar gadget using Microsoft Silverlight Silverlight World Clock Gadget shows time for multiple cities of the world. It also gives you an insider view of XAML and Microsoft Silverlight. Know the programming model of Silverlight in gadget development.(f) Developing a Sidebar Gadget using Microsoft Popfly.NET Website Comparison Gadget uses Microsoft Popfly.net to create an innovative gadget which compares the popularity of different websites with the help of services provided by Live Search and Microsoft Bar graph. It shows how to create the mashups in minutes and port it to Sidebar platform.I would like to hear any questions/ comments/ suggestions, you may have !Labels: ,

Tutorial with HTML, CSS, and JavaScript: Popular articles, blogs ,screencast, and demo videos - Rajesh Lal

Комментариев нет:

Отправить комментарий