- Press the Windows key to open the Start screen or switch to the Desktop (if open).
- Press the Windows key + D will open the Windows Desktop.
- Press the Windows key + . to pin and unpin Windows apps on the side of the screen.
- Press the Windows key + X to open the power user menu, which gives you access to many of the features most power users would want (e.g. Device Manager and Command Prompt).
- Press the Windows key + C to open the Charms.
- Press the Windows key + I to open the Settings, which is the same Settings found in Charms.
- Press and hold the Windows key + Tab to show open apps.
- Press the Windows key + Print screen to create a screen shot, which is automatically saved into your My Pictures folder.
Windows 8 keyboard shortcuts
Facebook Shortcut Keys for Internet Explorer
Keys | Action |
Alt + M + Enter | New Message |
Alt + ? + Enter | Cursor in Search box |
Alt + 0 + Enter | Help Center |
Alt + 1 + Enter | Home Page |
Alt + 2 + Enter | Profile Page |
Alt + 3 + Enter | Friend Request |
Alt + 4 + Enter | Messages if any |
Alt + 5 + Enter | Notification |
Alt + 6 + Enter | Account Settings |
Alt +7 + Enter | Privacy Settings |
Alt + 8 + Enter | Official Facebook page |
Alt + 9 + Enter | Service Agreement |
L | Like/Unlike Photos in Light box |
Facebook Shortcut Keys for Mozilla Firefox
Keys | Action |
Shift + Alt + M | New Message |
Shift + Alt + ? | Cursor in Search box |
Shift + Alt + 0 | Help Center |
Shift + Alt + 1 | Home Page |
Shift + Alt + 2 | Profile Page |
Shift + Alt + 3 | Friend Request |
Shift + Alt + 4 | Messages if any |
Shift + Alt + 5 | Notification |
Shift + Alt + 6 | Account Settings |
Shift + Alt +7 | Privacy Settings |
Shift + Alt + 8 | Official Facebook page |
Shift + Alt + 9 | Service Agreement |
Shift + Alt + 6 | Account Settings |
L | Like/Unlike Photos in Light box |
Facebook Shortcut Keys for Google Chrome
Keys | Action |
Alt + M | New Message |
Alt + ? | Cursor in Search box |
Alt + 0 | Help Center |
Alt + 1 | Home Page |
Alt + 2 | Profile Page |
Alt + 3 | Friend Request |
Alt + 4 | Messages if any |
Alt + 5 | Notification |
Alt + 6 | Account Settings |
Alt +7 | Privacy Settings |
Alt + 8 | Official Facebook page |
Alt + 9 | Service Agreement |
L | Like/Unlike Photos in Lightbox mode |
ASP.NET MVC 3 With jQuery Mobile and Google Maps
How my app works
My ASP.NET MVC 3 project uses jQuery Mobile 1.0 Alpha 3 and Google Maps API 3. My data source is an XML file which contains a list of 10 Information Technology companies in Silicon Valley. A page is generated for each company and their headquarters are displayed on a map. There were a couple of gotchas I came across when implementing Google Maps with jQuery Mobile which I will discuss later on in the post.
Model
First, I created a Location.cs class based on the structure of my Locations.xml file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
I also created a LocationModel.cs class which uses LINQ to read the XML file and append each Location to a List of Location objects.
1 2 3 4 5 6 7 8 9 10 |
|
Controller
I have one Controller named HomeController.cs which creates an instance of LocationModel at the class level and returns all locations to the Index View. It also looks up specific locations for the Map View based on the unique ID passed in the url to the Map method.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
I am using Google’s GeoCoding API to look up the Lat and Long for an address so it can be plotted on the map. I am requesting the results in an xml format and parsing them using LINQ. If the lookupGeoCode() method fails at getting the Lat and Long it returns false and the Map method returns the Error View.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
View
I am using the new Razor view engine which is available with ASP.NET MVC 3. I have two Views, Index and Map, which are both strongly-typed. The _Layout.cshtml is my master page and in order to get Google Maps working with jQuery Mobile I had to put the JavaScript reference to the Google Maps API here along with the css style for the map.
_Layout.cshtml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
My Index View returns a hyperlink for each location.
Index.cshtml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
I am using Html.ActionLink to generate my hyperlinks and talk to my controller. When publishing this ASP.NET MVC Project to my GoDaddy shared hosting I ran into a problem with my hyperlinks including the directory path aliased to my subdomain name which made the url long and ugly. The relative url returned by Html.ActionLink was including /gregjopa/code/ which is aliased to code.gregjopa.com. So my url originally looked like:
1
|
|
instead of:
1
|
|
I originally tried to fix this by using the URL Rewrite Module available in IIS 7 but I couldn’t get this working with my GoDaddy hosting. So instead I created a helper method to remove the unwanted portion of the url generated by the Html.ActionLink method.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
The Map View includes the JavaScript for Google Maps. You cannot use document.ready() when using jQuery Mobile. Instead you must use specific jQuery Mobile page events to inject code into the DOM. My app uses the pagecreate, pageshow, and pagehide events to execute JavaScript. I had to add an id to each page so it could be uniquely referenced in the jQuery Mobile events. Also, in order to have a separate map on each page I had to use unique JavaScript variable names when defining each map.
Map.cshtml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
Conclusion
jQuery Mobile rocks! It is easy to develop with and the themes look great. It also provides a standardized user interface across all popular mobile device platforms. So instead of developing a mobile site with custom code for the iPhone, custom code for Android, custom code for the Windows phone, etc… you can just have one mobile site for all platforms.
Search This Blog
Arsip Blog
Powered by Blogger.
Recent
Comment
Author Info
Like This Theme
Popular Posts
-
HTML -------------------------------------------------- < label class = "file-upload" > Browse < asp : FileUpload ...
-
1. Download and add FooTable js, css and image files in the project and reference in the page. 1 2 3 4 < meta ...
-
Create an MVC Web Application Open Visual Studio and create a new C# Web project named "ContosoUniversity". In the Ne...
-
SSL Certification creation ------------------------------------------------- Step1 : Download OpenSSL zip https://www.openssl.org/ St...
-
public class User { public int UserID { get ; set ; } [ Required ( ErrorMessage = "Please Enter Your Name" ...
-
public async Task < IHttpActionResult > GetItemsForFormType () { var result = new List < ItemManagementViewMode...
-
Optimizing for website performance includes setting long expiration dates on our static resources, such s images, stylesheets and JavaSc...
-
Update jquery.js file Every request checking to HTTP to https convertHttps : ((function() { if (window.location.href.toLo...
-
public static void MakeAccessible(GridView grid) { if (grid.Rows.Count <= 0) return; grid.UseAc...
-
<asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label> ...
Video Of Day
jishnukanat@gmail.com
Sponsor
Most Popular
-
HTML -------------------------------------------------- < label class = "file-upload" > Browse < asp : FileUpload ...
-
1. Download and add FooTable js, css and image files in the project and reference in the page. 1 2 3 4 < meta ...
-
Create an MVC Web Application Open Visual Studio and create a new C# Web project named "ContosoUniversity". In the Ne...
-
SSL Certification creation ------------------------------------------------- Step1 : Download OpenSSL zip https://www.openssl.org/ St...
-
public class User { public int UserID { get ; set ; } [ Required ( ErrorMessage = "Please Enter Your Name" ...
-
public async Task < IHttpActionResult > GetItemsForFormType () { var result = new List < ItemManagementViewMode...
-
Optimizing for website performance includes setting long expiration dates on our static resources, such s images, stylesheets and JavaSc...
-
Update jquery.js file Every request checking to HTTP to https convertHttps : ((function() { if (window.location.href.toLo...
-
public static void MakeAccessible(GridView grid) { if (grid.Rows.Count <= 0) return; grid.UseAc...
-
<asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label> ...