Profile cover photo
Profile photo
Mike Hatfield
128 followers -
CTO of Nicom IT Solutions Inc and a web-coding warrior seeking to maintain balance between the corporate and open source worlds.
CTO of Nicom IT Solutions Inc and a web-coding warrior seeking to maintain balance between the corporate and open source worlds.

128 followers
About
Posts

Post has attachment
Add a comment...

Ok, I've fought with this for a few hours tonight in trying to integrate a JavaScript notification plugin (notie from https://github.com/jaredreich/notie.js) and ASP.net server side code.

The scenario was that I wanted to:
1) select an item from a list (rendered server side)
2) enable the delete button (asp:button) on the client
3) use the button's OnClientClick event handler to call into my client side confirmation process

The problem I was observing was that when the button was enabled using jQuery (on list item selection), the OnClientClick was failing to be called. If the Delete button was originally enabled in the markup, it worked fine.

I came to find out, after more than a couple of hours, if the server side button's Enabled is set to false, the OnClientClick event handler does not even render for the client. The solution is to not use the Enabled property but to use disabled = "disabled" instead as seen in the following snippet.

<asp:button runat="server" id="DeleteButton"
cssclass="btn btn-danger btn-etc delete-query-button"
disabled="disabled" text="Delete"
onclientclick="return queryScreen.confirmAction('.delete-query-button', 'Are you sure you wish to delete the selected query?', 'Yes', 'No');" />

Hopefully this can help someone out there and save them some troubleshooting time.

#aspnet #jquery #troubleshooting #softwaredevelopment #javascript
Add a comment...

Post has attachment
Great news everyone, my book, CoffeeScript Application Development Cookbook, has finally been published and is now available on the Packt and Amazon websites.

http://bit.ly/1EgVnls

It has been a more arduous journey than I expected, but that makes today that much sweeter.

Why CoffeeScript you may wonder, and why now?

In my nearly 20 years of developing custom software solutions, nothing has had as great an impact on our industry or society as the Internet. Today, it would be difficult to imagine a world without HTML, CSS, and JavaScript. I developed my first web-based application using JavaScript with Netscape Navigator in the mid-1990s, little did I realize then that we were in the early days of a software revolution.

Skip ahead nearly two decades and JavaScript has become one of the most widely supported programming languages in the world. Unfortunately, little has changed with JavaScript in this time and it is plagued with gotchas that can make developing a pure JavaScript system challenging. Enter CoffeeScript.

CoffeeScript provides us with a better approach to develop our applications that not only helps us to avoid these pitfalls, but also allows us to be more productive while still being able to take advantage of the large JavaScript ecosystem.

This book is a practical guide, filled with many step-by-step examples of using CoffeeScript for all aspects of building our software.

This book covers the fundamentals and over 90 recipes to help you become a productive CoffeeScript developer. It examines all aspects of building rich web and mobile applications using CoffeeScript including front-end, back-end, working with databases, testing and deployment. It demonstrates how CoffeeScript can be used with many of the most popular tools in the JavaScript ecosystem today including jQuery, Backbone.JS, Angular, Kendo UI, Cordova, Redis, Mongo DB, Twilio, Amazon Web Services, Heroku, Windows Azure and much, much more.

The book is broken out into eleven chapters which include the following.

Chapter 1, Getting Ready, introduces CoffeeScript and lays the foundation to use CoffeeScript to develop all aspects of modern cloud-based applications.

Chapter 2, Starting with the Basics, covers using CoffeeScript with strings, numbers, dates, arrays, and classes.

Chapter 3, Creating Client Applications, demonstrates using CoffeeScript with various UI libraries and frameworks, including jQuery, Backbone, Angular, and Socket.IO.

Chapter 4, Using Kendo UI for Desktop and Mobile Apps, demonstrates how to use CoffeeScript with Telerik's open source Kendo UI Core framework to create both desktop and mobile applications.

Chapter 5, Going Native with Cordova, demonstrates how to use Apache Cordova with CoffeeScript to create native applications that can access native device features such as camera, geolocation and contacts and be deployed to physical hardware.

Chapter 6, Working with Databases, covers various database technologies, including SQLite, Redis, MongoDB, and CouchDB, and how CoffeeScript can be used with each technology to perform create, read, update, and delete operations.

Chapter 7, Building Application Services, dives into the aspects of building the back-end services needed by our application with a look at building RESTful services, working with Base64 encoding, and using domain name services to do DNS and reverse DNS lookups.

Chapter 8, Using External Services, examines ways to use existing services to send text messages and e-mails, use the Amazon cloud storage, and transfer files via FTP.

Chapter 9, Testing Our Applications, is dedicated to using CoffeeScript to test our applications using test frameworks such as Jasmine, Mocha, and Zombie as well as creating mocks using Persona.

Chapter 10, Hosting Our Web Applications, explains how to prepare your application for deployment using Grunt, and how to deploy to popular cloud hosting solutions such as Heroku and Windows Azure.

Chapter 11, Scripting for the DevOps, examines ways that CoffeeScript can be used to help with day-to-day operation tasks such as working with files and directories, CSV and fixed-width data files, generating PDF files, and formatting data for output.

If you are developing web applications, this book has something for you.

What's next? I'm working on my next book, an instructional book on building large and complex mobile web applications using the Kendo UI toolkit.

Thank you, everyone, for your support. Especially my very patient wife, Tracy, and our children.

Also, special shout out to my son Jason Hatfield, for creating such an awesome cover graphic for my book!

#coffeescript   #packt   #javascript   #softwaredevelopment   #nodejs   #telerik   #kendoui   #cordova   #mobileapps   #cookbook   #webdevelopment  
Add a comment...

Post has attachment
Another fantastic video from Laci Green on victim blaming.
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...
Wait while more posts are being loaded