[FX.php List] javascript imagemap disables php header
Joel Shapiro
jsfmp at earthlink.net
Mon Dec 4 19:37:47 MST 2006
Hi all
I've had to place my client's navigation system into my FX.php
solution (which is one part of their whole site). Their navigation
uses an imagemap that displays submenus via javascript (I did not
develop this). I've put their image, imagemap coding, and javascript
calls into a single include file, which I've placed into my php
files. This works fine in *most* places on my site. However...
I have one page that calls a php header in a certain situation, and
it fails (does not move to the called page) when the client's
navigation system is on the page. I've narrowed it down to the
imagemap coding itself (see below). (I tested by removing one part
at a time and seeing when the header stopped working.)
Other pages on the site call headers without problems, and the
include has another imagemap without javascript, which is also fine.
Any thoughts on how I can get my header call to work? (it just stops
on the original page instead of moving on to the called header page:
header('Location: page.php');
Here are the basics of the include page:
<script language="JavaScript1.2" src="ab_menu.js"></script>
<script language="JavaScript1.2" src="mm_menu.js"></script>
<script language="JavaScript1.2">mmLoadMenus();</script>
<div id="ab"><img src=...><img src=...></div>
---PROBLEM PART---
<map name="m_template7_r3_c1">
<area shape="rect" coords="55,595,131,612" href="#" alt=""
onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu
(window.mm_menu_1115155906_0,131,595,null,'template7_r3_c1');" >
<area shape="rect" coords="46,500,131,523" href="#" alt=""
onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu
(window.mm_menu_1115155350_1,131,500,null,'template7_r3_c1');" >
</map>
(there are actually 15 of these imagemap shapes)
---/PROBLEM PART---
<map name="template7_r1_c1Map">
<area shape="rect" coords="429,53,683,73" href="ab_purchase.html">
<area shape="rect" coords="530,84,573,109" href="index.html">
</map>
Notes:
I did place all their javascript into the <body> of the pages
(instead of some in the <head> as they'd had it), so I could keep it
all in one include file. It seems to work fine everywhere except
this one situation, but could that be relevant?
Getting them to change their navigation system is not an option :P
TIA,
-Joel
More information about the FX.php_List
mailing list