Hi,

I've so far developed an extension.
Now it's time to start using jquery in it.
How do I include it inside the extension so that I can use it ?
I've seen here an example
http://www.learningjquery.com/2006/12/jquerify-bookmarklet .
>From there I see that I should do something like this in my code
      var s=document.createElement('script');
      s.setAttribute('src','http://jquery.com/src/jquery-latest.js');
      document.getElementsByTagName('body')[0].appendChild(s);
Altough I'm not quite sure what this would do ?
Would it include jquery library at runtime in my code so I can use it ?
How would you do this ?
I've also seen this notion of 'script injection' that seems similar to what
I want to achieve.
In particular this page 
http://leftlogic.com/lounge/articles/bookmarklet-coding/#more-18
shows something like this.
Has anyone tried to do this ?
Does it work or am I trying to push a rock that will not move ?
Either way I'm going to give it a shot,but if you've done this and might have
any details to share please do :)

Thank you

-- 

Stefan Petrea
homepage     : http://perlhobby.googlecode.com/
mobile phone : +40732070179

Reply via email to