How to use jquery within a javascript api? -


i looking develop javascript web service website include in 1 line of code similar how google analytics used. use jquery in javascript code, don't want conflict js libraries may present on hosting webpage.

basically, inside main javascript file end user include in webpage, want like:

document.write('<script type="text/javascript" ' +            'src="http://mydomain.com/js/jquery-1.4.2.min.js"></script>'); 

...to make jquery available within code library. i'm wondering if proper way go using jquery in javascript api, or if there more considerations made. i'd appreciate examples or articles can suggest.

see: how build web widget (using jquery) tutorial alex marandon. explains many approaches trying do.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -