cancel
Showing results for 
Search instead for 
Did you mean: 

SIM Payment form footer won't save but works in sandbox. Javascript problem?

I have a footer in my sandbox that loads a 1x1 image, and uses an onLoad to run javascript that customizes the feel of the SIM payment form. This has been working in my developer sandbox for a few weeks now. I'm in the process of migrating my work from development to live. When I paste the footer into my real authnet account, the system refuses to save it. It gives the error:

The following error(s) occurred:
Header and Footer may contain invalid markup, please review the HTML and retry.

 

The exact same code is live and working in the sandbox. However if I go in to the Footer settings in my sandbox and re-save the code that is already in the box, it errors out as above.

 

Did the permitted javascript change some time after I first created my sandbox's Footer? Is there some documentation on what html/javascript is invalid for the footer and header boxes?

 

This is my code(form complained of invalid html when using "Insert Code" button):

<img src="http://domain.name/1x1.bmp" onLoad="document.getElementById('tableCustomerShippingHeading').rows[0].cells[0].innerHTML='Other Information';el=document.getElementById('trChkCopyBill');el.parentNode.removeChild(el);" />

 

 

Thank you for your assistance,

Jason Pierce

JPierce
Member
2 REPLIES 2

Look that way, I just try it. and everything with <script /> turn to <noscript />

RaynorC1emen7
Expert

My first attempt was using <script> tags, and like your experiment I found they got transformed into <noscript>. The onLoad trick had been working until this week. And the "existing" onLoad html in my developer account still works as well but can't be modified/updated.