Scale picture (dynamic pic) recieved from XML response & DOM insert
When parsing XML document, i have a <ContactPicture> element , wich i get using:
var conPic = $conNode.find("ContactPicture").text();
I use string concatenation inside each().. for example:
- html+='<li class="withimage"><a href="...'"><span class="picHolder"><img src="data:image/png;base64,'+conPic+'"/></span>....etc
and when finished, insert the whole DOM at-once.
What i want is, before DOM insertion, to scale all those pictures (conPic) by 57%.
I found a nice jQuery plugin: jScale, but it won't work on dynamic data, just for static images..
Can someone give me directions or help?
thx