Xtreeme - web development software
Site Search:      

 German version  
Home Products Download Buy Now Affiliates Forum
 SiteXpert - Site Map Generator
 SiteXpert's home page
 Features / Editions (Std vs Pro)
 Download
 Creating sitemap / site index
 Creating DHTML drop-down menu
 Creating search engine
 Screenshots
 Site Map Styles / Samples
» Site map
» Site index
» Portal
» Diagram
» Java Applet
» Mega folders
» more...
Sample site maps / menus created with SiteXpert
 Buy Now / Pricing
Order Now and get DHTML Menu Studio for Free ...
 Reviews And Awards
» CNET's Download.com (Rewarded 5/5)
"...Xtreeme SiteXpert Professional is a solid and affordable tool for Web professionals"
» Internet.com
"...the program can reduce the work load dramatically..."
» Tucows (Head of the Herd Award)
"...assists you in creating an excellent navigation scheme for your website..."
» ZDNet (Awarded Editor's Pick)
"...you'll be impressed with the results."
» more...
 Our customers
 Web sites utilizing our site map software
 Some of our other customers
 Support
 Frequently asked questions
 Discussion Forum
 Dynamic sitemap creation
 Related products / resources
 DHTML Menu Studio
 Search Engine Studio
Question ID: Q1012
Question: When I combine the site map with other JavaScript code on a single page, the site map doesn't work properly (e.g. all folders are expanded) or the other script-driven coponent doesn't work. How do I fix this?
Product: Sitexpert


This is most likely caused by duplicate onLoad event handlers. Sitemap generated by SiteXpert as well as the other script-driven component need this handler to work correctly. To fix the problem, you need to call both onLoad handlers. First, you need to locate the custom event handler call (the one which comes from the other script-driven component). This is most likely placed in the tag or inside script code, e.g. window.onload='[handler_function]'. Once you locate this handler, remove it. Now, add the following code anywhere in the body section of your web page:
<script language='JavaScript'>
<!--
addLoadHandler ('[handler_function]');
//-->
</script>
Please make sure you replace [handler_function] with the name of the other handler function in the above code.

Below is an example:

<script language='JavaScript'>
<!--
function xyz()
{
alert ('this will be displayed when the page is loaded');
}

addLoadHandler ('xyz');
//-->
</script>
 Save This Page       Copyright 1998-2007 Xtreeme GmbH