944,092 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Marked Solved
  • Views: 3111
  • ASP RSS
Oct 20th, 2009
0

Classic asp page not working in Firefox, works in IE

Expand Post »
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/


ASP Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 9
Solved Threads: 0
Light Poster
mldardy is offline Offline
32 posts
since Oct 2009
Oct 20th, 2009
0
Re: Classic asp page not working in Firefox, works in IE
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).
Reputation Points: 18
Solved Threads: 21
Junior Poster
codejoust is offline Offline
180 posts
since Jul 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Display Random Banners
Next Thread in ASP Forum Timeline: Web pages resolution fit in window area





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC