Response title
This is preview!




var callback = $("a").ClickCallback();$("a").click(function () {
// do custom logic here
return false; });// later at some point$("a").click(callback);
var src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"var s = document.createElement('script');s.setAttribute('type', 'text/javascript');s.setAttribute('src', src);s.setAttribute('id', 'RuntimeInjectedJqueryLib'); // base on id to check if jquery added already, avoid adding againthis seems working for me, but i am worring,coz i think after i specify the tag,browser will need to download the js file.it will take sometime...any idea how can i check if the js file has been loaded properly?
i am trying to create a tool, to capture image that user choose from browser..
so i try to inject the following piece of code:
1) inject jquery reference in header
2) inject following code
$('img').click(function() {
// do something
});
most of the page will work, but notice that, facebook, amazon, hotmail.. there page doesn`t work
any idea?
© 2012 jQuery Foundation
Sponsored by
and others.
