Classic asp page not working in Firefox, works in IE

Thread Solved

Join Date: Oct 2009
Posts: 19
Reputation: mldardy is an unknown quantity at this point 
Solved Threads: 0
mldardy mldardy is offline Offline
Newbie Poster

Classic asp page not working in Firefox, works in IE

 
0
  #1
Oct 20th, 2009
I have a .asp page that is a map of the U.S. When you click on a state it brings up a pop menu. This page works fine on IE but not on Firefox. On Firefox when I click on the state it opens up another tab of the .asp page. How do I get this page to work in Firefox

I have included part of the code below

Here is a link to the page

http://allos.dkpierce.net/


  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
  2. <!--#include virtual="/includes/common/KT_common.asp" -->
  3. <!--#include virtual="/includes/tfi/TFI.asp" -->
  4. <!--#include virtual="/includes/tso/TSO.asp" -->
  5. <!--#include virtual="/includes/nav/NAV.asp" -->
  6. <HTML>
  7. <HEAD>
  8. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  9. <TITLE>Folotyn™ (pralatrexate) State-Specific Reimbursement Information</TITLE>
  10.  
  11. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
  12.  
  13. <LINK HREF="/dkpweb/dk_style.css" REL="stylesheet" TYPE="text/css">
  14. <STYLE>
  15. .style2 {
  16. font-size: 9
  17. }
  18. .style4 {font-size: xx-small}
  19. .style5 {
  20. font-size: 10px
  21. }
  22. </STYLE>
  23. <STYLE TYPE="text/css">
  24. #contextMenu {position:absolute; background-color:#cfcfcf;
  25. border-style:solid; border-width:1px;
  26. border-color:#EFEFEF #505050 #505050 #EFEFEF;
  27. padding:3px 10px; font-size:10pt; font-family:Arial, Helvetica;
  28. line-height:150%; visibility:hidden}
  29. .menuItem {color:black}
  30. .menuItemOn {color:white}
  31. OL {list-style-position:inside; font-weight:bold; cursor:nw-resize}
  32. LI {font-weight:normal}
  33. </STYLE>
  34.  
  35. <script type="text/javascript">
  36. function showContextMenu() {
  37. contextMenu.setCapture()
  38. contextMenu.style.pixelTop = event.clientY + document.body.scrollTop
  39. contextMenu.style.pixelLeft = event.clientX + document.body.scrollLeft
  40. contextMenu.style.visibility = "visible"
  41. event.returnValue = false
  42. }
  43.  
  44. function revert() {
  45. document.releaseCapture()
  46. hideMenu()
  47. }
  48. function hideMenu() {
  49. contextMenu.style.visibility = "hidden"
  50. }
  51. function handleClick() {
  52. var elem = window.event.srcElement
  53. if (elem.id.indexOf("menuItem") == 0) {
  54. objChild = window.open( elem.LISTTYPE + '?state=' + menuState);
  55. }
  56.  
  57. revert()
  58. event.cancelBubble = true
  59. }
  60. function highlight() {
  61. var elem = event.srcElement
  62. if (elem.className == "menuItem") {
  63. elem.className = "menuItemOn"
  64. }
  65. }
  66. function unhighlight() {
  67. var elem = event.srcElement
  68. if (elem.className == "menuItemOn") {
  69. elem.className = "menuItem"
  70. }
  71. }
  72. </script>
  73. </HEAD>
  74.  
  75. <BODY LINK="#FF6633" VLINK="#660099" >
  76. <DIV ID="contextMenu" onLoseCapture="hideMenu()" onClick="handleClick()" title="Please select from the following:"
  77. onMouseOver="highlight()" onMouseOut="unhighlight()">
  78. <SPAN ID="menuItem0" CLASS="menuItem" LISTTYPE="allosMedicare.aspx">Please select from the following:</SPAN><BR>
  79. <SPAN ID="menuItem1" CLASS="menuItem" LISTTYPE="allosMedicare.aspx">Medicare</SPAN><BR>
  80. <SPAN ID="menuItem2" CLASS="menuItem" LISTTYPE="allosMedicaid.aspx">Medicaid</SPAN><BR>
  81. <SPAN ID="menuItem3" CLASS="menuItem" LISTTYPE="mcoAllos.asp">Commercial Payers</SPAN><BR>
  82. <SPAN ID="menuItem4" CLASS="menuItem" LISTTYPE="allosContacts.aspx">Contacts</SPAN><BR>
  83. </DIV>
  84.  
  85. <TABLE cellpadding="5" cellspacing="5" class="KT_tngtable">
  86.  
  87. <TR>
  88. <TD COLSPAN="2"><img src="images/allosMap.jpg" border="0" usemap="#ABMAC">
  89. <map name="ABMAC" id="usaMap">
  90. <area shape="RECT" coords="557,208,573,224" href="" onClick="menuState='RI';return showContextMenu('RI');" target="_blank" >
  91. <area shape="POLY" coords="320,151,319,179,316,216,366,218,349,195,356,178,375,161,335,149" href="" onClick="menuState='MN';return showContextMenu('MN');" target="_blank" >
  92. <area shape="POLY" coords="409,241,433,241,434,276,408,291" href="" onClick="menuState='IN';return showContextMenu('IN');" target="_blank" >
  93. <area shape="POLY" coords="439,331,462,325,484,356,484,375,450,378" href="" onClick="menuState='GA';return showContextMenu('GA');" target="_blank" >
  94. <area shape="POLY" coords="334,261,366,259,376,268,389,302,388,313,378,310,340,309,335,268" href="" onClick="menuState='MO';return showContextMenu('MO');" target="_blank" >
  95. <area shape="POLY" coords="406,332,411,381,445,375,438,327" href="" onClick="menuState='AL';return showContextMenu('AL');" target="_blank" >
  96. <area shape="POLY" coords="18,428,7,527,128,503,74,431" href="" onClick="menuState='AK';return showContextMenu('AK');" target="_blank" >
  97. <area shape="POLY" coords="138,291,128,343,174,368,186,302" href="" onClick="menuState='AZ';return showContextMenu('AZ');" target="_blank" >
  98. <area shape="POLY" coords="341,314,344,359,375,357,387,317" href="" onClick="menuState='AR';return showContextMenu('AR');" target="_blank" >
  99. <area shape="POLY" coords="200,247,191,295,258,304,263,256" href="" onClick="menuState='CO';return showContextMenu('CO');" target="_blank" >
  100. ..
  101. </map></TD>
  102. </TR>
  103. </TABLE>
  104.  
  105. </BODY>
  106. </HTML>
Last edited by mldardy; Oct 20th, 2009 at 1:21 pm.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 178
Reputation: codejoust is an unknown quantity at this point 
Solved Threads: 18
codejoust's Avatar
codejoust codejoust is offline Offline
Junior Poster
 
0
  #2
Oct 20th, 2009
Check the javascript for getting the source, it seems to use IE-only extensions. Also, check for popup blockers, and look in the firefox error console for errors (Tools>>Error Console).
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC