Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: topic editor deletes javascript in tracking code

  1. #1
    mc9000 is offline Member
    Join Date
    Aug 2007
    Posts
    83

    Unhappy topic editor deletes javascript in tracking code

    Is there a setting to prevent the Topic editor from deleting Javacript in ML64 version 8?
    I can't put tracking code in (for Google) as the editor keeps deleting the JavaScript portion of the topic (or any topic for that matter).
    It also puts in an annoying line break tag as well. This happens in the HTML source mode (which I'd like to completely turn off ANY modifications made by the editor, since most mods the editor makes result in bad HTML markup anyway!)

    For example, the following:

    <!-- 7Search Code for Conversion Page (start) -->
    <script language="JavaScript" type="text/javascript">
    var _7search_conversion_advid = 111111;
    var _7search_conversion_type = "purchase";
    var _7search_conversion_value = (!ORDERTOTAL!);
    </script>
    <script language="JavaScript" type="text/javascript" src="https://conversion.7search.com/conversion/v1/conversion.js"></script>
    <noscript><img width="1" height="1" border="0" src="https://conversion.7search.com/conversion/v1/?advid=111111&urlid=&type=purchase&value=(!ORDERTO TAL!)&noscript=1" /></noscript>
    <!-- 7Search Code for Conversion Page (end) -->


    Becomes:
    <br>
    <!-- 7Search Code for Conversion Page (start) -->
    <noscript><img width="1" height="1" border="0" src="https://conversion.7search.com/conversion/v1/?advid=111111&urlid=&type=purchase&value=(!ORDERTO TAL!)&noscript=1" /></noscript>
    <!-- 7Search Code for Conversion Page (end) -->

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

  3. #3
    mc9000 is offline Member
    Join Date
    Aug 2007
    Posts
    83

    Default

    No, afraid that has no effect on the editor.
    Refreshed the cache, closed the browser, rebuilt the app - still strips the JavaScript.

    I'm running the ML64 version - could that be why?

  4. #4
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Nope, that works the same in ML/64. Something's just not being done properly, that's worked the same way for a good 2 years now and works fine. Contact support if ya need to and we'll help out.

  5. #5
    mint_teoh is offline Junior Member
    Join Date
    Jul 2009
    Posts
    22

    Default Javascript tag

    Try don't put the javascript within head tag, but put it inside body tag. It will be loaded out.