Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pickels 75 posts 108 karma points
    Aug 01, 2010 @ 15:49
    Pickels
    0

    Macro: Javascript errors when using contentTree as parameter.

    I get two Javascript errors when I use the contentTree parameter. The errors happen when I try to insert the macro inside a template or rich editor.

    This is how I create my macro:

    • Create new Python file
    • Create macro
    • Tell the macro to use the Python file
    • Go to template
    • Insert macro

    That's when this error happens:

    error: missing ; before statement
    sourcefile: http://localhost:666/umbraco/dialogs/editMacro.aspx?objectId=ctl00_body_editorSource&rndo=0.8
    line: 259, Kolom: 20
    sourcecode:
                    var mc_ctl00_body_Parent node = new Umbraco.Controls.TreePicker('ctl00_body_Parent node','Choose Content','ctl00_body_Parent node_ContentIdValue','ctl00_body_Parent node_title','/umbraco/dialogs/treepicker.aspx?rnd=1d5e531d53f647c9854d47c8
    

    The next one happens when I click on the 'choose...' link to pick the contentTree.

    error: missing ; before statement
    sourcefile: javascript:mc_ctl00_body_Parent%20node.LaunchPicker();
    line: 1
    sourcecode:
    mc_ctl00_body_Parent node.LaunchPicker();
    

    Anybody know how I can prevent this? I had the exact same error yesterday with a simular project.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies