Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML button action not working in Safari
    primarykey
    data
    text
    <p>I'm running a web page in Safar, however; I notice that when I press the save button the event doesn't fire. It works fine in IE though. I've researched the issue, and found that it's not due to a missing value attribute or single/double quote specifics. Any help would be appreciated. </p> <pre><code>&lt;input type='button' name='Save' id='saveCut' value='Save Cut' class=button onClick=\"Puma.saveTheCut()\"&gt; </code></pre> <p>JS function</p> <pre><code>Puma.saveTheCut = function () { var offerId = inStoreCut.cutOfferFields[0]; var merchId = inStoreCut.cutOfferFields[1]; var adId = inStoreCut.cutOfferFields[2]; var eventID = inStoreCut.cutOfferFields[3]; var adNum = inStoreCut.cutOfferFields[4]; var cutID = inStoreCut.cutOfferFields[5]; var merchDescription = parent.main.document.getElementById('merchDescription').value; var UPC = parent.main.document.getElementById('merchUPC').value; var nrfSampleColorObj = parent.main.document.getElementById('itemColor'); var nrfSampleColor = nrfSampleColorObj.options[nrfSampleColorObj.selectedIndex].value; var nrfsampleSubColorObj = parent.main.document.getElementById('itemChildColor'); var colorCodeStr = nrfsampleSubColorObj.options[nrfsampleSubColorObj.selectedIndex].value; var nrfsampleSubColor = colorCodeStr.substring(0, 3); var customer_Facing_Color = parent.main.document.getElementById('merchCustomerFacingColor').value; var division = parent.main.document.getElementById('merchFob').value; var deptNum = parent.main.document.getElementById('merchDept0~0').value; var vendorNum = parent.main.document.getElementById('merchVendorNum0~0').value; var pID = parent.main.document.getElementById('pID0~0').value; var regPrice = parent.main.document.getElementById('regPrice').value; var sampleSize = parent.main.document.getElementById('itemSize').value; var itemQty = parent.main.document.getElementById('itemQty').value; if (parent.main.document.getElementById('chkMerchSet').checked) { var set = "1"; } else { var set = "0"; } var sampleTypeObj = parent.main.document.getElementById("itemType"); var sampleType = sampleTypeObj.options[sampleTypeObj.selectedIndex].text; var merchColorCorrObj = parent.main.document.getElementById("merchColorCorr"); var colorCorr = merchColorCorrObj.options[merchColorCorrObj.selectedIndex].value; var merchSwatchObj = parent.main.document.getElementById("merchSwatch"); var Swatch = merchSwatchObj.options[merchSwatchObj.selectedIndex].value; var pantoneColor = parent.main.document.getElementById('merchPantone').value; var photoStylingDetails = parent.main.document.getElementById('merchPhotoStylingDetails').value; var mCOMSampleId = parent.main.document.getElementById('mCOMSample').value; var deptName = parent.main.document.getElementById('merchDeptName0~0').innerHTML; var vendorName = Puma.decoder(parent.main.document.getElementById('merchVendorName0~0').innerHTML); if (parent.main.document.getElementById('pidStatus0~0').value == "NOT IN PD") { var pidStatus = "0"; } else { var pidStatus = "1"; } var pidDescription = parent.main.document.getElementById('pidDescription').value; var webId = parent.main.document.getElementById('webID0~0').innerHTML; var vStyle = parent.main.document.getElementById('merchVStyle').value; var markStyle = parent.main.document.getElementById('merchMarkStyle').value; var subClass = parent.main.document.getElementById('Subclass').value; // var productDescription = parent.main.document.getElementById('productDescription').value; var docLineitemNum = parent.main.document.getElementById('merchDoc').value; var merchTurnInStatusObj = parent.main.document.getElementById("merchTurnInStatus"); var turnInStatus = merchTurnInStatusObj.options[merchTurnInStatusObj.selectedIndex].text; var reason = parent.main.document.getElementById('merchReason').value; var merchCountryOriginObj = parent.main.document.getElementById("countryOfOrigin"); var countryOfOrigin = merchCountryOriginObj.options[merchCountryOriginObj.selectedIndex].value; var importedCountry = parent.main.document.getElementById("importedCountries").value; //var importedCountry = merchImportedCountryObj.options[merchImportedCountryObj.selectedIndex].text; var fabricContent = parent.main.document.getElementById("fabricContent").value; var careInstructions = parent.main.document.getElementById("careInstructions").value; var offerDescription = parent.main.document.getElementById("offerDescription").value; var onlyAtMacysObj = parent.main.document.getElementById("onlyAtMacys"); var onlyAtMacysValue = parseInt(onlyAtMacysObj.options[onlyAtMacysObj.selectedIndex].value, 10); var onlyAtMacys = onlyAtMacysValue; var legalOneObj = parent.main.document.getElementById("legalOne"); var legalOne = legalOneObj.options[legalOneObj.selectedIndex].value; var legalOneExplain = parent.main.document.getElementById("explainLegalOne").value; var legalTwoObj = parent.main.document.getElementById("legalTwo"); var legalTwo = legalTwoObj.options[legalTwoObj.selectedIndex].value; var legalTwoExplain = parent.main.document.getElementById("explainLegalTwo").value; var legalThreeObj = parent.main.document.getElementById("legalThree"); var legalThree = legalThreeObj.options[legalThreeObj.selectedIndex].value; var legalThreeExplain = parent.main.document.getElementById("explainLegalThree").value; var legalFourObj = parent.main.document.getElementById("legalFour"); var legalFour = legalFourObj.options[legalFourObj.selectedIndex].value; var fiftyObj = parent.main.document.getElementById("overFifty"); var fifty = fiftyObj.options[fiftyObj.selectedIndex].value; var userId = parent.botnav.uinfo.userID; if (Puma.btiRequiredFieldIsValidated() == true) { if (inStoreCut.existingRecord == false) { sql = "action=saveMerchFormForCut&amp;cutID=" + cutID + //sql = "action=updateMerchFormForCut&amp;cutID=" + cutID + "&amp;merchDescription=" + encodeURIComponent(merchDescription) + "&amp;UPC=" + UPC + "&amp;nrfSampleColor=" + nrfSampleColor + "&amp;nrfSampleSubColor=" + nrfsampleSubColor + "&amp;division=" + encodeURIComponent(division) + "&amp;deptNum=" + deptNum + "&amp;merchVendorNum=" + vendorNum + "&amp;pID=" + pID + "&amp;Customer_Facing_Color=" + encodeURIComponent(customer_Facing_Color) + "&amp;regPrice=" + regPrice + "&amp;sampleSize=" + encodeURIComponent(sampleSize) + "&amp;itemQty=" + itemQty + "&amp;set=" + set + "&amp;sampleType=" + sampleType + "&amp;colorCorr=" + colorCorr + "&amp;Swatch=" + Swatch + "&amp;pantoneColor=" + encodeURIComponent(pantoneColor) + "&amp;photoStylingDetails=" + encodeURIComponent(photoStylingDetails) + "&amp;mCOMSampleId=" + mCOMSampleId + "&amp;deptName=" + deptName + "&amp;vendorName=" + encodeURIComponent(vendorName) + "&amp;pidStatus=" + pidStatus + "&amp;pidDescription=" + pidDescription + "&amp;webId=" + webId + "&amp;vStyle=" + vStyle + "&amp;markStyle=" + markStyle + "&amp;subClass=" + subClass + "&amp;docLineItemNum=" + docLineitemNum + "&amp;merchTurnInStatus=" + turnInStatus + "&amp;reason=" + encodeURIComponent(reason) + "&amp;countryOfOrigin=" + countryOfOrigin + "&amp;importedCountry=" + importedCountry + "&amp;fabricContent=" + encodeURIComponent(fabricContent) + "&amp;careInstructions=" + encodeURIComponent(careInstructions) + "&amp;offerDescription=" + encodeURIComponent(offerDescription) + "&amp;onlyAtMacys=" + onlyAtMacys + "&amp;legalOne=" + legalOne + "&amp;legalOneExplain=" + legalOneExplain + "&amp;legalTwo=" + legalTwo + "&amp;legalTwoExplain=" + legalTwoExplain + "&amp;legalThree=" + legalThree + "&amp;legalThreeExplain=" + legalThree + "&amp;legalFour=" + legalFour + "&amp;fifty=" + fifty + "&amp;createdBy=" + userId var ajaxMaster = new AjaxMaster(sql, "Puma.saveMerchFormForCutData(data)", "", "btiDispatcher.aspx"); sql = "action=updateMerchFormForCut&amp;sql=" + encodeURIComponent(msql); objAjaxAd.main_flag = "updateMerchFormForCut"; objAjaxAd.SendQuery(sql); // "[t0].[signedByUserID]," + // "[t0].[signedStatus]," + //"[t0].[dateSigned]," + //"[t0].[signedLastByUserID]," + //"[t0].[dateLastSigned1]," + //"[t0].[signedLastStatus]" + // var ajaxMaster = new AjaxMaster(sql, "Puma.updateMerchFormForCutData(data)", "", "puma_core.aspx"); } else { sql = "action=updateMerchFormForCut&amp;cutID=" + cutID + "&amp;offerId" + offerId + "&amp;merchId" + merchId + "&amp;adID" + adId + "&amp;eventID" + eventID + "&amp;adNum" + adNum + "&amp;merchDescription=" + encodeURIComponent(merchDescription) + "&amp;UPC=" + UPC + "&amp;nrfSampleColor=" + nrfSampleColor + "&amp;nrfSampleSubColor=" + nrfsampleSubColor + "&amp;division=" + encodeURIComponent(division) + "&amp;deptNum=" + deptNum + "&amp;merchVendorNum=" + vendorNum + "&amp;pID=" + pID + "&amp;Customer_Facing_Color=" + encodeURIComponent(customer_Facing_Color) + "&amp;regPrice=" + regPrice + "&amp;sampleSize=" + encodeURIComponent(sampleSize) + "&amp;itemQty=" + itemQty + "&amp;set=" + set + "&amp;sampleType=" + sampleType + "&amp;colorCorr=" + colorCorr + "&amp;Swatch=" + Swatch + "&amp;pantoneColor=" + encodeURIComponent(pantoneColor) + "&amp;photoStylingDetails=" + encodeURIComponent(photoStylingDetails) + "&amp;mCOMSampleId=" + mCOMSampleId + "&amp;deptName=" + deptName + "&amp;vendorName=" + encodeURIComponent(vendorName) + "&amp;pidStatus=" + pidStatus + "&amp;pidDescription=" + pidDescription + "&amp;webId=" + webId + "&amp;vStyle=" + vStyle + "&amp;markStyle=" + markStyle + "&amp;subClass=" + subClass + "&amp;docLineItemNum=" + docLineitemNum + "&amp;merchTurnInStatus=" + turnInStatus + "&amp;reason=" + encodeURIComponent(reason) + "&amp;countryOfOrigin=" + countryOfOrigin + "&amp;importedCountry=" + importedCountry + "&amp;fabricContent=" + encodeURIComponent(fabricContent) + "&amp;careInstructions=" + encodeURIComponent(careInstructions) + "&amp;offerDescription=" + encodeURIComponent(offerDescription) + "&amp;onlyAtMacys=" + onlyAtMacys + "&amp;legalOne=" + legalOne + "&amp;legalOneExplain=" + legalOneExplain + "&amp;legalTwo=" + legalTwo + "&amp;legalTwoExplain=" + legalTwoExplain + "&amp;legalThree=" + legalThree + "&amp;legalThreeExplain=" + legalThree + "&amp;legalFour=" + legalFour + "&amp;fifty=" + fifty + //"&amp;createdBy=" + userId "&amp;offerId=" + offerId + "&amp;merchId=" + merchId + "&amp;adID=" + adId + "&amp;eventID=" + eventID + "&amp;adNum=" + adNum var ajaxMaster = new AjaxMaster(sql, "Puma.updateMerchFormForCutData(data)", "", "btiDispatcher.aspx"); sql = "action=updateMerchFormForCut&amp;sql=" + encodeURIComponent(msql); //objAjaxAd.SendQuery(sql); // "[t0].[signedByUserID]," + // "[t0].[signedStatus]," + //"[t0].[dateSigned]," + //"[t0].[signedLastByUserID]," + //"[t0].[dateLastSigned1]," + //"[t0].[signedLastStatus]" + objAjaxAd.main_flag = "updateMerchFormForCutData"; objAjaxAd.SendQuery(sql); //var ajaxMaster = new AjaxMaster(sql, "Puma.updateMerchFormForCutData(data)", "", "puma_core.aspx"); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload