Error on Checking/Unchecking "Show"

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Error on Checking/Unchecking "Show"

    I an a designer getting ready to train my client in Contribute CS3. I have
    considerable experience with optional editable areas in DW templates and
    training clients in how to make items visible and not visible.

    However, in my current website I receive an error whenever I check or uncheck
    the Show box. (Also, I am using the MM_swapImage behavior in the top menu.)

    Format>Template Properties > either click or unclick the Show checkbox for an
    editable optional area, I receive this error message.

    *****

    While executing onLoad in Swap Image.htm, the following JavaScript error(s)
    occurred:

    At line 303 of file "C:\Program Files\Adobe]Adobe Contribute
    CS3\Configuration\Behaviors\Actions\Swap Image.js";
    TypeError: dw.getBehaviorTag is not a function

    ****

    I then have to press the OK button on the error message 5 or more times, the
    error message then disappears, and I am able to click the Publish button and
    it successfully publishes the page.

    How can I prevent this error message from appearing.


    Here's a page on the site I'm building.
    [url]http://www.sivitzdesigns.com/about.php[/url]


    Marje Guest

  2. Similar Questions and Discussions

    1. Checking "Remember Password" Does Not Work
      We have a client who is using Contribute 3.1 under Windows 98 to connect to a site hosted on our Publishing Services server. When you first start up...
    2. "Error Creating Control" and "Cast from String"
      I'm creating a custom date control. In appearance, it's just a textbox and a button. It has three custom properties: CalDate, CalDateType and...
    3. Acrobat Form Submit error: changes VALUE="true" to "0"
      I wrote an HTML page with a form. In the form I had many inputs as in: <INPUT TYPE="radio" NAME="Q1" VALUE="true"> and <INPUT TYPE="radio"...
    4. Domain does not show up as a "location" for choosing users (server 2003)
      I have a windows 2003 server. I added a new Windows 2003 server as a member server. However when I try to set permissions on a folder on this 2003...
    5. #12029 [Com]: "--with-apxs" can cause the error "MySQL: Unable to save result set in"
      ID: 12029 Comment by: sietzepost at streetwisedd dot nl Reported By: root at byone dot com Status: Bogus Bug...
  3. #2

    Default Re: Error on Checking/Unchecking "Show"

    In "Swap Image.js" change line 303
    from: if (!dw.getBehaviorTag())
    to: if (dw.getBehaviorTag && (!dw.getBehaviorTag() ))
    and change line 306
    from: if (dw.getBehaviorElement()) selTag =
    dw.getBehaviorElement().tagName;
    to: if (dw.getBehaviorElement && dw.getBehaviorElement()) selTag =
    dw.getBehaviorElement().tagName;

    You'll have to change it on your user's computer. It's a Contribute problem,
    not a Dreamweaver problem. The complete code snippet with before and after is:
    function initializeUI(){
    var niceNameSrcArray=new Array(), nameArray, i, selTag="";
    var imgSrcArray = new Array();
    var endsWithZero = /\[0\]$/; //ref ends with [0]
    //Determine if RESTORE is an option. If not, remove UI for it
    //the dw.getBehaviorTag() check ensures the checkbox
    //is not available if a behavior is attached to a timeline

    var removeCheckbox = false;
    //david, this was: if (!dw.getBehaviorTag())
    if (dw.getBehaviorTag && (!dw.getBehaviorTag() )) //if behavior is in a
    timeline
    removeCheckbox = true;
    else {
    //david, this was: if (dw.getBehaviorElement()) selTag =
    dw.getBehaviorElement().tagName;
    if (dw.getBehaviorElement && dw.getBehaviorElement()) selTag =
    dw.getBehaviorElement().tagName;
    and then the rest of the function.

    David C Johnson Guest

  4. #3

    Default Re: Error on Checking/Unchecking "Show"

    I have the exact same issue, but with a different file being referenced. This
    is my error message:

    # #
    #
    While executing onLoad in Set Nav Bar Image.htm, the following JavaScript
    error(s) occurred:
    At line 196 of file "C:\Program Files\Adobe\Adobe Contribute
    CS3\Configuration\Behaviors\Actions\Set Nav Bar Image.js:"
    TypeError: dw.getBehaviorElement is not a function.
    #
    # #


    How do I handle that?
    Thanks in advance!

    valintrusa Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139