Onclick = "parent.location = '# CustomerInformation'" работает хорошо в IE8, но не работает firefox и другой браузер

  1. GQM Идентификатор заказа: Текущий статус:

    Customer Name:
     <logic:write name="orderBean" property="customerLastName">,<logic:write name="orderBean" property="customerFirstName">
     
     Shared Customer Name:
     <logic:write name="orderBean" property="shrCustomerLastName">,<logic:write name="orderBean" property="shrCustomerFirstName"> 
    
      
    
    
     Customer
     Email:
     <logic:write name="orderBean" property="emailAddr">
     Shared Customer
     Email:
     <logic:write name="orderBean" property="shrEmailaddr">  
    
     Phone
     Number:
     <logic:write name="orderBean" property="phone">
     Shared Phone
     Number:
     <logic:write name="orderBean" property="shrPhone">     <div> <table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr><td> </td> </tr>
     </tbody> </table> </div> <div> <table cellspacing="0" cellpadding="0" border="0"> <tbody>
     <tr>
     
     
     
     
     <td valign="top" nowrap="">NPT Order:</td>
      </tr> <tr>
     <td valign="top" nowrap="">Affiliate:</td>
     
     <td valign="top" nowrap="">Affiliate
     Order ID:</td>
     
     <td valign="top" nowrap="">Fulfillment
     Type:</td>
      </tr> <tr>
     <td valign="top" nowrap="">Order
     Placed Date/Time:</td>
     
    
     <td valign="top" nowrap="">Promise
     Date/Time:</td>
     
     <td valign="top" nowrap="">Store
     Number:</td>
      </tr>
     <tr>
    
     <td valign="top" nowrap="">
     Pay Type:
     </td>
     <td valign="top" nowrap="">
     <logic:write name="orderBean" property="payType" nullvalue="<%=WAConstants.NULL_VALUE_NA%>">
     </logic:write></td>
    
    
     <td valign="top" nowrap="">
     Pod Location:
     </td>
     <td valign="top" nowrap="">
     <logic:write name="orderBean" property="podLocation" nullvalue="<%=WAConstants.NULL_VALUE_NA%>">
     </logic:write></td>
     <td valign="top" nowrap="">
     Envelope Id:
     </td>
     <td valign="top" nowrap="">
     <logic:write name="orderBean" property="envelopeId" nullvalue="<%=WAConstants.NULL_VALUE_NA%>">
     </logic:write></td>
     </tr> </tbody> </table> </div>
    
     <table> <tbody> <tr>
      </tr> </tbody> </table>
    
     <logic:notempty name="orderBean"> <table cellspacing="0" cellpadding="0"> <tbody>
     <tr>
     <td><wa:permission functionname="<%=WARequestFunctionName.DIGITALPHOTOGQM_ORDER_READ%>">
     
     </wa:permission> <logic:equal name="orderBean" property="fulfillmentTypeCd" value="<%=CodesDecodes.FULFILLMENT_TYPE_STORE%>">
     <logic:notequal name="orderBean" property="statusCd" value="<%=CodesDecodes.ORDER_STATUS_CANCELLED%>">
     <logic:notequal name="orderBean" property="statusCd" value="<%=CodesDecodes.ORDER_STATUS_SOLD%>">
     <wa:permission functionname="<%=WARequestFunctionName.DIGITALPHOTOGQM_ORDER_CANCEL%>">
     
     </wa:permission>
     </logic:notequal>
     </logic:notequal> 
     <% 
     if((String)session.getAttribute("isMobileVendor")=="true"){ %>
    
     <wa:permission functionname="<%=WARequestFunctionName.DIGITALPHOTOGQM_ORDER_RESEND%>">
     
     </wa:permission>
    
     <% } else{%> 
    
     <wa:permission functionname="<%=WARequestFunctionName.DIGITALPHOTOGQM_ORDER_RESEND%>">
     
     </wa:permission>
    
     <%}%>
    
     <wa:permission functionname="<%=WARequestFunctionName.DIGITALPHOTOGQM_ORDER_RESEND%>">
     
     </wa:permission>
    
     </logic:equal> <wa:permission functionname="<%=WARequestFunctionName.DIGITALPHOTOGQM_ORDER_ERROR_DETAIL_READ%>">
     
     </wa:permission>
     <wa:permission functionname="<%=WARequestFunctionName.DIGITALPHOTOGQM_ORDER_READ%>">
     
     </wa:permission>   
    
    
     
    
    
     </td>
     </tr> </tbody> </table> </logic:notempty>
    
     <table> <tbody> <tr>
      </tr> </tbody> </table>
    
     </logic:write></logic:write></logic:write></logic:write></logic:write></logic:write></logic:write></logic:write><div id="mainContent"><code>&lt;div id="errorText"&gt;  This is where the error goes. Way to go on
    generating an error.&lt;/div&gt; &lt;table id="tableAddress"&gt; &lt;tbody&gt; &lt;tr&gt;
     &lt;td&gt;Order Information&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;
    
     &lt;table&gt; &lt;tbody&gt; &lt;tr&gt;
      &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;
    
     &lt;table&gt; &lt;tbody&gt; &lt;tr&gt;
     &lt;td&gt;
     &lt;div&gt;
     &lt;table border="0" id="custInfoTable" bgcolor="#ffffff"&gt;
     &lt;tbody&gt;
     &lt;tr&gt;
     &lt;th&gt;WAG Customer Number:&lt;/th&gt;
     &lt;th&gt;Affiliate Customer ID:&lt;/th&gt;
     &lt;th&gt;Campaign ID:&lt;/th&gt;
     &lt;th&gt;PC+ Order ID:&lt;/th&gt;
     &lt;th&gt;Order Type:&lt;/th&gt;
     &lt;/tr&gt;
     &lt;tr id="custInfoTableR1"&gt;
     
     
     
     
     
     &lt;/tr&gt;
     &lt;tr&gt;
     &lt;th&gt;Last Four Digits of
     Credit Card:&lt;/th&gt;
     &lt;th&gt;Credit Card Expiration
     (MM/YY):&lt;/th&gt;
     &lt;th&gt;Shipping Method:&lt;/th&gt;
     &lt;th&gt;Carrier:&lt;/th&gt;
     &lt;th&gt;Tracking Number:&lt;/th&gt;
    
    
     &lt;/tr&gt;
     &lt;tr&gt;
     
     
     
     
     
    
    
     &lt;/tr&gt;
     &lt;tr bgcolor="#ffffff"&gt;
     &lt;th&gt;Created By:&lt;/th&gt;
     &lt;th&gt;Create Date/Time:&lt;/th&gt;
     &lt;th&gt;Last Updated By:&lt;/th&gt;
     &lt;th&gt;Update Date/Time:&lt;/th&gt;
     
     &lt;/tr&gt;
     &lt;tr bgcolor="#ffffff"&gt;
     
     
     
     
     
     &lt;/tr&gt;
     &lt;/tbody&gt;
     &lt;/table&gt;
     &lt;/div&gt;
     &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;
    
     &lt;table&gt; &lt;tbody&gt; &lt;tr&gt;
     &lt;td&gt;
     &lt;fieldset&gt;&lt;legend&gt;Order Items&lt;/legend&gt; &lt;logic:define id="orderItemList" name="orderBean" property="orderItemList" scope="session"&gt; &lt;wa:dbgrid id="orderItemGrid" listbean="orderItemList" cssclass="BoxedIn" indice="i"&gt;
     &lt;wa:textcolumn datafield="gqmProductId" headertext="GQM Product ID:" sortable="false" halign="left"&gt;
     &lt;wa:textcolumn datafield="productDesc" headertext="Product Description:" sortable="false" halign="left"&gt;
     &lt;wa:textcolumn datafield="productQty" headertext="Product Quantity:" sortable="false" halign="left"&gt;
     &lt;wa:textcolumn datafield="unitPrice" headertext="Unit Price:" sortable="false" halign="left" dataformat="$#,##0.00#"&gt;
     &lt;wa:textcolumn datafield="productPriceBeforeDiscount" headertext="Total Price before discount:" sortable="false" halign="left" dataformat="$#,##0.00#"&gt;
     &lt;wa:textcolumn datafield="productDiscountTotal" headertext="Total Discount:" sortable="false" halign="left" dataformat="$#,##0.00#"&gt;
     &lt;wa:textcolumn datafield="productTotal" headertext="Item Total:" sortable="false" halign="left" dataformat="$#,##0.00#"&gt;
     &lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:dbgrid&gt;
     &lt;table&gt;
     &lt;tbody&gt;
     &lt;tr&gt;
     
     &lt;/tr&gt;
     &lt;/tbody&gt;
     &lt;/table&gt;
    
     &lt;table id="referralTable"&gt;
     &lt;tbody&gt;
     &lt;tr bgcolor="#ffffff"&gt;
     
     
     
     
     
     &lt;td bgcolor="#ffffff"&gt;Sub
     Total Price:&lt;/td&gt;
     
    
     &lt;/tr&gt;
    
     &lt;tr bgcolor="#ffffff"&gt;
     
     
     
     
     
     &lt;td bgcolor="#ffffff"&gt;Total Order
     Discount:&lt;/td&gt;
     
    
     &lt;/tr&gt;
     &lt;tr bgcolor="#ffffff"&gt;
     
     
     
     
     
     &lt;td bgcolor="#ffffff"&gt;Order Freight:&lt;/td&gt;
     
    
     &lt;/tr&gt;
     &lt;tr bgcolor="#ffffff"&gt;
     
     
     
     
     
     &lt;td bgcolor="#ffffff"&gt;Order Tax:&lt;/td&gt;
     
    
     &lt;/tr&gt;
     &lt;tr bgcolor="#ffffff"&gt;
     
     
     
     
     
     &lt;td bgcolor="#ffffff"&gt;Order Total:&lt;/td&gt;
     
     &lt;/tr&gt;
     &lt;/tbody&gt;
     &lt;/table&gt;
    
     &lt;/logic:define&gt;&lt;/fieldset&gt;
     &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;
    
     &lt;table&gt; &lt;tbody&gt; &lt;tr&gt;
     &lt;td&gt;
     &lt;fieldset&gt;&lt;legend&gt;Order Promotions  &lt;/legend&gt;
     &lt;div&gt;&lt;logic:define id="orderPromotionList" name="orderBean" property="orderPromotionList" scope="session"&gt;
     &lt;wa:dbgrid id="orderPromotionGrid" listbean="orderPromotionList" cssclass="BoxedIn" indice="i"&gt;
     &lt;wa:textcolumn datafield="pluNbr" headertext="PLU Number:" sortable="false" halign="left"&gt;
     &lt;wa:textcolumn datafield="pluDesc" headertext="PLU Description:" sortable="false" halign="left"&gt;
     &lt;wa:textcolumn datafield="qtyApplied" headertext="Quantity Applied:" sortable="false" halign="left" nullvalue="&lt;%=WAConstants.NULL_VALUE_NA%&gt;"&gt;
     &lt;wa:textcolumn datafield="TotalDiscount" headertext="Total Discount:" sortable="false" halign="left" dataformat="$#,##0.00#"&gt;
     &lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:textcolumn&gt;&lt;/wa:dbgrid&gt;&lt;/logic:define&gt;&lt;/div&gt;
     &lt;/fieldset&gt;
     &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;
    
    
      &lt;table&gt;
     &lt;tbody&gt; &lt;tr&gt;
     &lt;td&gt;Customer Information&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;
    
     &lt;logic:define id="orderAddressBeanBilling" name="orderBean" property="orderAddressBeanBilling" scope="session"&gt;
     &lt;logic:define id="orderAddressBeanShipping" name="orderBean" property="orderAddressBeanShipping" scope="session"&gt;
    
     &lt;/logic:define&gt;&lt;/logic:define&gt;&lt;table&gt;
    
     &lt;tbody&gt; &lt;tr&gt;
     &lt;td&gt;
     &lt;fieldset&gt;&lt;legend&gt;Customer Address&lt;/legend&gt;
     &lt;div&gt;
     &lt;table id="table5"&gt;
     &lt;tbody&gt;
     &lt;tr&gt;
     &lt;th colspan="3"&gt;Billing Address&lt;/th&gt;
     &lt;th colspan="5"&gt;Shipping Address&lt;/th&gt;
     &lt;/tr&gt;
     &lt;tr id="table5R1"&gt;
     &lt;td colspan="3"&gt;
     &lt;div id="table5R1E2"&gt;&lt;logic:notempty name="orderAddressBeanBilling"&gt;
     &lt;logic:write name="orderAddressBeanBilling" property="lastName"&gt;
     &lt;logic:write name="orderAddressBeanBilling" property="firstName"&gt;
     &lt;/logic:write&gt;&lt;/logic:write&gt;&lt;/logic:notempty&gt;&lt;/div&gt;
    
     &lt;div id="table5R1E2"&gt;&lt;logic:notempty name="orderAddressBeanBilling"&gt;
     &lt;logic:write name="orderAddressBeanBilling" property="streetAddr"&gt;
     &lt;/logic:write&gt;&lt;/logic:notempty&gt;&lt;/div&gt;
     &lt;logic:notempty name="orderAddressBeanBilling"&gt;
     &lt;logic:write name="orderAddressBeanBilling" property="city"&gt;, &lt;logic:write name="orderAddressBeanBilling" property="state"&gt;
     &lt;logic:write name="orderAddressBeanBilling" property="zipCode"&gt;
     &lt;/logic:write&gt;&lt;/logic:write&gt;&lt;/logic:write&gt;&lt;/logic:notempty&gt;
     &lt;div id="table5R2E2"&gt;&lt;logic:notempty name="orderAddressBeanBilling"&gt;
     &lt;logic:write name="orderAddressBeanBilling" property="countryCd"&gt;
     &lt;/logic:write&gt;&lt;/logic:notempty&gt;&lt;/div&gt;
     &lt;/td&gt;
     &lt;td colspan="5"&gt;
     &lt;div id="table5R1E20"&gt;&lt;logic:notempty name="orderAddressBeanShipping"&gt;
     &lt;logic:write name="orderAddressBeanShipping" property="lastName"&gt;
     &lt;logic:write name="orderAddressBeanShipping" property="firstName"&gt;
     &lt;/logic:write&gt;&lt;/logic:write&gt;&lt;/logic:notempty&gt;&lt;/div&gt;
    
     &lt;div id="table5R1E20"&gt;&lt;logic:notempty name="orderAddressBeanShipping"&gt;
     &lt;logic:write name="orderAddressBeanShipping" property="streetAddr"&gt;
     &lt;/logic:write&gt;&lt;/logic:notempty&gt;&lt;/div&gt;
     &lt;logic:notempty name="orderAddressBeanShipping"&gt;
     &lt;logic:write name="orderAddressBeanShipping" property="city"&gt;, &lt;logic:write name="orderAddressBeanShipping" property="state"&gt;
     &lt;logic:write name="orderAddressBeanShipping" property="zipCode"&gt;
     &lt;/logic:write&gt;&lt;/logic:write&gt;&lt;/logic:write&gt;&lt;/logic:notempty&gt;
     &lt;div id="table5R2E21"&gt;&lt;logic:notempty name="orderAddressBeanShipping"&gt;
     &lt;logic:write name="orderAddressBeanShipping" property="countryCd"&gt;
     &lt;/logic:write&gt;&lt;/logic:notempty&gt;&lt;/div&gt;
     &lt;/td&gt;
     &lt;/tr&gt;
     &lt;/tbody&gt;
     &lt;/table&gt;
     &lt;/div&gt;
     &lt;/fieldset&gt;
     &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;</code> <p> Я пробовал как window.location, document.location, любым способом. Bt dnt знает, что такое ошибка. "#CustomerInformation" обозначает точку, в которой этот скрипт будет переходить на ту же страницу, но не работает firefox.</p></div>
1 ответ

использование

<a href="#CustomerInformation" target="_blank"><button>Customer Details</button></a>

Его глупо привлекать Javascript во что-то такое простое.

Как указывает Pointy, это может быть действительно недействительным. Но это лучше, чем вы делаете.

Действительно, это должно быть

<a href="#CustomerInformation" target="_blank">Customer Details</a>

licensed under cc by-sa 3.0 with attribution.