Skip to main content

Posts

Showing posts from June, 2012

jQuery Mobile onDeviceReady event for Desktop

If you have tried reviewing your mobile app on a desktop and have issues with the onDeviceReady trigger, than the below code will be helpful to you.//JavaScript
//*******************
if(window.device){
    document.addEventListener("deviceready", onDeviceReady, true);
}else{
    onDeviceReady();
}
//*******************the “window.device” check will enable you to see if the current system is a device or a regular desktop.Please note, in future the device reference may also include desktop tablets. Use this code accordingly to your system.

SQL Azure DataConnectionString

This dataconnectionstring is used for ServiceConfiguration.cscfg file for orchard project zip creation "AzurePackage.zip"

<Role name="MessageBoard_WebRole">
  <ConfigurationSettings>

    <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=[YOUR STORAGE ACCOUNT NAME];AccountKey=[YOUR STORAGE ACCOUNT PRIMARY KEY]" />

    <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=[YOUR STORAGE ACCOUNT NAME];AccountKey=[YOUR STORAGE ACCOUNT PRIMARY KEY]" />

  </ConfigurationSettings>
  <Instances count="1" />
  <Certificates />
</Role>
http://social.technet.microsoft.com/wiki/contents/articles/2128.windows-azure-and-sql-azure-tutorials-tutorial-1-using-windows-azure-web-role-and-windows-azure-table-service-en-us.aspx

http://www.connectionstrings.com/sql-azure