Today I would like to share a story with my audience. This is regarding one of challenges which once I faced in my technical career, well the hurdle was not Mount Everest peak ! but was not less than it for me.
Now I explain what was the task. One of my clients wanted me to write a program where user can do drawing. It was easy using HTML5 canvas and we all knows that canvas is very common now a days but he added some more points, he wanted to register hand drawing with time and options, and then save each draw with the record (pixels) in a database table i.e. whole the process of drawing like a video of various image frames.
So my breakpoints for application were:
Draw image with options
Record & Save it with pixels and time
Replay option (single and multiple together of same options)
Replay should be with same time frame as it was drawn
There are a lot of tools available which provides the facility of drawing (for images, sketches etc.) but no facility to save with pixel & time (some tools may be providing now but at that time none) also most of the tools were desktop/window application.
So I need to develop my own application as client need was web application but the biggest challenge was to save drawing with time and pixels i.e. if user pauses for few moments while sketching and then continue, it should be recorded in the same manner and when user replay the drawing it should play like a recorded video.
For the ease of user convenience I decided to using JQuery for all client side events and AJAX to save data and replay drawing. I opted .Net as platform, C# as server language, SQL Server as Database and HTML5 for canvas. I interacted with database via .Net web Services using AJAX.
And now was able to save drawing with time and options as well as replay.
and the best part is that was also able to play multiple drawing of same options together.
I am sure that it gave you some idea for approach if you encounter with similar problem. Use client side script to not to refresh page at every event and for awesome user experience and web services for server interaction.
Cheers!
Pramod
In case you need Certified Salesforce Consultant for any Salesforce related work, then please feel free to reach out to sales@girikon.com
Orchard CMS is a free & open source project with reusability of components to develop ASP.NET applications. We can enable/install/download shared components to building ASP.NET applications. It helps us to develop own customized and content-centric ASP.NET applications availing the facility of existing modules and features
Latest Orchard version is 1.8.1 with the facility of that Orchard can be deployed to both Windows Azure Cloud Services and Windows Azure Web Sites. The beneficial aspects while developing site using Orchard CMS are:
1. Theme Selection option : Provided default theme is very flexible which we can modify for CSS & design as per our requirements. And if we want to apply new theme to get a new look & feel from scratch, then it also can be done here and in admin desired theme can be set as current.
2. Orchard Search: Orchard CMS does “Search” by keyword or query syntax for text or phrase. To get search feature, we need to enable “Search”, “Indexing” & “Lucene” modules from admin panel. Then create index, attach it to content type on which content we want to make search. Orchard query the index to get content items to display.
3. Orchard Tags Module : Orchard.Tags module. Using this module it’s very easy to save tags with custom items & display the list of items along under their specific tag(s) as well as the search on those tags.
4. Orchard Blogs & Blog comments :
Now a day’s almost every Content Management System has some specific features like Pages, Blogs and Blog Posts and same as in Orchard.
Blogs are by default enable in Orchard and can’t set disable
but we can enable and disable comments for blog, also can put conditions e.g. whether we want to allow threaded comments or not.
Comments are what make a blog/website more interactive and more social.
5. Voting & Stars : Rating is the feature by which we can facilitate user to vote our site content. To make it working first of all we need to enable “Voting” module and then “Stars” module.
Now we can use stars for to vote. We need to edit content type to add the Stars part to it. “Stars” module will show 5 stars to vote by click any of those. Voting will calculate and store values automatically.
Finally, the best part of Orchard CMS is that we can enhance/customize it as per our requirement e.g. Can develop new module, create Widgets/Taxonomies/Workflows/Indexes etc.
Cheers!
Pramod
That is all for this article, in case you need Salesforce Implementation Services for any Salesforce related work, then please feel free to reach out to sales@girikon.com