Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    45
    Plugin Contributions
    0

    Default Weird javascript problem

    I have some javascript function calls in my product descriptions content.

    Now whenever I go to edit the products I always see the following text inserted around my javascript

    "function anonymous() {"

    so the html looks something like:

    function anonymous() { myFunction(param1,param2) }

    where as when I was adding the producting it only had my javascript code:

    myFunction(param1,param2)

    happens everytime, it's so annoying. has this happened to anyone else?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Weird javascript problem

    Sounds like something on your PC is filtering it to protect you from spam etc.
    Does it do the same in another browser? another PC?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2006
    Posts
    45
    Plugin Contributions
    0

    Default Re: Weird javascript problem

    It happens in all 3 computers I have used

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Weird javascript problem

    Turn off the HTMLarea editor and just edit using raw content. It's always much safer that way. HTMLarea does weird things to your content...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 Problem with products images showing and not showing after refresh weird problem
    By kobiadato in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Sep 2016, 08:45 PM
  2. weird problem..
    By amart79196 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 10 Apr 2014, 03:15 AM
  3. Programming Problem...Really Weird UPS Problem
    By g2ktcf in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 3 May 2011, 08:55 PM
  4. javascript "slideshow" images loading weird
    By litepockets in forum General Questions
    Replies: 2
    Last Post: 23 Oct 2008, 12:16 PM
  5. Weird Problem
    By hamid84 in forum General Questions
    Replies: 7
    Last Post: 16 Feb 2008, 07:38 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