11 Replies Latest reply on Jun 28, 2006 2:26 PM by tcstein

    HTML tags not working in layers

    tcstein
      I am having trouble with inserting HTML tags in my layers in DW8. In DW7 I didn't have any problems, but recently I upgraded to DW8 and it now no longer works. Here is the code I have been placing in the layers.

      <br><center><font color=ffffff> <font size=5><strong>Correct!</strong></font>
      <br><br><font size=3>Click next to continue.

      I appeared corrently in DW7, but not shows up exactly like it appears above in my layer in DW8.

      Any suggestions?
        • 1. Re: HTML tags not working in layers
          Level 7
          Could have something to do with the nasty value of that code!

          Try this -

          <p style="text-align:center;font-size:medium;"><strong>Correct</strong></p>
          <p style="text-align:center;font-size:small;">Click next to continue</p>

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.dreamweavermx-templates.com - Template Triage!
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
          ==================


          "tcstein" <webforumsuser@macromedia.com> wrote in message
          news:e7u14j$4t0$1@forums.macromedia.com...
          >I am having trouble with inserting HTML tags in my layers in DW8. In DW7 I
          > didn't have any problems, but recently I upgraded to DW8 and it now no
          > longer
          > works. Here is the code I have been placing in the layers.
          >
          > <br><center><font color=ffffff> <font size=5> Correct!</font>
          > <br><br><font size=3>Click next to continue.
          >
          > I appeared corrently in DW7, but not shows up exactly like it appears
          > above in
          > my layer in DW8.
          >
          > Any suggestions?
          >


          • 2. Re: HTML tags not working in layers
            tcstein Level 1
            Murray *ACE*,

            Thanks for the code. Unfortunately it didn't work. I think maybe because I didn't explain my problem well enough. My fault.

            I mainly develop on line training using DW with the templates that we have set up. We then use Coursebuilder Interaction for our quizzes/tests. I am currently using layers for feedback after the user chooses an answer. I use the "Set Text of Layer" option in Coursebuilder for using the layer as that feedback option.

            In the "New HTML" filed in "Set Test of Layer" is where I place the code. This is where my problem with the HTML code is.

            Any other suggestions?

            Thanks
            • 3. Re: HTML tags not working in layers
              Level 7
              Show me the code that results when you apply that STOL behavior, please.

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.dreamweavermx-templates.com - Template Triage!
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
              ==================


              "tcstein" <webforumsuser@macromedia.com> wrote in message
              news:e7u30i$7g8$1@forums.macromedia.com...
              > Murray *ACE*,
              >
              > Thanks for the code. Unfortunately it didn't work. I think maybe because
              > I
              > didn't explain my problem well enough. My fault.
              >
              > I mainly develop on line training using DW with the templates that we have
              > set
              > up. We then use Coursebuilder Interaction for our quizzes/tests. I am
              > currently using layers for feedback after the user chooses an answer. I
              > use
              > the "Set Text of Layer" option in Coursebuilder for using the layer as
              > that
              > feedback option.
              >
              > In the "New HTML" filed in "Set Test of Layer" is where I place the code.
              > This is where my problem with the HTML code is.
              >
              > Any other suggestions?
              >
              > Thanks
              >


              • 4. Re: HTML tags not working in layers
                tcstein Level 1
                Here ya go! This is what I see when I do a View Source in IE after the button has been clicked.

                <!--
                // Copyright 1998,1999 Macromedia, Inc. All rights reserved.
                function newG01() {
                G01 = new MM_interaction('G01',1,0,0,null,0,0,0,'','','c','',0);
                G01.add('ibtn','choice1',0,1,1,0,1,'sdhSDH');
                G01.add('ibtn','choice2',0,1,0,0,1,'sdhSDH');
                G01.add('ibtn','choice3',0,1,0,0,1,'sdhSDH');
                G01.add('ibtn','choice4',0,1,0,0,1,'sdhSDH');
                G01.init();
                G01.am('segm','Segment: Correctness_',1,0);
                G01.am('cond','Correct_01','G01.correct == true',0);
                G01.am('actn','Set Text of Layer','MM_setTextOfLayer(\'feedback\',\'\',\'&lt;p style=&quot;text-align:center;font-size:medium;&quot;&gt;&lt;strong&gt;Correct&lt;/strong &gt;&lt;/p&gt;\\n&lt;p style=&quot;text-align:center;font-size:small;&quot;&gt;Click next to continue&lt;/p&gt;\')','');
                G01.am('actn','Show-Hide Layers','MM_showHideLayers(\'feedback\',\'\',\'show\')','');
                G01.am('end');
                G01.am('cond','Incorrect_','G01.correct == (false)',0);
                G01.am('actn','Set Text of Layer','MM_setTextOfLayer(\'feedback\',\'\',\'I\\\'m sorry that\\\'s incorrect. Please try again.\')','');
                G01.am('actn','Show-Hide Layers','MM_showHideLayers(\'feedback\',\'\',\'show\')','');
                G01.am('end');
                G01.am('cond','Unknown Response_','G01.knownResponse == false',0);
                G01.am('actn','Popup Message','MM_popupMsg(\'This should never appear. If it does, please contact the I/S Help Desk at ext. 31111.\')','');
                G01.am('end');
                }
                if (window.newG01 == null) window.newG01 = newG01;
                if (!window.MM_initIntFns) window.MM_initIntFns = ''; window.MM_initIntFns += 'newG01();';
                //-->

                Is this what you are after?
                • 5. Re: HTML tags not working in layers
                  Level 7
                  What on earth is that? Which version of DW are you using?

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.dreamweavermx-templates.com - Template Triage!
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                  ==================


                  "tcstein" <webforumsuser@macromedia.com> wrote in message
                  news:e7u4ei$9ea$1@forums.macromedia.com...
                  > Here ya go! This is what I see when I do a View Source in IE after the
                  > button
                  > has been clicked.
                  >
                  > <!--
                  > // Copyright 1998,1999 Macromedia, Inc. All rights reserved.
                  > function newG01() {
                  > G01 = new MM_interaction('G01',1,0,0,null,0,0,0,'','','c','',0);
                  > G01.add('ibtn','choice1',0,1,1,0,1,'sdhSDH');
                  > G01.add('ibtn','choice2',0,1,0,0,1,'sdhSDH');
                  > G01.add('ibtn','choice3',0,1,0,0,1,'sdhSDH');
                  > G01.add('ibtn','choice4',0,1,0,0,1,'sdhSDH');
                  > G01.init();
                  > G01.am('segm','Segment: Correctness_',1,0);
                  > G01.am('cond','Correct_01','G01.correct == true',0);
                  > G01.am('actn','Set Text of
                  > Layer','MM_setTextOfLayer(\'feedback\',\'\',\'<p
                  > style='text-align:center;font-size:medium;'><strong>Correct</strong></p>\\n<p
                  > style='text-align:center;font-size:small;'>Click next to
                  > continue</p>\')','');
                  > G01.am('actn','Show-Hide
                  > Layers','MM_showHideLayers(\'feedback\',\'\',\'show\')','');
                  > G01.am('end');
                  > G01.am('cond','Incorrect_','G01.correct == (false)',0);
                  > G01.am('actn','Set Text of
                  > Layer','MM_setTextOfLayer(\'feedback\',\'\',\'I\\\'m sorry that\\\'s
                  > incorrect.
                  > Please try again.\')','');
                  > G01.am('actn','Show-Hide
                  > Layers','MM_showHideLayers(\'feedback\',\'\',\'show\')','');
                  > G01.am('end');
                  > G01.am('cond','Unknown Response_','G01.knownResponse == false',0);
                  > G01.am('actn','Popup Message','MM_popupMsg(\'This should never appear.
                  > If
                  > it does, please contact the I/S Help Desk at ext. 31111.\')','');
                  > G01.am('end');
                  > }
                  > if (window.newG01 == null) window.newG01 = newG01;
                  > if (!window.MM_initIntFns) window.MM_initIntFns = '';
                  > window.MM_initIntFns
                  > += 'newG01();';
                  > //-->
                  >
                  > Is this what you are after?
                  >


                  • 6. Re: HTML tags not working in layers
                    tcstein Level 1
                    I am working in DW8.0.1 What I sent you was the code that is inside the page in the Coursebilder interaction where the STOL is telling the layer to display the code you sent me.
                    • 7. Re: HTML tags not working in layers
                      tcstein Level 1
                      I am working in DW8.0.1 What I sent you was the code that is inside the page in the Coursebilder interaction where the STOL is telling the layer to display the code you sent me.
                      • 8. Re: HTML tags not working in layers
                        Level 7
                        Oh. And what happens when you view that page?

                        --
                        Murray --- ICQ 71997575
                        Adobe Community Expert
                        (If you *MUST* email me, don't LAUGH when you do so!)
                        ==================
                        http://www.dreamweavermx-templates.com - Template Triage!
                        http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                        http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                        http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                        ==================


                        "tcstein" <webforumsuser@macromedia.com> wrote in message
                        news:e7uid6$rko$1@forums.macromedia.com...
                        >I am working in DW8.0.1 What I sent you was the code that is inside the
                        >page in the Coursebilder interaction where the STOL is telling the layer to
                        >display the code you sent me.


                        • 9. Re: HTML tags not working in layers
                          tcstein Level 1
                          When I view the page, it looks fine until I select the correct answer, then the layer appears with the HTML code exactly as I entered it in the STOL, New HTML field. It looks like this:

                          p style="text-align:center;font-size:medium;"><strong>Correct</strong></p> <p style="text-align:center;font-size:small;">Click next to continue</p>

                          Any thoughts?
                          • 10. Re: HTML tags not working in layers
                            Level 7
                            It's not likely I'll be able to help since I'm not familiar with the
                            codebase you are using, but can you post a link to the page itself?

                            --
                            Murray --- ICQ 71997575
                            Adobe Community Expert
                            (If you *MUST* email me, don't LAUGH when you do so!)
                            ==================
                            http://www.dreamweavermx-templates.com - Template Triage!
                            http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                            http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                            http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                            ==================


                            "tcstein" <webforumsuser@macromedia.com> wrote in message
                            news:e7upj0$743$1@forums.macromedia.com...
                            > When I view the page, it looks fine until I select the correct answer,
                            > then the
                            > layer appears with the HTML code exactly as I entered it in the STOL, New
                            > HTML
                            > field. It looks like this:
                            >
                            > p style="text-align:center;font-size:medium;"> Correct</p> <p
                            > style="text-align:center;font-size:small;">Click next to continue</p>
                            >
                            > Any thoughts?
                            >


                            • 11. Re: HTML tags not working in layers
                              tcstein Level 1
                              I actually can't send a link to the site, since it is propriety information. Can I send you a screen shot in the form of a .gif to your direct e-mail?