RootsWeb.com Mailing Lists
Total: 1/1
    1. Re: [FreeHelp] Java script search tool not working
    2. Barry Carlson
    3. On Tuesday, December 21, 2010 5:57 PM Dan Smith wrote:- >I just started uploading my web pages to my site "smithpioneers". I have a > search tool on my index.html page for searching through the rest of the > pages on my website. It uses a Java script. It works great on my system, > but > when I upload it to freepages it has a problem. Click on the link below > > http://freepages.genealogy.rootsweb.ancestry.com/~smithpioneers/ > > and you will see the problem. Any suggestions? > ---------------------------- Dan, I've had time to examine the page, and the javascript is using innerHTML to write the contents of the search function as another html page. That is where the problem lies, as the freepages server is recognising additional <body> tags and is placing the script for the banners right in the middle of the script. There is no quick fix. The long term fix would be to change the script so that instead of using innerHTML, it used the Document Object Method (DOM) to create the additional elements, and that wouldn't create a problem with the banners. The more viable fix is to use the http://freefind.com solution, which also uses a javascript dynamic method of placing search results in an iframe, and the search function can easily be added to every page and will search your whole site. There is a slightly modified version of the stock standard version as an example at:- http://www.rootsweb.ancestry.com/~intttp/ Let me know if you'd like some assistance, if you decide to use it. Barry

    12/22/2010 12:02:31