Wednesday, November 9, 2011

Unknown savevm section type 95

I don't know what happened but while learning to write my first android app - the eclipsys application kept giving me a few errors -

If you see the following error - just ignore it
[2011-11-09 15:10:11 - Emulator] Unknown savevm section type 95

If the emulator is not launching/you see other errors about disconnecting/canceling AVD, it means your Android SDK Manager is not set up properly.

1. Enable the snapshot
2. Specify size for the SD Card.

This appears to resolve problem for me.

Wednesday, November 2, 2011

document.getElementById vs jQuery

document.getElementById('contents'); //returns a HTML DOM Object

var contents = $('#contents'); //returns a jQuery Object

var contents = $('#contents')[0]; //returns a HTML DOM Object

To get the text out of it, for example on a label control in asp.net , you would do:

$("#ctl00_ContentPlaceHolder1_Album1_Label1")[0].innerText

You could set an alert to see if it in fact returns something -
alert($("#ctl00_ContentPlaceHolder1_Album1_Label1")[0].innerText);