A long duration mild cold really sucks. about 17 hours ago
Back in Vegas! http://t.co/29ubCz3j 14 days ago
Once again, looking at the source code of em-http-request... 18 days ago
Typical day in Palo Alto. http://t.co/d9bs5yR3 20 days ago
Clicking the document at a location
Can be done simply using JQuery:
$(document.elementFromPoint(x, y)).click();
Or natively in Webkit:
var el = document.elementFromPoint(x, y);
var ev = document.createEvent(“MouseEvents”);
ev.initEvent(“click”,true,true);
el.dispatchEvent(ev);
Why do I need to do this? Ah… iPhone development…
all comments older articles
Latest comments
none!