Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Posts
    31
    Plugin Contributions
    0

    Default Code gets automatically adjusted!

    I am having an issue when I put in
    Code:
    <input type="button" id="printButton" onclick="window.print();" value="Print these Deals" />
    it comes out (after zencart automatically redoes the code) i don't want it to rearrange my code)
    Code:
    <input type="button" id="printButton" onclick="function onclick(event) {
    
        function onclick(event) {
            window.print();
        }
    
    }" value="Print these Deals" />
    after i update my products in the admin / products

    If i preview it the print button works fine, it's as soon as i click update is when it automatically rearranges the code.

    Please help!

  2. #2
    Join Date
    Dec 2010
    Posts
    31
    Plugin Contributions
    0

    Default Re: Code gets automatically adjusted!

    Update;
    When ever I toggle between HTML source and back it adds another
    Code:
        function onclick(event) {
    
            function onclick(event) {
    
                function onclick(event) {
    
                    function onclick(event) {
    
                        function onclick(event) {
    
                            function onclick(event) {
    
                                function onclick(event) {
    
                                    function onclick(event) {
    
                                        function onclick(event) {
    why is zen cart doing this?
    Last edited by UnSub; 20 Jan 2011 at 10:16 PM. Reason: spelling

 

 

Similar Threads

  1. Admin automatically re-writes the description html code
    By NadiaUSA in forum General Questions
    Replies: 10
    Last Post: 14 Jul 2011, 01:22 PM
  2. Adjusted shipping cost for livestock.
    By Jimmythebarrel in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 25 Jun 2009, 04:56 PM
  3. Shipping adjusted after coupon discounted?
    By aeolidia in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 10 Nov 2008, 09:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg