I thought that I was clear enough; but here goes.
I have a database table called "urls".
I have deposited several thousand urls.
They begin with "http://".
They have been copied from browsers to ms excel to access.
All that I want to do is parse through each url, and find the base url, which...
I know how to do form validation. I have many forms to validate. I am trying to write (borrow and change) a JS function that receives a string that is broken down and then verified. The string format is a1;a2|b1;b2|...
a1 = name of field to validate
a2 = Engligh words about field being...
This forum was such a great help on my last issue, I thought I would try it again.
The current web systems I work with use many dropdown menus written in JS. They all seem to be from the same source Netscape and later Macromedia (mm_menu, fw_menu, menu). They have many dates - latest 2002/3...
Thanks to all! Vongrunt's code works well. I made a small revision to highlight the words individually. No big deal but here it is:
function highlightSearchTerms( sText, sClass )
{
oReg = new RegExp;
sta = sText.split(" ");
for (var i = 0; i < sta.length; i++) {...
The site is written in PHP but is mostly hardcoded. I have a search tool that finds the pages matching the criteria. When the page is displayed, I want to highlight the area on the page that match. I got the JS from the web. It works except it strips out the <script> field. The other JS is...
I tried your script and it works. I retried mine and it didn't.
Could Javascript code be trashing memory? The other JS is a "borrowed" mm_menu system written in 2002. Could it be causing the problem?
Any ideas would be greatly appreciated.
Is there a problem with setting document.body.innerHTML?
My code does the following:
var bodyText = document.body.innerHTML;
document.body.innerHTML = "";
document.body.innerHTML = bodyText;
At first innerHTML is set to "<A name=top><script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.