Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Span and Div names

    Hi, I've been getting used to Dreamweaver - I'm not much of a coder any more,
    so I am using the basics.

    I downloaded the CourseBuilder extension and have been getting some templates
    set up whilst I get familiar with it.

    I started with a multi-choice radio-button, single answer. All looks fine -
    and previews fine in IE. But I notice that the results window shows "The name
    attribute of the DIV tag is not supported. [Netscape Navigator 6.0, Netscape
    Navigator 7.0]" and a similar line for SPAN tag. There are also errors for
    "The cbi-select tag is not supported. [Microsoft Internet Explorer 5.0,
    Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0, Netscape
    Navigator 6.0, Netscape Navigator 7.0]" and "The interaction tag is not
    supported. [Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5,
    Microsoft Internet Explorer 6.0, Netscape Navigator 6.0, Netscape Navigator
    7.0]"

    This kind of worries me! Sould I be worried??

    To add to this, instead of a nasty pop-up telling me correct/incorrect I've
    created a div which has the "answer" text in it. I then get it to change layer
    text. This works fine in IE, but in Firefox it doesn't work - it comes up with
    a new page and I have to use the "back" button to get back to my question.

    Any ideas?

    Thanks.
    Mark

    MarkItVision Guest

  2. Similar Questions and Discussions

    1. Row Span in a grid?
      How can I have a column that would span 2 rows. For instance, I have 2 rows of data, the user may fill out one or both rows, then do a calculation...
    2. DataGrid (body only) contained in <span>...</span> tags
      Hi, I have a DataGrid control that displays many records. As such, I have been given a requirement to contain only the body of my DataGrid...
    3. <span>'s
      Hi, I have a link on an asp page. When the user clicks on this link I make a <span> visible. Within my span I have a series of textboxes. ...
    4. <SPAN> Tag
      I know this is not FW related, it's just a quicky anyway: I noticed that Dreamweaver sometimes applies the <SPAN> tag to my text. But at other...
    5. DIV vs SPAN
      In my quest to get my page working I'm noticing I have a choice of either <DIV> or <SPAN> tags. I'd like to use nested layers and am wondering will...
  3. #2

    Default Re: Span and Div names

    Further update on this one... looking around it seems that the "interaction
    tag" and the "cbi-select" tags are only used by Dreamweaver to know it is a
    coursebuilder interaction. I see elsewhere on the web that I should ignore
    them.

    That still leaves the div and span "name attribute" errors for me to worry
    about...

    But the more important bit is the firefox problem. So I'll detail it more now.

    If I have a simple page with a button on it and a layer (nothing else) and set
    the button behaviour for onClick to do a SetTextOfLayer to "button clicked" it
    works fine in both IE and Firefox.

    If I have a simple page with a CB radio button with no changes to it (i.e.
    just click OK to insert it as it comes), in both IE and Firefox it will popup a
    message for correct/incorrect.

    If I modify this one, insert a layer (leaving it as "Layer1") and change the
    behaviour in the interaction to SetTextOfLayer Dreamweaver creates code that
    looks like this for the "correct" answer (the incorrect answer looks similar).

    G01.am('cond','Correct_01','G01.correct == true',0);
    G01.am('actn','Set Text of
    Layer','MM_setTextOfLayer(\'Layer1\',\'\',\'%3Cp%3 EWell done - that%27s
    correct%3C/p%3E\')','');

    When I test this out in IE it works and my Layer1 changes to say "Well done -
    that's correct".

    When I test this in Firefox (1.5 - I just upgraded from 0.93 in case that was
    the problem) as I click on the radio-button the browser blanks the question out
    and goes to a screen with the text "Well done - that's correct". I have to use
    the 'back' button on the browser to reach the question again.

    Why is it behaving differently? How can I fix it? I need to be able to run
    my course on both IE and Firefox :(

    Thanks.
    Mark

    MarkItVision Guest

  4. #3

    Default Re: CourseBuilder and Set Text Of Layer problem

    I found the answer. [url]http://www.rapidintake.com/forums/topic.asp?TOPIC_ID=30[/url] it
    seems there is an older bit of one of the supporting script files. When
    updated to the new one it all works.

    ***** snip from above site *****
    The problem comes with this function in the behActions.js:

    function MM_setTextOfLayer(objName,x,newText) { //v3.0
    if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') {document.write(unescape(newText));
    document.close();}
    else innerHTML = unescape(newText);

    must be replaced by this one (used by dreamweaver mx)

    function MM_setTextOfLayer(objName,x,newText) { //v4.01
    if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText));
    document.close();}
    else innerHTML = unescape(newText);

    ***** end snip from above site *****


    MarkItVision 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