Interesting feature with parsing XML with jQuery on Safari

  • March 27, 2011
  • James Skemp
I've been playing around with HTML5 quite a bit recently, in particular with offline Web applications. My second experiment (my first is on pause) was with making my video games available, so that I can access the listing when I'm out shopping at used game stores. It's still in progress, but you can see my offline listing of video games now. My main intention is to make this available on my iPod Touch, so I was a bit dismayed when I found that the listing didn't display the title of the game.

Read More

Referring to JavaScript documentation in Visual Studio via reference

  • July 3, 2010
  • James Skemp
While I don't use Microsoft or Google's CDNs for jQuery, I do have a separate sub-domain where I serve these files from (and will eventually use a CDN, I'm sure). However, this means that in Visual Studio I miss out on the helpful documentation functionality. Based on a comment on 3 reasons why you should let Google host jQuery for you it turns out there's a fairly easy way to get Intellisense; simply include the following in your JavaScript file.

Read More

Tutorial: ASP.NET (C#) WCF WebHttp service with jQuery: Part 3 - Pulling JSON with jQuery

  • June 25, 2010
  • James Skemp
See the table of contents for more information. In this series we've started with a new loan class, that contains information about a loan, including the total amount due, how much is to be paid per payment, the interest rate, and etcetera. A method is available that will generate information about the number of payments required to pay off the loan. In the second part we created a WCF WebHttp service, or a WCF REST service, to use the class/assembly from that loan object and return XML data for GET requests.

Read More

Tutorial: ASP.NET (C#) WCF WebHttp service with jQuery: Table of Contents

  • June 21, 2010
  • James Skemp
A while ago (a year and a quarter) I created an amortization schedule generator in ASP.NET, as an attempt to help me determine when I could expect to have a loan paid off, depending upon how much money I threw at it. For better or worse, some of the practices I put in place aren't the best, and either way I've been meaning to tweak the interface so that I could do various comparisons.

Read More

jQuery: Query an Xml document and output data

  • May 3, 2009
  • James Skemp
I back-dated my first piece of jQuery code, but have decided not to with my second. Anyways, I had a hard time finding code, written in jQuery, to pull data from an Xml file and add it to a page. Combining a couple of tutorials online, I created the following (on April 27). This was for a message, so I started out with the Xml file, creating something like this:

Read More

My first, working, piece of jQuery

  • April 23, 2009
  • James Skemp
This is the first piece of jQuery that I wrote, for production use, that works exactly as I'd like it to. Some code has been changed. try { $(document).ready(function(){ $('div#headerLogin') .prepend($(document.createElement('div')) .addClass('headerLoggedIn') .append('Logged in as: <span><cfoutput>#query.displayName#</cfoutput></span> <span><a href="https://words.strivinglife.com/logout/">logout</a></span>') ); $('div.headerLoggedIn') .after('<span>Hello<cfif IsDefined("query.first_name") AND Trim(query.first_name) NEQ "">, <cfoutput>#query.first_name#</cfoutput></cfif></span>'); }); } catch (ex) {} It's for a site that runs ColdFusion, hence the CF tags. Basically it finds the div with an id of headerLogin and adds to that a new div, with a class and some text.

Read More