How to add the js files to specfic modules only I am having a module and am adding the js files which is using on the top of the module file as follows :

drupal_add_js(drupal_get_path("module", "notification") . "/js/jquery.js");


But the problem is this js file appear in the whole site and makes things messy . I need this file should appear in the notification module only. Another problem is the by default D6 using the jquery.js (which is an older version 1.2.1) and  by default its taking from the sites/misc path .its taking the old $.browser function and all !! .  And when am including the latest version it makes conflict with the oldest version  . How to solve this ?
It is, of course, not possible. The problem is:


JS files, by the nature of WWW, are added to HTML output
All modules participate in creation of one HTML output
You want to add JS "only to module", but because there is no isolation between parts of HTML output, it's plainly not doable.




To address what you didn't really ask, but probably need to know: 

Never just add jQuery on your own. That's pretty dangerous thing to do and pretty much always will mess things up. There is jQuery Update module to address this need. It's not perfect, but way better than anything you will be able to create yourself now - because it was tested by hundreds of thousands.