12 Replies Latest reply on Jan 23, 2012 11:09 AM by Peter Grainge

    Conditional Build Tags automatically appearing

    JaredHess Level 1

      I'm running RH 9.0.2.271 on Win 7, 64 bit machine.

       

      I have this procedure in the WYSIWYG editor, and I want to mark the yellow icon (highlighted in yellow below) with the Online conditional build tag (green hash highlight):

      1-9-2012 1-14-14 PM.jpg

       

      So, I select that CBT, and so far everything looks fine in the WYSIWYG editor.

      1-9-2012 1-14-52 PM.jpg

      However, if I go to the HTML editor to check the HTML and then go back to the WYGIWYG editor, it's screwed up and looks like this:

      1-9-2012 1-20-29 PM.jpg

      Notice that the conditional online text is automatically covering steps 4 and 5 in the procedure. I thought this bug was supposedly exterminated in build 9.0.1, but seems to be happening... for me anyway. Any solutions to this? I've tried numerous ways of applying the CBT to that icon and it still ends up spanning the following two paragaphs.

        • 1. Re: Conditional Build Tags automatically appearing
          JaredHess Level 1

          Hmmm. Wait a second. I just fixed the topic up again (for the umpteenth time) and this last time instead of going to the HTML editor and back again, I decided to close down and reopen the topic in the WYSIWYG editor. Now if I go to HTML editor and back again the topic looks fine. So... go figure.

          • 2. Re: Conditional Build Tags automatically appearing
            Anjaneai Srivastava Adobe Employee

            Hello again ,

             

            Thais one looks Strange.

             

            I need to test this one out to understand this behavior.Though you have found a work around, but I would prefer to understand the reason (with your help).

             

            I assume that you do not make any changes to any content or tag when you go to HTML view, Right?

             

            Is this behaviour replicable one other topics of your project?

             

            Can you share the HTML of this topic?

             

            One important question, is this the same project generated by decompiling the CHM file ?

             

             

            Thanks,

            Anjaneai

            • 3. Re: Conditional Build Tags automatically appearing
              Captiv8r Adobe Community Professional & MVP

              Hi Jared

               

              One thing I notice is that in each case you are tagging what appears to be a script. This is indicated by the red square. So I'm thinking that perhaps RoboHelp is maybe getting confused by the script tags. That would seem to explain why suddenly everything up to the second script is getting tagged.

               

              Just a thought... Rick

               

              Helpful and Handy Links

              RoboHelp Wish Form/Bug Reporting Form

              Begin learning RoboHelp HTML 7, 8 or 9 within the day!

              Adobe Certified RoboHelp HTML Training

              SorcerStone Blog

              RoboHelp eBooks

              • 4. Re: Conditional Build Tags automatically appearing
                JaredHess Level 1

                Anjaneai Srivastava wrote:

                 

                I assume that you do not make any changes to any content or tag when you go to HTML view, Right?

                 

                Correct. I just switched from one view and then back. But even when I made changes in the HTML editor, it came back in WYSIWYG. The HTML for the entire topic is quite long, but here's the bit in question, at least after the workaround:

                 

                <li class="p-BodyText"><p class="BodyText">Access the <b>Auto Feature</b>
                dialog box (<b>Insert | Feature | Auto<span style="font-weight: normal;">)</span></b>
                <script language="VBScript" style="x-condition: Online;" type="text/javascript">//<![CDATA[

                On Error Resume Next

                MenuStr = MapCtrl.GetHelpMap(26007) ' ID_INSERT_AUTO_CIRCLE

                //]]></script><?rh-cbt_start condition="Online" ?><a

                href="javascript://" onclick="MyRoadMap(MenuStr, 'no', event.screenX, event.screenY)"><?rh-cbt_start condition="Online" ?><img
                src="../images/i_chiclet.gif" alt="Display Menu Roadmap" title="Display Menu Roadmap"
                width="14" height="14" border="0" /><?rh-cbt_end ?></a><?rh-cbt_end ?><?rh-cbt_start condition="Online" ?>
                <?rh-cbt_end ?>for either circle or cylinder auto features.</p></li>
                <li class="p-BodyText"><p class="BodyText">With the dialog box open,
                click the mouse, and drag a box around those feature types for which
                you want to create auto features. Release the mouse button. PC-DMIS
                will display the <span class="hcp4">CAD Select</span> dialog box,
                showing the number of objects selected.</p></li>
                <li class="p-BodyText"><p class="BodyText">Click <span class="hcp4">Create</span>.
                Based on the objects selected PC-DMIS will generate multiple auto
                features of the selected type.</p></li>

                </ol>

                <?rh-cbt_start condition="Online" ?><p class="BodyText"><a class="dropspot"

                href="javascript:TextPopup(this)"
                id="a21"><?rh-cbt_start condition="Online" ?><img
                src="../i_blue.jpg" alt="See a brief demo on box selecting and creating multiple auto features"
                title="See a brief demo on box selecting and creating multiple auto features"
                style="border: none;" width="30" height="30" border="0" /><?rh-cbt_end ?></a><script
                type="text/javascript" language="JavaScript1.2">//<![CDATA[

                 

                 

                Anjaneai Srivastava wrote:

                 

                Is this behaviour replicable one other topics of your project?

                 

                I certainly hope not. It's a very large project (2700+ topics) so finding the issue again while likely is going to be a bit of a pain. However, I will be testing it soon. If I find anything, I'll let you know.

                 

                 

                Anjaneai Srivastava wrote:

                 

                One important question, is this the same project generated by decompiling the CHM file ?

                 

                No. This is my original English project and was converted from RH 7.

                • 5. Re: Conditional Build Tags automatically appearing
                  JaredHess Level 1

                  Sorry about the tables in the code above. That's just how it posted for some reason. Not sure why.

                  • 6. Re: Conditional Build Tags automatically appearing
                    JaredHess Level 1

                    Captiv8r wrote:

                     

                    Hi Jared

                     

                    One thing I notice is that in each case you are tagging what appears to be a script. This is indicated by the red square. So I'm thinking that perhaps RoboHelp is maybe getting confused by the script tags. That would seem to explain why suddenly everything up to the second script is getting tagged.

                     

                    Just a thought... Rick

                     

                     

                    Rick, it's possible. A script is embedded in the image, so that when it's clicked on, a javascript is launched.

                    • 7. Re: Conditional Build Tags automatically appearing
                      JaredHess Level 1

                      Anjaneai Srivastava wrote:

                       

                      Hello again ,

                       

                      Thais one looks Strange.

                       

                      I need to test this one out to understand this behavior.Though you have found a work around, but I would prefer to understand the reason (with your help).

                       

                      I assume that you do not make any changes to any content or tag when you go to HTML view, Right?

                       

                      Is this behaviour replicable one other topics of your project?

                       

                      Can you share the HTML of this topic?

                       

                      One important question, is this the same project generated by decompiling the CHM file ?

                       

                       

                      Thanks,

                      Anjaneai

                       

                      Anjaneai, it's happening again on a separate help topic.

                       

                      1-10-2012 11-10-53 AM.jpg

                       

                      I sent you a private message with info on how to download and access the project. The bad thing about this topic is my workaround described above doesn't seem to work. I tried removing online cbt, saving the topic, closing it down. When I reopen the topic the bad cbt is still visible. So not sure how to resolve this.

                      • 8. Re: Conditional Build Tags automatically appearing
                        JaredHess Level 1

                        So, does anyone know if a way to get around this problem? My above workaround (where I saved my changes to the topic after removing the conditional text and then closed down the topic) doesn't seem to work in all cases.

                         

                        Also is there a way to submit this bug to Adobe so it gets on their radar?

                        • 9. Re: Conditional Build Tags automatically appearing
                          Captiv8r Adobe Community Professional & MVP

                          Jared, each time I post there is usually a link to the Bug Reporting form in my sig lines.

                           

                          Cheers... Rick

                           

                          Helpful and Handy Links

                          RoboHelp Wish Form/Bug Reporting Form

                          Begin learning RoboHelp HTML 7, 8 or 9 within the day!

                          Adobe Certified RoboHelp HTML Training

                          SorcerStone Blog

                          RoboHelp eBooks

                          • 10. Re: Conditional Build Tags automatically appearing
                            JaredHess Level 1

                            Thanks Rick. I've submitted a bug report.

                            • 11. Re: Conditional Build Tags automatically appearing
                              JaredHess Level 1

                              Btw, here's the response I got back from support on this issue, in case anyone else is struggling with it:

                               

                              Thanks for reporting the issue. It is reproducible and our engineering team will look into the issue.

                               

                              You can use any of the below listed workarounds:

                               

                              - CBT can be applied to complete paragraph, it doesn't create any problem with that, so, you can create two paragraphs with same content and one with Script and another without script and can apply the CBT to complete paragraph accordingly.

                               

                              - Instead of using script tag, you can use onLoad event in the <a> tag itself.

                               

                              - Instead of applying CBT on script tag, you can enclose the code with <a> tag within a <span> tag with some id and then can write the same script somewhere else in page with reference to span tag. E.g. <? rh-cbt_start condition="Online" ?><span id="script1"><a href="javascript://" onclick=""/></span><?rh-cbt_end ?>

                               

                              - You can handle the conditional display through script only.

                               

                              • 12. Re: Conditional Build Tags automatically appearing
                                Peter Grainge Adobe Community Professional (Moderator)

                                Thanks for posting that response.

                                 


                                See www.grainge.org for RoboHelp and Authoring tips

                                 

                                @petergrainge