Software development stuff.

2011-07-21

Visio diagram lines changed on copy paste?

I drew my diagram on Vision 2003 all nice, when I copied it to Word the dashed lines were changed to solid lines!
Found the resolution on good old Microsoft Support site.
Dashed or dotted line patterns are converted to a solid line pattern when you embed a Visio 2003 object in another document

2011-07-18

Using IDs in jQuery Mobile Pages

With JQuery Mobile different server pages are loaded on the same client DOM.
If you need to access an element by ID or class which conflicts with another element on another page with the same ID or class (in my case it was the same page with different parameters) you can use the ancestor on the JQuery selector as described by cplee70 in this forum thread:
Using IDs in jQuery Mobile Pages - jQuery Forum: "
$('div.ui-page-active .lat') instead of just: $('.lat')
EDIT:
Better yet, I started using: $('.lat', $.mobile.activePage)