Error When Adding Pinterest Button to Web Site
Last Updated on Thursday, 18 April 2013 02:34 Written by David Bauernschmidt Friday, 19 April 2013 12:00
The other day I had time to go back and look into some errors that I was getting on a web site that I was building. It did not affect the performance or any of the functionality (at least that is what I thought) but it was very annoying to always have to hit the F5 key during debug in VS 2012. I got busy and determined to finish the site, published it and the client really liked it but now was the time for me to go back and look at what was causing this error. The error I am referring to is the error that is an indication that the browser was quicker than the download or the same error when a javascript CDN is offline, but I knew this was not the case.
Learn MoreWorking with Selects (dropdowns) in knockout.js
Last Updated on Wednesday, 3 April 2013 06:39 Written by David Bauernschmidt Friday, 5 April 2013 12:00
If you’re like me, I am always excited to try new tools and technologies so in this article I am going to show you how to use knockout.js to bind a dropdown list. It is very similar to non-knockout.js but there is a little bit of a difference. Let’s get started. One quick note is that there are a couple of different ways to do this. If the select name is the same as the value then there is a little easier way to do this, however; in this example I want the name and the value to be different.
Start with creating a jQuery Ajax call. This is pretty much the same as you would for any AJAX method.
Learn MoreSend Email Using jQuery and Web.API (Part 2)
Last Updated on Wednesday, 27 March 2013 09:21 Written by David Bauernschmidt Friday, 22 March 2013 12:00
As promised here is Part 2 of Sending Email using jquery and web.api (including some validation). If you missed Part 1 then get it here. It is important to realize that if you are going to use web.api for web forms then you need to add the following to the global.asax.
Learn MoreSend Email Using jQuery and Web.API (Part 1)
Last Updated on Wednesday, 27 March 2013 09:25 Written by David Bauernschmidt Thursday, 21 March 2013 12:00
Every site no matter how small contains the ability to submit emails. These emails can be for contacting, notifying, fulfilling or subscribing to something. Since the world of AJAX, jquery, and other frameworks have been adopted by “main” stream companies, it seems archaic for a site to request the information and then to hit a submit button and for the complete page to be sent off to the server for processing. In fact, I think that all sites that have emailing of something should be required to use state-less, a sync processing. In this exercise I am going to show you how simple it is to be able to create a standing library that can be modified quickly to fit just about any email requirement. Once this is implemented you will be able to alter this library and have a real professionally done email submitting process.
Learn MoreReturn Binary Image Using Web Api and Knockout.js
Last Updated on Tuesday, 12 March 2013 07:29 Written by David Bauernschmidt Saturday, 16 March 2013 12:00
If you have a SQL database that has an image field in a particular table and want to return the image to the web site using web API’s then you almost have to extract the image as binary, read it to a memory stream and then save it temporarily on the server. Pass the location back to the web page where the web page then displays the image.
What if you don’t want to create a temporary file or what if you have a lot of images for a particular product you know the user is not going to look at all of them, but since they could you’re left to run through this process anyway. Here is another way you could do this. Instead of creating a temporary file just stream the image back in the way of a string. Then let your browser convert it to the binary image equivalent.
Learn More
Recent Comments