aspose file tools
The moose likes Other Java Products and Servers and the fly likes Javascript code is required Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply Bookmark "Javascript code is required" Watch "Javascript code is required" New topic
Author

Javascript code is required

kademane guru
Greenhorn

Joined: Feb 20, 2007
Posts: 21
Hi JavaRanchers,
I want find the alert() itself in a javascript file(i.e how many alerts are there in one .js file) and also the line number of that string.Please can anybody help me how to solve this problem?.
[ May 06, 2008: Message edited by: kademane guru ]
K. Tsang
Ranch Hand

Joined: Sep 13, 2007
Posts: 1219

why don't read the js file into some text file and loop through text file counting alert() statements and keeping track on the counter as the line number?


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Are you planning to write Java code to do this, or are we talking about some other kind of environment?


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Javascript code is required
 
Similar Threads
read a property file to set variables using javascript
is it possible to include external javascrip file into ear file using NetBean 5.5.1?
DOM sorting
eclipse run configuration setting for javascript
calling java class file from javascript