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> <div id="errorText">  This is where the error goes. Way to go on
    generating an error.</div> <table id="tableAddress"> <tbody> <tr>
     <td>Order Information</td> </tr> </tbody> </table>
    
     <table> <tbody> <tr>
      </tr> </tbody> </table>
    
     <table> <tbody> <tr>
     <td>
     <div>
     <table border="0" id="custInfoTable" bgcolor="#ffffff">
     <tbody>
     <tr>
     <th>WAG Customer Number:</th>
     <th>Affiliate Customer ID:</th>
     <th>Campaign ID:</th>
     <th>PC+ Order ID:</th>
     <th>Order Type:</th>
     </tr>
     <tr id="custInfoTableR1">
     
     
     
     
     
     </tr>
     <tr>
     <th>Last Four Digits of
     Credit Card:</th>
     <th>Credit Card Expiration
     (MM/YY):</th>
     <th>Shipping Method:</th>
     <th>Carrier:</th>
     <th>Tracking Number:</th>
    
    
     </tr>
     <tr>
     
     
     
     
     
    
    
     </tr>
     <tr bgcolor="#ffffff">
     <th>Created By:</th>
     <th>Create Date/Time:</th>
     <th>Last Updated By:</th>
     <th>Update Date/Time:</th>
     
     </tr>
     <tr bgcolor="#ffffff">
     
     
     
     
     
     </tr>
     </tbody>
     </table>
     </div>
     </td> </tr> </tbody> </table>
    
     <table> <tbody> <tr>
     <td>
     <fieldset><legend>Order Items</legend> <logic:define id="orderItemList" name="orderBean" property="orderItemList" scope="session"> <wa:dbgrid id="orderItemGrid" listbean="orderItemList" cssclass="BoxedIn" indice="i">
     <wa:textcolumn datafield="gqmProductId" headertext="GQM Product ID:" sortable="false" halign="left">
     <wa:textcolumn datafield="productDesc" headertext="Product Description:" sortable="false" halign="left">
     <wa:textcolumn datafield="productQty" headertext="Product Quantity:" sortable="false" halign="left">
     <wa:textcolumn datafield="unitPrice" headertext="Unit Price:" sortable="false" halign="left" dataformat="$#,##0.00#">
     <wa:textcolumn datafield="productPriceBeforeDiscount" headertext="Total Price before discount:" sortable="false" halign="left" dataformat="$#,##0.00#">
     <wa:textcolumn datafield="productDiscountTotal" headertext="Total Discount:" sortable="false" halign="left" dataformat="$#,##0.00#">
     <wa:textcolumn datafield="productTotal" headertext="Item Total:" sortable="false" halign="left" dataformat="$#,##0.00#">
     </wa:textcolumn></wa:textcolumn></wa:textcolumn></wa:textcolumn></wa:textcolumn></wa:textcolumn></wa:textcolumn></wa:dbgrid>
     <table>
     <tbody>
     <tr>
     
     </tr>
     </tbody>
     </table>
    
     <table id="referralTable">
     <tbody>
     <tr bgcolor="#ffffff">
     
     
     
     
     
     <td bgcolor="#ffffff">Sub
     Total Price:</td>
     
    
     </tr>
    
     <tr bgcolor="#ffffff">
     
     
     
     
     
     <td bgcolor="#ffffff">Total Order
     Discount:</td>
     
    
     </tr>
     <tr bgcolor="#ffffff">
     
     
     
     
     
     <td bgcolor="#ffffff">Order Freight:</td>
     
    
     </tr>
     <tr bgcolor="#ffffff">
     
     
     
     
     
     <td bgcolor="#ffffff">Order Tax:</td>
     
    
     </tr>
     <tr bgcolor="#ffffff">
     
     
     
     
     
     <td bgcolor="#ffffff">Order Total:</td>
     
     </tr>
     </tbody>
     </table>
    
     </logic:define></fieldset>
     </td> </tr> </tbody> </table>
    
     <table> <tbody> <tr>
     <td>
     <fieldset><legend>Order Promotions  </legend>
     <div><logic:define id="orderPromotionList" name="orderBean" property="orderPromotionList" scope="session">
     <wa:dbgrid id="orderPromotionGrid" listbean="orderPromotionList" cssclass="BoxedIn" indice="i">
     <wa:textcolumn datafield="pluNbr" headertext="PLU Number:" sortable="false" halign="left">
     <wa:textcolumn datafield="pluDesc" headertext="PLU Description:" sortable="false" halign="left">
     <wa:textcolumn datafield="qtyApplied" headertext="Quantity Applied:" sortable="false" halign="left" nullvalue="<%=WAConstants.NULL_VALUE_NA%>">
     <wa:textcolumn datafield="TotalDiscount" headertext="Total Discount:" sortable="false" halign="left" dataformat="$#,##0.00#">
     </wa:textcolumn></wa:textcolumn></wa:textcolumn></wa:textcolumn></wa:dbgrid></logic:define></div>
     </fieldset>
     </td> </tr> </tbody> </table>
    
    
      <table>
     <tbody> <tr>
     <td>Customer Information</td> </tr> </tbody> </table>
    
     <logic:define id="orderAddressBeanBilling" name="orderBean" property="orderAddressBeanBilling" scope="session">
     <logic:define id="orderAddressBeanShipping" name="orderBean" property="orderAddressBeanShipping" scope="session">
    
     </logic:define></logic:define><table>
    
     <tbody> <tr>
     <td>
     <fieldset><legend>Customer Address</legend>
     <div>
     <table id="table5">
     <tbody>
     <tr>
     <th colspan="3">Billing Address</th>
     <th colspan="5">Shipping Address</th>
     </tr>
     <tr id="table5R1">
     <td colspan="3">
     <div id="table5R1E2"><logic:notempty name="orderAddressBeanBilling">
     <logic:write name="orderAddressBeanBilling" property="lastName">
     <logic:write name="orderAddressBeanBilling" property="firstName">
     </logic:write></logic:write></logic:notempty></div>
    
     <div id="table5R1E2"><logic:notempty name="orderAddressBeanBilling">
     <logic:write name="orderAddressBeanBilling" property="streetAddr">
     </logic:write></logic:notempty></div>
     <logic:notempty name="orderAddressBeanBilling">
     <logic:write name="orderAddressBeanBilling" property="city">, <logic:write name="orderAddressBeanBilling" property="state">
     <logic:write name="orderAddressBeanBilling" property="zipCode">
     </logic:write></logic:write></logic:write></logic:notempty>
     <div id="table5R2E2"><logic:notempty name="orderAddressBeanBilling">
     <logic:write name="orderAddressBeanBilling" property="countryCd">
     </logic:write></logic:notempty></div>
     </td>
     <td colspan="5">
     <div id="table5R1E20"><logic:notempty name="orderAddressBeanShipping">
     <logic:write name="orderAddressBeanShipping" property="lastName">
     <logic:write name="orderAddressBeanShipping" property="firstName">
     </logic:write></logic:write></logic:notempty></div>
    
     <div id="table5R1E20"><logic:notempty name="orderAddressBeanShipping">
     <logic:write name="orderAddressBeanShipping" property="streetAddr">
     </logic:write></logic:notempty></div>
     <logic:notempty name="orderAddressBeanShipping">
     <logic:write name="orderAddressBeanShipping" property="city">, <logic:write name="orderAddressBeanShipping" property="state">
     <logic:write name="orderAddressBeanShipping" property="zipCode">
     </logic:write></logic:write></logic:write></logic:notempty>
     <div id="table5R2E21"><logic:notempty name="orderAddressBeanShipping">
     <logic:write name="orderAddressBeanShipping" property="countryCd">
     </logic:write></logic:notempty></div>
     </td>
     </tr>
     </tbody>
     </table>
     </div>
     </fieldset>
     </td> </tr> </tbody> </table> 
    </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.