Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Scripting > Javascript   »   Use Windows to find text in javascript?

 
Thread Tools Display Modes
Question
 
 
#1  
Old May 22, 2007, 08:13 AM
RickJ's Avatar
RickJ
Administrator
RickJ is offline
 
Join Date: Aug 2005
Location: Cave 4, Qumran
Posts: 6,988
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
Use Windows to find text in javascript?

I suppose this might be more of an "other software" issue than a javascript issue...so let me know if you think it should be moved...

In webpages I use javascript to hide email addresses from bots. I want to search the files of the websites for these javascript uses so I can change the email address in some of them...

When I use Windows to search the folder that all the .html files are in Windows does not find text that is used in javascript.

How can I search my files for all uses of the javascript?

If it helps, here's an example:

Code:
<script language="JavaScript" type="text/javascript"> 
<!-- 
   document.write("<A HREF='mailto:"+"rick@somewebsite.org"+"'>"+"Contact"+" Rick Jackson"+"</A>"); 
//--> 
                    </script>
Thanks!

Reply With Quote
 
     

Answers
 
 
Old May 22, 2007, 08:19 AM   #2  
Administrator
RickJ is offline
 
RickJ's Avatar
 
Join Date: Aug 2005
Location: Cave 4, Qumran
Posts: 6,988
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
PS. Of course I know I can open each page with notepad and search it that way, but I'm looking for something that will search the whole folder of all .html files.
  Reply With Quote
 
     
 
 
Old May 25, 2007, 11:22 AM   #3  
Full Member
jstrike is offline
 
Join Date: May 2007
Location: Wisconsin - Go Packers!
Posts: 391
jstrike See this member's comment history on his/her Profile page.
I use UltraEdit.

It can do a search and replace inside of files.

HTH.
  Reply With Quote
 
     
 
 
Old May 25, 2007, 01:44 PM   #4  
Administrator
RickJ is offline
 
RickJ's Avatar
 
Join Date: Aug 2005
Location: Cave 4, Qumran
Posts: 6,988
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
Thanks J. I do see they claim to be useful for javascript, so will check out their free trial. I'll post back to confirm how it went.
  Reply With Quote
 
     
 
 
Old May 29, 2007, 03:12 AM   #5  
Administrator
RickJ is offline
 
RickJ's Avatar
 
Join Date: Aug 2005
Location: Cave 4, Qumran
Posts: 6,988
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
I tried that app and unless I'm not figuring out how to use it right, it will not search a folder for files that contain a string of text I'm searching.

Is that right?

My goal is to search a folder for a string of text that is within a javascript...just like Windows will search a folder for a string of text in any file in the folder...but Windows will not find text that is in javascript...
  Reply With Quote
 
     
 
 
Old May 29, 2007, 03:29 AM   #6  
Full Member
jstrike is offline
 
Join Date: May 2007
Location: Wisconsin - Go Packers!
Posts: 391
jstrike See this member's comment history on his/her Profile page.
In UltraEdit...
Click Search
Select Find in Files.
Type in what you want to find (rick@somewebsite.org) Keep this as small/short as possible to maximize your results.
For In Files/Types enter *.html;*.js (Semicolon to separate)
Make sure you have the right directory in the Directory box.
Under Search In select "Files Listed"
Make sure "Search Sub Directories" is checked.
Click Find.
The results will open in a box at the bottom of the editor. You can double click on the results to open the file in the editor.
The Replace in Files selection works the same way except you give it what you want to change the text to. This is a bit riskier for large changes so I'd recommend doing a Find in Files first to see what it's going to look like.

Comments on this post
RickJ agrees: Sweet! Thanks, jstrike!!
  Reply With Quote
 
     


Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
New HD but Windows setup can't find it RickJ Laptops 21 Apr 24, 2007 12:01 PM
Excel 15 digit issue, tried converting to text, text to column feature negates fix kaiotes Spreadsheets 3 Feb 26, 2007 01:40 PM
cannot find server, micrsoft windows not genuine chaikabear Internet & the Web 7 Feb 9, 2007 03:05 PM
BIOS/CMOS can find my second hard drive but Windows cannot drummerdan Hard Drives 5 Oct 7, 2006 12:45 AM
BIOS/CMOS cannot find CD-ROM but Windows can drummerdan CD & DVD Drives 0 Sep 22, 2006 06:35 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 07:21 AM.