Debt Consolidation - Debt Consolidation - Health 2007 - Find jobs - Anime Downloads

PDA

View Full Version : Is it possible to call from an external file in this code?


schmidte
Oct 31st 2008, 1:43 pm
I have a "bad word filter" that I want to incorporate into a search engine,

See example HERE (http://www.lures.info/ajax/filter.html)

However I'd like to keep the list of bad words out of the code and call them from an external file. Is it possible to do with the javascript I'm using now?

When looking at the page source, the line I need to hide is:
var swear_words_arr=new Array("cardinals","losers","choke","next year");

Ed

rhoula
Oct 31st 2008, 4:09 pm
Did you think about saving the words into an external javascript file example bad_words.js?
I think this may work.
Good Luck

joxtechnology
Nov 4th 2008, 1:40 am
yeah its possible to place it in external file then just call it in your page.