Zhongde Liu

This is my personal "Clipboard" of web development stuff I come across


Leave a comment

Note: Whitespace raises jQuery error (Ajax, jQuery 1.9)

Just stumbled upon a bug/feature when migrating to jQuery 1.9.

So the case is: You are trying to convert following String:

"   <div>Hallo</div>"

into a jQuery object. Pay attention to the leading whitespace.

Prior to 1.9 you get what you would expect. With 1.9, you will get an error.  Reason is this core change, documented here http://jquery.com/upgrade-guide/1.9/#jquery-htmlstring-versus-jquery-selectorstring. As I’m not the only one with this issue, there are already several posts about it (the intention, the pros, contras…). This is the according thread in the jQuery tracker: http://bugs.jquery.com/ticket/13223 .

There is also mentioned to re-implement the old behavior.

Advertisements


Leave a comment

Installing is nomally so easy….

…but not always. I tried to install die Kinect SDK and stumbled upon different problems – with just executing the .exe install file:

  1. Install process just brakes with no error message….
  2. ……Finding the setup-log
    • Hit “set TEMP” into the command shell prints your temp folder of your current user
    • Analysing the log points me to “Error 0x800b010e” — …great
  3. After some research on the web I disabled some security settings in advanced options tab of the internet options
  4. ….it is installing a bit longer – but still – error
  5. …. Analysing (again) the log reveals “Error”0x80096005” — great²
  6. Hey there is a magical command found in a post of one of microsofts forum which solves this problem!
    Make sure your machine has cached the certificate revocation list (CRL) for the timestamp countersignature.  You can force this to happen by running the following commands:
    certutil -URLCache -f http://crl.microsoft.com/pki/crl/products/MicrosoftTimeStampPCA.crl 
  7. Viola! – It is installed