Basem Emara

Mobile Architect / iOS Jedi

  • About
  • Portfolio
  • Contact

Connect

  • GitHub
  • LinkedIn
  • Twitter

Polling AJAX Requests in JavaScript

June 6, 2012 By Basem Emara Leave a Comment

Polling AJAX is tricky. If the next interval triggers before the last AJAX request is complete, your app is doomed!! This creates a domino effect where your queue for requests fill up faster then it can complete. Your queue will NEVER finish… similar to an infinite loop.

Filed Under: JavaScript Tagged With: ajax

Convert a C# Object to JavaScript in MVC Razor

May 16, 2012 By Basem Emara Leave a Comment

Creating a JavaScript application on top of ASP.NET MVC is becoming more common these days. Rightfully so, especially with the new Web API addition to MVC 4. The clear separation between client-side and server-side is an elegant architecture indeed!

Filed Under: .NET Tagged With: aspnet-mvc, c#

Looking Ahead to HTML5

March 15, 2012 By Basem Emara Leave a Comment

HTML5

Now that Internet Explorer 9 has cooled off the press, we can alas rejoice that all new PC’s and mobile devices are supporting HTML5! This brings a new era that aims to refactor the web in a whole new way. As you will see, HTML5 provides us code slimming techniques that make our HTML source code much more easier and functional.

Filed Under: Web Tagged With: html5

Building an HTML5 Mobile App using jQuery Mobile and ASP.NET MVC

March 15, 2012 By Basem Emara Leave a Comment

The mobile revolution has created a plethora of new platforms and languages. It
is rare to see old technologies successfully reaching new grounds together. A good
example of this is .NET MVC and jQueryMobile. The blends of Razor, HTML, CSS, and jQuery make mobile a very familiar territory, a package that makes things quick, easy, and beautiful!

Filed Under: .NET, JavaScript, Mobile Tagged With: aspnet-mvc, jquery-mobile

Get an Absolute URL from a Relative Path in C# .NET

March 15, 2012 By Basem Emara Leave a Comment

Getting an absolute path from a relative one has been made very easy and pleasant by .NET. Just feed the relative path to the “Page.ResolveUrl” method and that’s it! One thing that was left out by .NET though is how to get an absolute URL from a relative path? With social networks on the rise, passing around your links has become more important than ever. There are many ways to do this, but all have their drawbacks. I will show you a static method that I use that solves just about all cases.

Filed Under: .NET Tagged With: c#

Building a Mobile Web App using Sencha Touch 2 and MVC

March 15, 2012 By Basem Emara Leave a Comment

In my previous post, I showed how to build a mobile web app using jQuery Mobile. Its use of HTML5 data attributes and CSS classes made it pretty straightforward, especially if you are used to building regular websites. The architecture of your mobile website would have to be based on the server-side though, whether this be ASP.NET MVC, PHP, Ruby, etc. Then I came across Sencha Touch which changes this mentality to a more progressive approach… client-side applications!

Filed Under: JavaScript, Mobile Tagged With: mvc, sencha

How to Post Sitefinity Forms to Paypal

March 15, 2012 By Basem Emara Leave a Comment

The task at hand is more complicated than it sounds. Normally you would just generate a button in Paypal and paste the form code to your website. If it were only that easy. Try doing this in any ASP.NET website and you will run into a big problem… no nested forms allowed!

Filed Under: .NET Tagged With: paypal, sitefinity

Back to the Basics with JavaScript

March 12, 2012 By Basem Emara Leave a Comment

In case you haven’t heard.. JAVASCRIPT IS MAKING A COME BACK!! And it is not the same JavaScript you fiddled around with in the pre-AJAX era. It has become reborn with the help of HTML5, mobile, and even Windows 8 (see Create your first Metro style app using JavaScript). Understanding JavaScript is becoming essential and can no longer be dismissed as a “weakly-typed, toy language with no compilation checks,” but instead as a versatile, dynamic, cross-platform language.

Filed Under: JavaScript

Building a Javascript MVC App using Sencha Ext JS

March 12, 2012 By Basem Emara Leave a Comment

With mobile getting all the love lately, I thought I would give back to the desktop community. I showed how to build a mobile web app using Sencha Touch 2 and MVC. Now I will do the same with a desktop web app using Ext JS.

Filed Under: JavaScript Tagged With: mvc, sencha, single-page-application

  • « Previous Page
  • 1
  • …
  • 7
  • 8
  • 9

My Life Philosophy

Simplicity is the key to elegance.

Post Series

  • Building a Scalable iOS App
  • Swift Utility Belt

Popular Posts

  • Creating Thread-Safe Arrays in Swift
  • Creating Cross-Platform Swift Frameworks for iOS, watchOS, and tvOS via Carthage and CocoaPods
  • Memory Leaks and Resource Management in Swift and iOS
  • So Swift, So Clean Architecture for iOS
  • Reading values from any plist file or bundle in Swift

Mobile App

Download the Basem Emara Blog app

Find It