Solved

Tell what .js file is running

Posted on 2011-02-24
4
307 Views
Last Modified: 2012-05-11
I have some java running on a page I don't want.  Is their an easy tool to tell what .js files are being loaded?  

Thanks
0
Comment
Question by:sonicimpulse
4 Comments
 
LVL 38

Accepted Solution

by:
Aaron Tomosky earned 250 total points
ID: 34970622
Firebug
0
 
LVL 13

Expert Comment

by:darren-w-
ID: 34970623
The source should show what's being loaded lines like this in this page:
<script src="http://images.experts-exchange.com/00204/scripts/s_code_0a522bfb0687449fe5b609a65bced569.js" type="text/javascript"></script>

also you can use the firebug plug-in for Firefox
0
 
LVL 20

Expert Comment

by:Proculopsis
ID: 34971135

Try something like this:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
<script>
jQuery(document).ready(function() {

  $("script").each( function() { alert( $(this).attr("src") ) });

});
</script>

0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 250 total points
ID: 34972799
Using Chrome : Ctrl+Shit + J
You've the ressources button or/and the Script button to display them
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question