Nested Span in TLF!

Hi folks...
There is problem here:
I have something like this in my RichEditableText's textFlow:
str = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'>"+"<div><tab/>" +
      "<span fontFamily='tahoma' fontSize='12' color='0xc08057'>text specific word text</span></div>"+
      "</TextFlow>";
RichEditableText.textFlow=TextConverter.importToFlow(str, TextConverter.TEXT_LAYOUT_FORMAT);
I want to use replace() func, just like this:
var myPattern:RegExp = new RegExp(TextInput.text,"gi")
str = str.replace(myPattern,"<span backgroundColor='#c17e56' color='#dec59d'>"+TextInput.text+"</span>");                    
RichEditableText.textFlow= TextConverter.importToFlow(str, TextConverter.TEXT_LAYOUT_FORMAT);
But after doing this, my specific word that I had been written in my TextInput, would'nt be appear inside of my text. I think because of another <span> in the main text. the result is something like this:
<span fontFamily='tahoma' fontSize='12' color='0xc08057'>
     text <span backgroundColor='#c17e56' color='#dec59d'>specific word</span> text
</span>
how can I fix this?!

The problem is that a TLF span doesn't map to an HTML span which does support nesting.  What's needed is
a new element - "SubParagraphGroupElement" that can have text, tlf type spans and other SubParagraphGroups as children.
One awful hack would be to turn all the outer span's into tcy's which will have no effect unless you are doing vertical text.  That gives you exactly one level of nesting - probably worse than useless.  Anyhow it would look like this:
   <p>
   <tcy fontFamily='tahoma' fontSize='12' color='0xc08057'>
        text <span backgroundColor='#c17e56' color='#dec59d'>specific word</span> text
   </tcy>
   </p>
The more people that agitate for a SubParagraphGroupElement the better.  It's a hard sell and keeps falling off the plans.
Richard

Similar Messages

  • Missing space characters before and after span element (TLF 2 with Flex 4.1)

    It seems there's a bug, I reported it at
    http://bugs.adobe.com/jira/browse/SDK-29367 .
    (I wasn't able to specify "TLF" in the "Components" dropdown, that's why I'm posting the bug report URL here in the TLF forum.)
    Tobi

    I think the problem may be that you have "ignoreWhitespace" on the XML object set to true, so the spaces at the start and end of elements are being removed. Try setting it to false.
    - robin

  • How can I "nest" CSS span tags?

    I have a piece of text to which I want to apply three successive CSS classes, making increasingly broad selections of the text.  (Or, conversely, apply to the broadest span of text and then selectively style smaller subsets of the inner text.)  Either way I try this, the "span" tags do not end up nested.
    For example, I first select a single word and apply CSS style-1 to just the one word.  Next, I select 3 words (one being the word I just styled) and apply CSS style-2 to that.  Finally, I select the entire clause, which contains the 3 styled words, and apply style-3 to that.
    The objective is to have the span tags "nest" -- but when I apply the styles in the Design view using the "Class" selector, the resulting HTML has the span tags starting and stopping for each bit of text, rather than being nested.  Rather than that, I want to end up with the effect below:
    <span class="style-1">a clause <span class="style-2">with <span class="style-3">some</span> words</span> within the clause.</span>
    I can, of course, do this by hand in the Code view but it is very time-consuming.  Is there a way to achieve this in the Design view?

    Are you attempting something like this?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Span Tag Nesting</title>
    <style type="text/css">
    .style-1 {
        font-weight:bold;
    .style-2 {
        color:green;
    .style-3 {
        font-style:italic;
    </style>
    </head>
    <body>
    <span class="style-1">a clause <span class="style-2">with <span class="style-3">some</span> words</span> within the clause.</span>
    </body>
    </html>
    I'm pretty sure you're going to be stuck adding the span tags in by hand. As far as I can tell, there's no way to get DW to nest <span> tags from within Design View. With the way span tags currently work in DW, there is no way for the program to know you want them nested or overwritten when you select an area of text in Design View.
    That might be an interesting Feature Request: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • HtmlImporter handles span incorrectly

    I have got a simple test case as following:
    <html>
    <body>
    <p>
         <span>
              <em>this is emphsize</em>
              <a href="http://cnn.com">link to cnn</a>
              and one line of text
         </span>     
    </p>
    </body>
    </html>
    Seems TextConverter.importToFlow() can't handle the nested span tag correctly, all text in <em> and <a> are removed, just the last line ("and one line of text") survived.
    The same html will display alright in both safari and firefox (on mac) which made me think this is probably a importer bug ? looks like TextFlow doesn't like nested stuff within a single span tag ?
    any idea ? thanks.

    hi Robin,
    Thanks for replying.
    I just updated to the latest textLayout.swc and give following text a try:
    var k:String = "<html><body><span>first line of text, <i>this is italic<i> and <a href='cnn.com'>a link to cnn</a>, 2nd line of text.</span></body></html>";
    and this is what I got after import it to textFlow then dump it:
      <TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">
      <p>
        <span>first line of text,</span>
        <span fontStyle="italic">this is italic and</span>
        <a fontStyle="italic" href="cnn.com" target="_self">
          <span>a link to cnn</span>
        </a>
        <span fontStyle="italic">, 2nd line of text.</span>
      </p>
    </TextFlow>
    please note the 3rd and 4th lines shouldn't be in italic, seems it inherited the italic style from the preceding line, which is not correct.

  • Creating a container

    Hi hello,
    I have been playing around with muse, i hope someone can help me with this really frustating issue. I have seen all the videos about how to create content that fits dynamically on the page but i dont find the way.
    I am trying to create a container, and putting inside content that will make bigger this container. I tried with accordions, tabbed panels, slideshows and nothing works well.
    Besides after downloading the other examples on the web of adobe, the examples of the containers have been lock and there is no way to unlock them ( even with the command " unlock all on Page") .
    Please help!!!
    Many thanks
    Victor

    Hi Victor,
    Yes, containers are attached to and dependent on the existence of their parent widget. They cannot exist as independent objects.
    However, you can do inline insertion/nesting within TextFrames.
    Place/Create content on page.
    Select the content and do Edit > Cut.
    Create/Select a TextFrame and double click to come in edit mode.
    Do Edit > Paste.
    This would place the content inside the TextFrame (inline though). You can then select the nested content and move it around using the options in Wrap panel.
    Although this gives you nested <span> elements rather than <div>.
    Also, if you are designing content that visually demonstrates the nesting - the published html output is a nested DIV structure. To keep related content together within Muse UI, you can group them together.
    Hope that helps.
    Thanks,
    Vikas

  • HTMLEditorKit changes XHTML

    Hi,
    I am wanting to change some XHTML so that within the head tag only the title element and a few script elements remain.
    I was able to do this basic task with HTMLEditorKit but sadly it changes many other things:
    1) Removes Doctype from the html - although this can easily be added back in.
    2) It only uses HTML 3.2 and not XHTML 1.0.
    3) It seems to change this HTML <span><span></span></span> to this <span></span><span></span>
    4) Self closing tag no longer close so
    becomes <br>
    5) Since the output has now been given pretty printing this extra spaces cause some nested list to render incorrectly in IE. To solve this I would like the LI or OL tag to not have any indentation or pretty printing.
    By following the idea mentioned here:
    http://forums.sun.com/thread.jspa?threadID=483199
    I was able to use a SAX parser instead of the HOTJAVA which is used by default. This allowed it to recognise and use the correct DTD. Despite this it still removes nested span tags and doesn't close the empty tags. I am also no close to understanding how I could remove pretty printing from LI or OL tags or retaining its Doctype automatically.
    I am welcome to any suggestions or ideas for how I could simply edit the HTML elements within the head tag leaving everything else alone.
    Thanks

    If you need extended editor support, consider to build your application on the NetBeans Platform and reuse its editor component. (I recommend to build "real" Swing applications on the NetBeans Platform anyway).
    http://platform.netbeans.org/
    -Puce

  • Table (div tags, extra tr td attributes) and Kadov styles

    I have an old old project to cleanup--the Kadov styles and an archaic (maybe from word import?) table formatting (hardcoded margins, nobreak) do not get replaced when I apply the paragraph styles from the .css or use the Table cell formatting to fix spacing...the HTML result contains both old format tags and new format tags, and the output looks like the old tags.
    Any quick fix ideas? Oddly my multi-level numbering works darn good! But the nested <span> tags everywhere are daunting!.

    Hi,
    You can clean up your project considerably by clicking Tools > Update DHTML effects in topics. This nifty function does more than it's name suggests. Make a backup of your project before you fun this.
    You can easily clean tables. Select the table and right click. Select 'Table style'. Check 'Clean Table Inline Formatting' and press OK.
    As for the multilevel lists, are you talking about RH's own Multilevel lists? These lists work quite well, although they aren't outputted as lists. The output is a little sloppy, but it works quite well. If you want 'real' multilevel lists, you need to use 'normal' lists and nest them. (Use the Increase Indent button for that.)
    If there is more formatting amiss, you can try a search and replace operation or a script. Beware that something like that can cripple your project in seconds. Always make a backup!
    Greet,
    Willam

  • Closing tag error

    I have an extremely broken page.
    When I validate it I get a lot of closing tag errors but I don't understand in what way I have not closed them properly as I have not had this issue before.
    Can anyone help?
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.tavcafe.com%2Fevents.php&charset=%28det ect+automatically%29&doctype=Inline&group=0

    Thanks guys, that is all really helpful, unfortunately there is a problem.
    I have just realised that when I validate the document it is including all of the code that is created through perch outside of the core document.
    as you can see from bellow many of the errors are not present because they are created somehow by perch.  I create the perch tags and templates and then I or my client enter in the information we required to be displayed within the perch admin panel and the code is automatically created, which is where those missing <ul> and <li> tags are occuring as well as the multiple nested span tags and the error on line 1139.  As you can see I do have my css in a seperate document linked as you said and my
    <doctype>
    <html>
    <head>
    is in the format you suggest.
    So how do I fix these code problems when it is autmated by Perch and there is no said document???
    The document I am working on looks like this:
    <?php include('perch/runtime.php');?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <head>
    <title>TAV Cafe - Events</title>
    <link rel="stylesheet" type="text/css" href="MyFontsWebfontsKit.css"/>
    <link rel="stylesheet" href="colorbox.css" />
    <link rel="stylesheet" href="gallery.css" />
    <link rel="stylesheet" href="events.css" />
    <style type="text/css">
    @font-face {font-family: 'CallunaSans-Regular';
    src: url('webfonts/23937E_0_0.eot');
    src: url('webfonts/23937E_0_0.eot?#iefix')
    format('embedded-opentype'),
    url('webfonts/23937E_0_0.woff')
    format('woff'),
    url('webfonts/23937E_0_0.ttf')
    format('truetype');
    body {
        background-image:url(background_image.jpg);
        background-repeat:no-repeat;
        background-color:black;
        background-attachment: scroll;
        background-position:top left;
        background-size: 1024px 800px contain;
    #hours { position:absolute;
    left:10px; top:10px;
    width:300px;
    height:30px;
    z-index:1;
    font-family: Skia, CallunaSans-Regular;
    font-size:13px;
    font-weight:bold;
    color:#a76d2f;
    line-height:140%;
    word-spacing:1px;
    #title_bar { position:absolute;
    left:0px; top:55px;
    z-index:0;
    .rollover a{
        display: block;
       text-indent: -9999px;
       margin: auto auto auto auto;
       cursor: pointer;
       outline: transparent solid 0px;
    #title a{ position:absolute;
    left:10px; top:70px;
    height:86px;
    width:325px;
    z-index:1;
    background: url('title.jpg') no-repeat left top;
    #title a:hover{
       background-position: left 0px;
    #about a{
    position: absolute;
    top: 55px; left: 440px;
    height: 50px;
    width: 128px;
    background: url('about_tab.png') no-repeat left top;
    #about a:hover{
       background-position: left -50px;
    #gallery a{
    position:absolute;
    top: 55px; left: 655px;
    height: 50px;
    width: 168px;
    background: url('gallery_tab.png') no-repeat left top;
    #gallery a:hover{
       background-position: left -50px;
    #venue a{ position:absolute;
    left:910px; top:55px;
    height: 50px;
    width:215px;
    background: url('venue_tab.png') no-repeat left top;
    #venue a:hover{
       background-position: left -50px;
    #shop a{
    position:absolute;
    left:550px; top:115px;
    height: 50px;
    width:128px;
    background: url('shop_tab.png') no-repeat left top;
    #shop a:hover{
       background-position: left -50px;
    #restaurant a{
    position:absolute;
    top: 115px; left: 770px;
    height: 50px;
    width: 190px;
    background: url('restaurant_tab.png') no-repeat left top;
    #restaurant a:hover{
       background-position: left -50px;
    #bar a{ position:absolute;
    left:350px; top:115px;
    height: 50px;
    width:120px;
    background: url('bar_tab.png') no-repeat left top;
    #bar a:hover{
       background-position: left -50px;
    #events a.events-link{ position:absolute;
    left:50px; top:180px;
    height: 50px;
    width:140px;
    background: url('events_tab.png') no-repeat left top;
    #events a.events-link:hover{
       background-position: left -50px;
    #events .events-calendar{ position:absolute;
    left:50px; top:230px;
    #pop_up_background { position:absolute;
    left:340px; top:190px;
    height:580px;
    width:650px;
    z-index:2;
    div.scroll
    background-color:transparent;
    position:absolute;
    left:380px; top:200px;
    width:600px;
    height:550px;
    z-index:3;
    font-family: Skia, CallunaSans-Regular;
    font-size:16px;
    color:#a76d2f;
    line-height:140%;
    word-spacing:1px;
    overflow:scroll;
    #contact_bar { position:absolute;
    left:0px; top:635px;
    z-index:1;
    #contact a{
    position:absolute;
    top: 640px; left:0px;
    height: 50px;
    width: 190px;
    z-index: 2;
    background: url('contact_tab.png') no-repeat left top;
    #contact a:hover{
       background-position: left -50px;
    #copyright_background { position:absolute;
    left:1020px; top:650px;
    z-index:1;
    #copyright { position:absolute;
    left:1045px; top:755px;
    font-family: Arial Black;
    font-size:14px;
    color:#340000;
    line-height:110%;
    z-index:2;
    #webdesign { position:absolute;
    left:1045px; top:660px;
    font-family: PrestigeEliM-Reg;
    font-size:18px;
    color:#340000;
    line-height:110%;
    z-index:2;
    .rollover a{
        display:block;
       text-indent:-9999px;
       margin: auto auto auto auto;
       cursor: pointer;
       outline: transparent solid 0px;
    .rollover .events-calendar a{
       display:inline;
       text-indent:-9999px;
       margin: auto auto auto auto;
       cursor: pointer;
       outline: transparent solid 0px;
    #website_link a{
    position:absolute;
    left:1020px; top:675px;
    height: 76px;
    width: 150px;
    z-index:2;
    background: url('website_link.png') no-repeat left top;
    #website_link a:hover{
       background-position: left 0px;
    #fb_icon a{ position:absolute;
    left:280px; top:650px;
    height: 36px;
    width: 36px;
    z-index:2;
    background: url('fb_icon.jpg') no-repeat left top;
    #fb_icon a:hover{
       background-position: left 0px;
    #fb-root {position:absolute;
    left:190px; top:655px;
    z-index:2;
    table.calendar {
        width:200px;
        height:200px;
        border-collapse: collapse;
        margin: 10px;
        clear: left;
        background-color:#eb5604;
    table.calendar td {
        border: 1px solid #ccc;
        vertical-align: top;
    table.calendar td.today {
        background-color:#483229;
        opacity:70%;
    table.calendar td.today span.day {
        font-weight: bold;
        color: #bc5000;
    table.calendar td.weekend {
        background-color: #483229;
    table.calendar td.notinmonth {
        border: none;
        background-color: transparent;
    table.calendar td.past {
        text-decoration: line-through;
    table.calendar td.notinmonth.weekend {
        background-color: transparent;
    table.calendar td span.day {
        display: block;
        color: #ccc;
    table.calendar td div.event {
        display: block;
        background-color: #ffffff;
        color: #a76d2f;
        padding: 3px;
        border-radius: 5px;
        border: 1px solid #fff;
    ul.calendar-nav {
        width: 200px;
        list-style: none;
        margin: 10px;
        padding: 0;
    ul.calendar-nav li {
        width: 33.3%;
        list-style: none;
        margin: 0;
        padding: 0 0 10px 0;
        display: block;
        float: left;
        text-align: center;
    ul.calendar-nav li:first-child {
        text-align: left;
    ul.calendar-nav li:last-child {
        text-align: right;
    /* --- LISTING --- */
    ul.events {
        width: 200px;
        list-style: none;
        margin: 10px;
        padding: 0;
        border-top: 1px solid #bed6ec;
    ul.events li {
        border-right: 1px solid #bed6ec;
        border-bottom: 1px solid #bed6ec;
        vertical-align: top;
        background-color: #bed6ec;
        clear: left;
    ul.events li ul {
        list-style: none;
    ul.events li li {
        border: none;
        border-bottom: 1px dotted #999;
        min-height: 0;
        margin-left: 25px;
        padding: 10px;
        background-color: #fff;
        clear: none;
    ul.events li li:last-child {
        border-bottom: 0;
    ul.events li li span.time {
        color: #999;
        font-style: italic;
        font-size: 90%;
        width: 60px;
        text-align: right;
        display: inline-block;
    ul.events li li div.description {
        margin: 5px 0 0 63px;
        font-size: 86%;
        color: #555;
    ul.events li li div.description p {
        margin: 0 0 1em 0;
    ul.events li span.day {
        font-weight: bold;
        font-size: 250%;
        float: left;
        color: #0a86d2;
        text-align: right;
        width: 50px;
        margin: 0 0 0 1px;
        padding: 0 15px 0 0;
        line-height: 1;
        border-top: 1px solid #fff;
    ul.events li:first-child span.day {
        border-top-color: #bed6ec;
    ul.event-listing-nav {
        width: 200px;
        list-style: none;
        margin: 10px;
        padding: 0;
        clear: both;
    ul.event-listing-nav li {
        width: 33.3%;
        list-style: none;
        margin: 0;
        padding: 0 0 10px 0;
        display: block;
        float: left;
        text-align: center;
    ul.event-listing-nav li:first-child {
        text-align: left;
    ul.event-listing-nav li:last-child {
        text-align: right;
    ul.event-listing-nav:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    ul.custom-listing {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 200px;
    ul.custom-listing li {
        padding: 0 0 1em 0;
        margin: 0 0 1em 0;
        border-bottom: 1px solid #ccc;
    table.calendar td div.event {
        position: absolute;
        display: none; /* keeps the popup hidden if no JS available */
    table.calendar td {
        position: relative;
    </style>
    <script src="http://code.jquery.com/jquery-1.8.2.min.js" type="text/javascript"></script>
        $(function () {
            $('table.calendar td').each(function () {
                // options
                var distance = 10;
                var time = 150;
                var hideDelay = 100;
                var hideDelayTimer = null;
                // tracker
                var beingShown = false;
                var shown = false;
                var trigger = $(this);
                var popup = $('div.event', this).css('opacity', 0);
                // set the mouseover and mouseout on both element
                $([trigger.get(0), popup.get(0)]).mouseover(function () {
                    // stops the hide event if we move from the trigger to the popup element
                    if (hideDelayTimer) clearTimeout(hideDelayTimer);
                    // don't trigger the animation again if we're being shown, or already visible
                    if (beingShown || shown) {
                        return;
                    } else {
                        beingShown = true;
                        // reset position of popup box
                        popup.css({
                            'z-index': 1000,
                            top: 30,
                            left: 10,
                            display: 'block' // brings the popup back in to view
                            // (we're using chaining on the popup) now animate it's opacity and position
                                .animate({
                                    top: '-=' + distance + 'px',
                                    opacity: 1
                                }, time, 'swing', function() {
                                    // once the animation is complete, set the tracker variables
                                    beingShown = false;
                                    shown = true;
                }).mouseout(function () {
                            // reset the timer if we get fired again - avoids double animations
                            if (hideDelayTimer) clearTimeout(hideDelayTimer);
                            // store the timer so that it can be cleared in the mouseover if required
                            hideDelayTimer = setTimeout(function () {
                                hideDelayTimer = null;
                                popup.animate({
                                    top: '-=' + distance + 'px',
                                    opacity: 0
                                }, time, 'swing', function () {
                                    // once the animate is complete, set the tracker variables
                                    shown = false;
                                    // hide the popup entirely after the effect (opacity alone doesn't do the job)
                                    popup.css('display', 'none');
                            }, hideDelay);
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-35744229-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div id="fb-root"></div>
    <script>(function(d, s, id) { type="text/javascript"
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div id="hours">
    <strong>Open:<br />Tuesday-Sunday (二~日)<br /> 11:30am - 2:00am (3:00am 五 &amp; 六)</strong>
    </div>
    <div id="title_bar">
    <img src="title_bar.jpg" alt=""/>
    </div>
    <div class='rollover' id="title">
    <a href="index.php">
    </a>
    </div>
    <div class='rollover' id='about'>
    <a href="about.php">
    </a>
    </div>
    <div class='rollover' id='gallery'>
    <a href="gallery.php">
    </a>
    </div>
    <div class='rollover' id='venue'>
    <a href="venue.php">
    </a>
    </div>
    <div class='rollover' id='shop'>
    <a href="shop.php">
    </a>
    </div>
    <div class='rollover' id='restaurant'>
    <a href="restaurant.php">
    </a>
    </div>
    <div class='rollover' id='bar'>
    <a href="bar.php">
    </a>
    </div>
    <div id="pop_up_background">
    <img src="pop_up_2.png" alt=""/>
    </div>
    <div class="scroll">
    <?php
    $opts = array(
    'filter'=>'eventDateTime',
    'match'=>'eqbetween',
    'category'=>array('gigs', 'Events'),
    'sort'=>eventDateTime,
    'sort-order'=> ASC,
    'display'=>date,
    'value'=>$_GET['id'],
    'template'=>'events/listing/event-day.html',
    perch_events_custom($opts);
    ?>
    </div>
    <div id="contact_bar">
    <img src="contact_bar.png" alt=""/>
    </div>
    <div class='rollover' id='events'>
    <a class='events-link' href="events.php">
    </a>
        <div class='events-calendar'>
            <?php
                 * setting options for the calendar. Change the categories listed to one or more which exist in your admin.
                $opts = array(
                    'template'=>'calendar.html',
                    'past-events'=>true,
                    'category'=>array('gigs', 'Events')
                perch_events_calendar($opts);
            ?>
        </div>
    </div>
    <div class='rollover' id='contact'>
    <a href="contact.php">
    </a>
    </div>
    <div id="copyright_background">
    <img src="copyright_bgrd.png" alt=""/>
    </div>
    <div id= "webdesign">
    Webdesign
    </div>
    <div id= "copyright">
    &#169; TAV Cafe
    </div>
    <div class='rollover' id='website_link'>
    <a href="http://www.renflannery.com/" target="_blank">Visit W3Schools</a>
    </div>
    <div class='rollover' id='fb_icon'>
    <a href="https://www.facebook.com/TAVCafe" target="_blank">Visit W3Schools</a>
    </div>
    <div class="fb-like" id="fb-root" data-href="http://www.tavcafe.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="verdana"></div>
    </body>
    </html>

  • Showing Paragraph and Span styles in TLF

    Hi,
    Can we show Paragrpagh and Span styleNames applied to a TLF text ?
    Something like the image below shows the Style Names in the Red box:
    Thanks.

    TLF doesn't support that natively.  You'd have to add to TLF to build that.  I'd propose adding listeners to the TextFlow for editing and scrolling events and then synchronizing the alternate view of the data.
    Hope that helps,
    Richard

  • Template is nested inside itself (directly or indirectly)

    Hello helpful folks of the Forum.  
    I had a template (test.dwt) based on which 60 of my pages are built and I dont know what happened now that whenever I try to update, all the editable contents of the 60 pages gets deleted.  I was getting an error "template is nested inside itself (directly or indirectly)
    Can someone please take a look at the template and let me know what is wrong and how I can fix it.   If I create a similar tempalte and name it test.dwt, will it work ?    Thanks for your help.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Welcome to Sringeri Vidya Bharati Foundation (Canada)</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    <meta name="SVBF" content="SVBF, Sringeri Temple, Sringeri Vidya Bharati Foundation, Sharadamba Temple, Ganesha, Hanuman, Hanuman Chalisa, Sathyanarayana Pooja, Shasti Bhajans, Brydon Drive, Sringeri, " />
    <title></title>
    <style type="text/css">
    <!--
    .style28 {
              font-size: 36px;
              font-weight: bold;
    .style49 {
              font-weight: normal;
              font-family: Cambria;
              font-size: 14px;
    -->
    </style>
    <style type="text/css">
    <!--
    p.MsoNormal {
    margin-top:0cm;
    margin-right:0cm;
    margin-bottom:10.0pt;
    margin-left:0cm;
    line-height:115%;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    -->
    </style>
    <script language="javascript" type="text/javascript">
    <!--
         Author: Eric King
         Url: http://redrival.com/eak/index.shtml
         This script is free to use as long as this info is left in
         Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
    var win=null;
    function NewWindow(mypage,myname,w,h,scroll,pos){
    if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):1 00;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
    if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.h eight)?(screen.height-h)/2:100;}
    else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
    settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+ scroll+',location=yes,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
    win=window.open(mypage,myname,settings);}
    // -->
    </script>
    <script type="text/javascript" src="http://svbfcanada.com/SVBF/jsmenu/stmenu.js"></script>
    <style type="text/css">
    <!--
    .style1 {
              color: #FFFFFF;
              font-size: 12px;
              font-family: Cambria;
              font-weight: bold;
    .style2 {
              color: #FFFFFF;
              font-size: 14px;
              font-family: Cambria;
              font-weight: bold;
    .style3 {color: #CCCCCC}
    body {
              background-color: #FFFFCC;
    .style6 {
              font-size: 12px;
              font-family: Verdana, Arial, Helvetica, sans-serif;
    .border1 {
              border: 1px solid #000000;
    .style11 {color: #000000}
    .style12 {color: #FFFFFF}
    .style13 {font-weight: bold}
    .style14 {font-size: 14px}
    .BG1 {
              background-image: url(http://www.svbfcanada.com/SVBF/images/BG1.jpg);
              background-repeat: no-repeat;
    .style15 {font-size: 12px}
    .style17 {
              font-size: 16px;
              font-weight: bold;
              font-family: Cambria;
    .style19 {font-size: 16px}
    .style21 {font-weight: bold}
    -->
    </style>
    </script>
    <script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script language="JavaScript1.1">
    <!--
    //Pixelating Image slideshow
    //Copyright Dynamic Drive 2001
    //Visit http://www.dynamicdrive.com for this script
    //specify interval between slide (in mili seconds)
    var slidespeed=3000
    //specify images
    var slideimages=new Array("http://www.svbfcanada.com/SVBF/images/Navara2012.jpg","http://www.svbfcanada.com/SVBF/images/diwalidance.JPG","http://www.svbfcanada.com/SVBF/images/sivarathri.jpg","http://www.svbfcanada.com/SVBF/images/navarathri2011.JPG", "http://www.svbfcanada.com/SVBF/images/AbdulKalam.JPG","http://www.svbfcanada.com/SVBF/images/narasimhajayanti.JPG")
    //specify corresponding links
    var slidelinks=new Array("http://www.svbfcanada.com/SVBF/photogallery.html")
    var imageholder=new Array()
    var ie55=window.createPopup
    for (i=0;i<slideimages.length;i++){
    imageholder[i]=new Image()
    imageholder[i].src=slideimages[i]
    function gotoshow(){
    window.location=slidelinks[whichlink]
    //-->
    </script>
    <style type="text/css">
    .menutitle{
              cursor:pointer;
              margin-bottom: 5px;
              background-color:#ECECFF;
              color:#000000;
              width:306px;
              padding:2px;
              text-align:center;
              font-weight:bold;
              /*/*/border:1px solid #000000;/* */
    .submenu{
    margin-bottom: 0.5em;
    .style22 {font-weight: bold}
    .style23 {font-family: Cambria}
    .style28 {
              font-size: 18px;
              font-weight: bold;
              font-family: Cambria;
    </style>
    <script type="text/javascript">
    * Switch Menu script- by Martial B of http://getElementById.com/
    * Modified by Dynamic Drive for format & NS4/IE4 compatibility
    * Visit http://www.dynamicdrive.com/ for full source code
    var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
    var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only
    if (document.getElementById){ //DynamicDrive.com change
    document.write('<style type="text/css">\n')
    document.write('.submenu{display: none;}\n')
    document.write('</style>\n')
    function SwitchMenu(obj){
              if(document.getElementById){
              var el = document.getElementById(obj);
              var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
                        if(el.style.display != "block"){ //DynamicDrive.com change
                                  for (var i=0; i<ar.length; i++){
                                            if (ar[i].className=="submenu") //DynamicDrive.com change
                                            ar[i].style.display = "none";
                                  el.style.display = "block";
                        }else{
                                  el.style.display = "none";
    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) {
    offset += search.length
    end = document.cookie.indexOf(";", offset);
    if (end == -1) end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offset, end))
    return returnvalue;
    function onloadfunction(){
    if (persistmenu=="yes"){
    var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
    var cookievalue=get_cookie(cookiename)
    if (cookievalue!="")
    document.getElementById(cookievalue).style.display="block"
    function savemenustate(){
    var inc=1, blockid=""
    while (document.getElementById("sub"+inc)){
    if (document.getElementById("sub"+inc).style.display=="block"){
    blockid="sub"+inc
    break
    inc++
    var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
    var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
    document.cookie=cookiename+"="+cookievalue
    if (window.addEventListener)
    window.addEventListener("load", onloadfunction, false)
    else if (window.attachEvent)
    window.attachEvent("onload", onloadfunction)
    else if (document.getElementById)
    window.onload=onloadfunction
    if (persistmenu=="yes" && document.getElementById)
    window.onunload=savemenustate
    </script>
    </head>
    <body>
    <center>
    <script language=JavaScript>
    <!--
    //Disable right click script III- By Renigade ([email protected])
    //For full source code, visit http://www.dynamicdrive.com
    var message="";
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    document.oncontextmenu=new Function("return false")
    // -->
    </script>
    <table width="1092" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
      <!--DWLayoutTable-->
      <tr>
        <td height="57" colspan="8" valign="top" bgcolor="D69306"><p align="right"><script language="JavaScript">
    var now = new Date();
    var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
    var months = new Array('January','February','March','April','May','June','July','August','September','Octo ber','November','December');
    var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
    function fourdigits(number)          {
              return (number < 1000) ? number + 1900 : number;
    today =  days[now.getDay()] + ", " +
                  months[now.getMonth()] + " " +
                   date + ", " +
                    (fourdigits(now.getYear())) ;
    document.write("" +today+ ".");
    </script> </p>      <p align="center"><script type="text/javascript" src="http://www.svbfcanada.com/SVBF/jsmenu/svbfcanada.js"></script>
          </p></td>
        </tr>
      <tr>
        <td height="210" colspan="8" valign="top" bgcolor="#d69306"><img src="http://www.svbfcanada.com/SVBF/images/SVBFBanner2.jpg" width="1092" height="210" /></td>
        </tr>
      <tr>
        <td width="43" rowspan="8" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="44" height="1181"> </td>
              </tr>
        </table></td>
        <td width="4" height="17"></td>
        <td colspan="2" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <!--DWLayoutTable-->
          <tr>
            <td width="321" height="1150" valign="top" bgcolor="#CC9933"><div style="margin-top: -25px;  "Important days at the temple this month.">
              <p align="center" class="style19" style="background: #CC9933; color: #2D251E; margin: 5px 0px 0px 0px; padding: 5px; border: solid #75614F; border-width: 1px 1px 1px 1px;"><br />
                <strong><span class="style21"><u>            TEMPLE TIMINGS</u></span><BR/>
                  <span class="style22">WEEKDAYS</span></strong><br />
                8.30 am to 11.30 am<br />
                4.30 pm to 8.30 pm<br/>
                <strong>WEEKENDS</span></strong><br />
                8.30 am to 8.30 pm<br />
                <span class="style14"><br />
                </span></p>
              <div style="margin-top: -25px;  "important="Important" days="days" at="at" the="the" temple="temple" this="this" month.="month."">
                      <p align="center" class="style14" style="background: #CC3333; color: #FFFFFF; margin: 5px 0px 0px 0px; padding: 5px; border: solid #75614F; border-width: 1px 1px 1px 1px;"><u><strong>IMPORTANT DATES THIS MONTH</strong></u></p>
                      <p align="left" class="style23 style19" style="background: #CC9933; color: #2D251E; margin: 0px 0px 0px 0px; padding: 5px; border: solid #75614F; border-width: 1px 1px 1px 1px;"><strong>
                      05</strong> Papa Vimochana Ekadasi<br />
                       <strong>06 </strong>Pradosham<br />
                       <strong>10</strong> Vaisaka Masam Begins<br />
                      <strong>
                      12</strong> Akshaya Truteya<br />
                      <strong>14</strong> Ramanuja Jayanthi<br />
                      <strong>15</strong> Shankara Jayanthi<br>
                       <strong>18</strong> Hanuman Chalisa<br />
                        <strong>21</strong> Mohini Ekadasi<br>
                        <strong>22</strong> Pradosham<br />
                        <strong>23</strong> Narasimha Jayanthi<br />
                        <strong>24</strong> Sathyanarayana Pooja<br />
                        <strong>27 </strong>Sankatahara Chaturthi</p>
                      <p align="center" class="style28" style="background: #CC9933; color: #2D251E; margin: 0px 0px 0px 0px; padding: 5px; border: solid #75614F; border-width: 1px 1px 1px 1px;"><a href="http://www.svbfcanada.com/SVBF/SearchSVBF.html"><img src="http://www.svbfcanada.com/SVBF/images/SearchSVBF.jpg" width="200" height="70" border="0" /></a></p>
                      <p align="center" class="style15" style="background: #CC9933; color: #2D251E; margin: 0px 0px 0px 0px; padding: 5px; border: solid #75614F; border-width: 1px 1px 1px 1px;"><span class="style19"><a href="http://www.svbfcanada.com/SVBF/Support.html"><img src="http://www.svbfcanada.com/SVBF/images/donate.jpg" width="285" height="140" Border="0"/></a></span></p>
                      <p align="left" class="style15" style="background: #CC9933; color: #2D251E; margin: 0px 0px 0px 0px; padding: 5px; border: solid #75614F; border-width: 1px 1px 1px 1px;"><a href="http://www.svbfcanada.com/SVBF/Directions.html"><img src="http://www.svbfcanada.com/SVBF/images/Directions.jpg" width="305" height="60" border="0" /></a></p>
                      <p align="center" class="style19" style="background: #CC9933; color: #2D251E; margin: 0px 0px 0px 0px; padding: 5px; border: solid #75614F; border-width: 1px 1px 1px 1px;"><span class="style17 style23 style22"><span class="style11">Visit our</span> <a href="http://www.svbfcanada.com/SVBF/photogallery.html" class="style6">Photo Gallery</a></span>
                        <script language="JavaScript1.1" type="text/javascript">
    <!--
    var whichlink=0
    var whichimage=0
    var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0
    function slideit(){
    if (!document.images) return
    if (ie55) document.images.slide.filters[0].apply()
    document.images.slide.src=imageholder[whichimage].src
    if (ie55) document.images.slide.filters[0].play()
    whichlink=whichimage
    whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
    setTimeout("slideit()",slidespeed+pixeldelay)
    slideit()
    //-->
                            </script>
                      </p>
                      <div align="center"></div>
                      <div align="center"></div>
                      <p align="left" class="style15" style="background: #CC9933; color: #2D251E; margin: 0px 0px 0px 0px; padding: 5px; border: solid #75614F; border-width: 1px 1px 1px 1px;"><a href="http://www.svbfcanada.com/SVBF/photogallery.html"><img src="http://www.svbfcanada.com/SVBF/images/diwalidance.JPG" name="slide" width="306" height="200" border="0" style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)" color="Black" /></a></p>
    <form id="form3" action="../SVBF/response.php" method="post" onsubmit="return checkform(this);">
                                         <fieldset>
                                         <legend><span class="style23 style12"><strong>Subscribe to our Newslette</strong></span><span class="style12">r</span></legend>
          <p class="first">
            <label for="name">Name</label>
            <input type="text" name="name" id="name" size="30" />
            </p>
          <p>
            <label for="email">Email </label>
            <input type="text" name="email" id="email" size="30" />
          </p>
          <p>
              <label for="code">Enter code below > <span class="style19" id="txtCaptchaDiv" style="color:#000066"><strong></strong></span><!-- this is where the script will place the generated code -->
                <input type="hidden" id="txtCaptcha" /></label><!-- this is where the script will place a copy of the code for validation: this is a hidden field -->
              <input type="text" name="txtInput" id="txtInput" size="30" />
              </p>
              <p class="submit">
                <button type="submit">Send</button>
              </p>
              <div align="center"></div>
              <div align="center">
                <script type="text/javascript">
              function checkform(theform){
                        var why = "";
                        if(theform.txtInput.value == ""){
                                  why += "- Security code should not be empty.\n";
                        if(theform.txtInput.value != ""){
                                  if(ValidCaptcha(theform.txtInput.value) == false){
                                            why += "- Security code did not match.\n";
                        if(why != ""){
                                  alert(why);
                                  return false;
    //Generates the captcha function   
              var a = Math.ceil(Math.random() * 9)+ '';
              var b = Math.ceil(Math.random() * 9)+ '';      
              var c = Math.ceil(Math.random() * 9)+ ''; 
              var d = Math.ceil(Math.random() * 9)+ ''; 
              var e = Math.ceil(Math.random() * 9)+ ''; 
              var code = a + b + c + d + e;
              document.getElementById("txtCaptcha").value = code;
              document.getElementById("txtCaptchaDiv").innerHTML = code;
    // Validate the Entered input aganist the generated security code function  
    function ValidCaptcha(){
              var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
              var str2 = removeSpaces(document.getElementById('txtInput').value);
              if (str1 == str2){
                        return true;
              }else{
                        return false;
    // Remove the spaces from the entered and generated code
    function removeSpaces(string){
              return string.split(' ').join('');
              </script>
                <span class="style12 style23 style15">Subscribe to our Newsletter to   receive updates on happenings at the Temple and the Community Hall </span><br />
              </div>
              <div align="center" class="style12"><small style="text-align:center">reload the page to change the code</small></div>
              </fieldset>
        </form>
                    </div>
                </div></td>
              </tr>
          <tr>
            <td height="152" valign="top" bgcolor="cc9933"><div align="center">
              <p><a href="http://www.tattvaloka.com/"><img src="http://www.svbfcanada.com/SVBF/images/Tattvaloka.jpg" width="306" height="160" border="0" /></a></p>
              <p><a href="http://www.svbfcanada.com/SVBF/TouristToronto.html"><img src="http://www.svbfcanada.com/SVBF/images/TORONTO.jpg" width="306" height="200" border="0" /></a></p>
            </div></td>
          </tr>
        </table></td>
        <td width="43"></td>
        <td width="635"></td>
        <td width="9"></td>
        <td width="37"></td>
      </tr>
      <tr>
        <td height="1410"></td>
        <td></td>
        <td rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="640" height="1471" valign="top">
              <div align="center"></div>          <div align="center" class="style49">
                <p> </p>
                  <p><a href="http://www.svbfcanada.com/SVBF/SathyanarayanaPooja.html"></a></p>
                <a href="http://www.svbfcanada.com/SVBF/SathyanarayanaPooja.html"><a href="http://www.svbfcanada.com/SVBF/SathyanarayanaPooja.html"><a href="http://www.svbfcanada.com/SVBF/SathyanarayanaPooja.html"></a></div></td>
              </tr>
          <tr>
            <td height="106"></td>
            </tr>
        </table></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td height="167"></td>
        <td colspan="2" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="318" height="159" valign="top"><div align="center">
              <p><a href="http://www.sringeri.net"><img src="http://www.svbfcanada.com/SVBF/images/sringerinet.jpg" width="306" height="92" border="0" /></a><a href="http://www.svbf.org"><img src="http://www.svbfcanada.com/SVBF/images/svbfusa.jpg" width="306" height="49" border="0" /></a>
                <iframe src="https://www.google.com/calendar/embed?title=SVBF%20Canada%20Calendar&mode=AGENDA&height=30 0&wkst=1&bgcolor=%23cccccc&src=calendarsvbf%40gmail.com&color=%232952A3&ctz=America%2FToro nto" style=" border:solid 1px #777 " width="310" height="300" frameborder="0" scrolling="yes"></iframe>
                <!-- AddThis Button BEGIN -->
    </p>
              <p></p></td>
              </tr>
        </table></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td height="319"></td>
        <td></td>
        <td> </td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td height="19"></td>
        <td width="312"> </td>
        <td width="9"></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td height="20"></td>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="311" height="19" valign="top"><div align="center">
              <p><span class="style17 style23 style22 style3">Visit our Photo Gallery</span>
                <span class="style3">
                  <script language="JavaScript1.1">
    <!--
    var whichlink=0
    var whichimage=0
    var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0
    function slideit(){
    if (!document.images) return
    if (ie55) document.images.slide.filters[0].apply()
    document.images.slide.src=imageholder[whichimage].src
    if (ie55) document.images.slide.filters[0].play()
    whichlink=whichimage
    whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
    setTimeout("slideit()",slidespeed+pixeldelay)
    slideit()
    //-->
                      </script>
                  </span></p>
                </div></td>
              </tr>
          <tr>
            <td height="1"></td>
              </tr>
        </table></td>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td height="3"></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td height="113" colspan="6" valign="top" bgcolor="#6C0F17"><div align="center">
                  <p class="style11 style2"><span class="style12">Sringeri Vidya Bharati Foundation (Canada)<br />
                  80 Brydon Dr., Etobicoke, ON, M9W 4N6 Phone: 416-745-1010<br />
                  Questions or Comments about this website ?
            Email the</span><span class="style12"> <a href="mailto:[email protected]" class="style14 style3">Web Master</a><br />
                    <a href="http://www.svbfcanada.com/SVBF/Disclaimer.php" class="style13 style3">Disclaimer</a> </span></p>
                  <p class="style11"><span class="style1">Copyright © 2008 – 2012 by Sringeri Vidya Bharati Foundation (Canada) All Rights   Reserved.</span><br />
                        <a href="http://www.copyscape.com/plagiarism-finder/"><img src="http://www.svbfcanada.com/SVBF/images/cs-ye-234x16.gif" width="234" height="16" border="0" /></a><br />
            </p>
          </div></td>
      <td> </td>
      </tr>
    </table>
    </td></center>
    </body>
    </html>

    This will happen if you mistakenly save a Child page as a Template.dwt and overwrite your original Template file. Do you have a backup of your original Template stored some place safe?
    In the future, when you have questions related to Dreamweaver, use the Dreamweaver Forum. You'll get better, quicker answers there.
    http://forums.adobe.com/community/dreamweaver?view=discussions
    Nancy O.

  • Using Squiggly with Spark TextArea causes TLF formatting to disappear

    We are using a Spark TextArea component in our application to offer more enhanced text formatting options to our users. Yesterday we downloaded Squiggly since it's the only one available that seems to support the spark components. It is highlighting misspelled words correctly and does have a nice right-click context menu with suggestions, etc. However, when we select a word from the suggestion list and it replaces it in the text area, it seems to replace the entire contents of the textarea as plain text. Any formatting on the text such as bold, italics, font sizes, underlines, all immediately disappear once the misspelled word is replaced. We're using the SpellUI implementation. Below is some of the snippets of the code we're using to implement SpellUI:
    protected function createTextArea():void {
      _textArea = new TextArea();
      _textArea.editable = true;
      _textArea.enabled = true;
      _textArea.textFlow = TextConverter.importToFlow(XML(dataModel.value)[0], TextConverter.TEXT_LAYOUT_FORMAT);
      _textArea.textFlow.flowComposer.updateAllControllers();
      _textArea.addEventListener(FlexEvent.CREATION_COMPLETE, setupSpellCheck, false, 0, true);
    private function setupSpellCheck(event:Event=null):void {
      logger.debug("setupSpellCheck", "Setting up spell check system...");
      _textArea.removeEventListener(FlexEvent.CREATION_COMPLETE, setupSpellCheck);
      resourceManager.localeChain = [localeStr];
      enableSpellCheck();
      enableSpellCheckContextMenu();
    private function enableSpellCheck():void {
      SpellUI.enableSpelling(_textArea, localeStr);
    private function enableSpellCheckContextMenu():void {
      var contextMenu:Object = {add:resourceManager.getString('SquigglyContextMenu', 'add'),
                                             enable:resourceManager.getString('SquigglyContextMenu', 'enable'),
                                             disable:resourceManager.getString('SquigglyContextMenu', 'disable')};
      SpellUI.setSpellingMenuEntries(contextMenu);
    As you can see, we're constructing a new TextArea control and setting it's textFlow by importing an existing textflow XML that we have saved in our database. Once the TextArea has dispatched the FlexEvent.CREATION_COMPLETE, we are setting up the spell check system and everything works ok until you actually correct a misspelled word by selecting it from the right-click suggestions list. The text initially imported may have any number of styles applied to it as I mentioned above. Once the spelling replacement occurs, all the formatting is wiped out for the entire text area.
    Any thoughts?
    -Jason Kringen

    Just to give some more details, here's the TextFlow output from our TextArea before using the spell check word replacement:
    <TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008"><p direction="ltr" justificationRule="auto" justificationStyle="auto" leadingModel="auto" paragraphEndIndent="0" paragraphSpaceAfter="0" paragraphSpaceBefore="0" paragraphStartIndent="0" textAlign="start" textAlignLast="start" textIndent="0" textJustify="interWord"><span>Text goes in here. </span><span alignmentBaseline="useDominantBaseline" backgroundAlpha="1" backgroundColor="transparent" baselineShift="0" breakOpportunity="auto" cffHinting="horizontalStem" color="#000000" digitCase="default" digitWidth="default" dominantBaseline="auto" fontFamily="Arial" fontLookup="embeddedCFF" fontSize="28" fontStyle="normal" fontWeight="bold" kerning="auto" ligatureLevel="common" lineHeight="120%" lineThrough="false" locale="en" renderingMode="cff" textAlpha="1" textDecoration="none" textRotation="auto" trackingLeft="0" trackingRight="0" typographicCase="default">misspeled</span><span> jhkjd het </span></p></TextFlow>
    And here is the TextFlow output immediately after replacing a misspelled word:
    <TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008"><p><span>Text goes in here. misspeled jhkjd get </span></p></TextFlow>
    So it's obviously stripping out all of the TLF formatting and simply leaving the blank <p> and <span> tags without any of the formatting details.

  • How do I get a header image to span the width of the screen without getting distorted?

    I've just finished two online classes for Dreamweaver through Ed2go and have a reasonable idea of HTML and CSS. What I'm trying to do is a re-make of my personal web site (www.astral-imaging.com) that I display my astronomy images using all CSS layout and proper HTML coding. The existing site was done long ago using FrontPage and is loaded with tables and nested tables for layout. I need to make several templates for repeated pages but I'm lost on how to create my header banner. I've used Photoshop CS5 to create what I want to use and saved it as a .JPG file. The original canvas size is 1000x200 pixels but I also want the site to use a liquid template so that if the viewer is using a monitor at 1024 width or higher the page will fill the screen.
    My target audience is mostly people in astronomy groups that I participate with and their screen resolutions will most like be 1280 and up. The images posted are usually 1000, 2000, and 3000 pixels wide. The reason for this is that there is very faint and small detail in these images and the larger sizes allows the viewer to scroll around in the full sized images to see this detail. There are links so the viewer has a choice of how large an image they want to view. So this explains my rational behind the sizing and I'm left with how to make the header expand without distorting to various sized displays. Below is what I had designed. Am I asking for too much or just a bit too green to know what to do? Any suggestions would be extremely welcomed. The PSD file has the separate 4 layers. What I have though about is the header being multiple images:
    the actual background gradient image
    the DRO info floated left
    Glimpses of Our Universe centered
    image floated right
    Only issue is I'm not sure if this will work and if so what is the proper coding? I think there needs to be a div container and although I know how to create the div, inserting multiple items into it and using CSS to style them is confusing me. Is there a link to information on DIVs that would help explain this. From what I've seen from my Google searches I haven't seen anything that addresses this. Maybe I need better search terms.
    Thanks,
    Steve

    Nancy,
    I appreciate the feed back but this doesn't extend the banner across the page. I understand the header background color filling in the area to the right of the banner image as well as the background color of the body tag. I guess what I'm wondering is if it's possible to have multiple images in the header div tag? I may not even be explaining this correctly. If I were using a table to lay this out it would have 1 row and 3 columns with the gradient image as the background in all 3. I could keep the cell width set to a fixed number for the right and left cell while center cell would be able to span the remainder of the screen width to fill across the top of the page. The hight would adjust to maintain the aspect ratio. Does this make any sense?
    Basically the code below is what I'm after but using CSS to lay it out and not a table:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <style type="text/css">
    table {
    background-image: url(images/banner_background.png);
    text-align: left;
    body {
    background-color: #000;
    .center {
    text-align: center;
    background-image: url(images/banner_background.png);
    .right {
    background-image: url(images/banner_background.png);
    margin: 1px;
    padding: 0px;
    </style>
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th width="22%" scope="col"><img src="images/DRO_trans.png" width="325" height="200"></th>
        <th width="59%" class="center" scope="col"><img src="images/glimpses-astral.png" width="450" height="120"></th>
        <th width="19%" scope="col"><img src="images/Thor-3rd-300.jpg" width="300" height="198" alt="Thor's Helmet"></th>
      </tr>
      <tr>
        <td colspan="3"> </td>
      </tr>
    </table>
    </body>
    </html>
    If it's any help or you are curious, the png files can be downloaded here: http://www.astral-imaging.com/test_images.zip
    Thanks,
    Steve

  • Flex compilation error: line exceeds 32k span

    Hi All,
    I am trying to execute my application being developed in VC7.0 (nw04s sneak preview version) using tabbed layers. I have 3 layers and has the following UI components
    1 tab/layer: input form
    2 tab/layer: table control
    3 tab/layer: table control
    Following is the error from the source Viewer window
    <b>com.myComp.myProduct.8J.Empdetailsview</b>
    Error in executing a process for Flex compilation, Error: Branch between 8421 and 41193 around line 0 exceeds 32K span. If possible, please refactor this component.
          (E:\usr\sap\J2E\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\empModel_18608\FLEX_COMPILATION_FOLEDR\AAD8J-generated.as:2188)
    Error: Branch between 8421 and 41193 around line 0 exceeds 32K span.
    Failed to compile AAD8J.mxml
    PS: Initially I had a table and chart controls in my second layer (no 3rd layer then) and got the same error however, after removing the chart contrl, the app begun to run.
    Now I added a 3rd layer which has one table contrl only and now the app is not working. I also have eventing between my layers..
    Please help
    Thanks
    Sathish

    Hi
    The 32k issue id pretty hard to get rid of once it starts, instead of using the 3rd layer, try and create a nested iview, you can also try and use a nested iview for each layer, this is a bit more complicated to do but does seem to workaround the 32k problem.
    Jarrod

  • Nested CASE expressions in SQL Server 2008 R2

    Hi, For some reason when I use the below CASE expression in my SELECT statement I get duplicate records.
    CASE WHEN <Condition 1> THEN <Expression 1>
    WHEN <Condition 2> THEN <Expression 2>
    WHEN <Condition 3> THEN <Expression 3>
    WHEN <Condition 4> THEN <Expression 4>
    END AS CaseResult
    Also tried using coalesce with no luck. How to write a nested CASE expression which would yield just one expression. In case if I have to combine 2 different Expressions for 1 record, Is there a way to merge the 2 Expressions writing CASE
    expression something like below.
    STUFF ((SELECT ',' + CASE WHEN <Condition 1> THEN <Expression 1>
    WHEN <Condition 2> THEN <Expression 2>
    WHEN <Condition 3> THEN <Expression 3>
    WHEN <Condition 4> THEN <Expression 4>
    END
    FOR XML PATH(''), ROOT('MyString'), TYPE).value('/MyString[1]','VARCHAR(MAX)'), 1, 1,'') AS CaseResult
    --ResultSet
    CaseResult
    <Expression 1, Expression 2>
    I am using SQL Server 2008 R2. Thanks in advance.......
    Ione

    Hi, For some reason when I use the below CASE expression in my SELECT statement I get duplicate records. Also tried using coalesce with no luck. How to write a nested CASE expression which would yeild just one expression. In case if I have to combine 2 different
    Expressions for 1 record, Is there a way to merge the 2 Expressions writing CASE expression something like below in SQL Server 2008 R2.
    CASE WHEN <Condition 1> THEN <Expression 1>
    WHEN <Condition 2> THEN <Expression 2>
    WHEN <Condition 3> THEN <Expression 3>
    WHEN <Condition 4> THEN <Expression 4>
    END AS CaseResultSTUFF ((SELECT ',' + CASE WHEN <Condition 1> THEN <Expression 1>
    WHEN <Condition 2> THEN <Expression 2>
    WHEN <Condition 3> THEN <Expression 3>
    WHEN <Condition 4> THEN <Expression 4>
    END
    FOR XML PATH(''), ROOT('MyString'), TYPE).value('/MyString[1]'<span clas
    Ione

  • Interesting Multiple Container Bug in TLF

    Hi All,
    I've hit a bit of a roadbump in developing an AIR app (2.5.1.17730 runtime) using the TLF and wonder if anyone else has seen it and come up with a workaround. Consider the mxmxl below. When you run the app, you two columns of text as you would expect. Editing (cut, paste, type, undo, redo) all work fine anywhere except when you edit the second line of the second column. Then the whole second column is pushed down to the y-value of the first column until you do an edit somehwere else in the window (say, put a space in the first column somewhere). I have pored over this for quite a while and have come to the considered opinion that (a) it's a bug, and (b) I haven't a clue what is causing it or how to work around it.
    Any suggestions?
    Thanks!
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            creationComplete="init(event)" viewSourceURL="srcview/index.html">
    <fx:Script>
      <![CDATA[
       import flashx.textLayout.container.ContainerController;
       import flashx.textLayout.conversion.ITextImporter;
       import flashx.textLayout.conversion.TextConverter;
       import flashx.textLayout.edit.EditManager;
       import flashx.textLayout.elements.TextFlow;
       import flashx.undo.UndoManager;
       import mx.events.FlexEvent;
       private var _textContainer:SpriteVisualElement = null;
       private static const textInput:XML = <TextFlow xmlns="http://ns.adobe.com/textLayout/2008">
        <div>
         <p><span>Qui magna velit consequat, lobortis iriure autem augue duis exerci blandit esse laoreet ex eros, adipiscing aliquip, ut, vel eum. Vero consectetuer dolor feugait dolore lobortis delenit nibh eu, te et in, dolore. Nulla ut enim consequat diam adipiscing nulla facilisis zzril te laoreet at. Iusto quis esse nulla et, aliquam quis, facilisi euismod, diam eros ut dolore commodo erat et ad tation, illum. Autem, qui wisi odio ad vel esse ad ad. Velit vel facilisis iriure, et nisl aliquip iriure zzril.
           Praesent tincidunt blandit nulla, odio, sed vulputate ipsum dolore duis in veniam iriure zzril minim odio suscipit dignissim wisi. Feugiat, volutpat duis vero ut elit zzril, te commodo duis. Molestie ea erat et volutpat dolore vel molestie consequat tincidunt hendrerit consequat. Euismod, consequat blandit nostrud facilisi qui delenit duis, molestie tation illum accumsan amet dolor feugait molestie ea consectetuer wisi. Adipiscing lobortis, ut veniam nostrud accumsan vero elit dolore ex nulla ullamcorper sit qui. Qui magna velit consequat, lobortis iriure autem augue duis exerci blandit esse laoreet ex eros, adipiscing aliquip, ut, vel eum.
           Vero consectetuer dolor feugait dolore lobortis delenit nibh eu, te et in, dolore. Nulla ut enim consequat diam adipiscing nulla facilisis zzril te laoreet at.</span></p>
        </div>
        </TextFlow>;
       private var _textFlow:TextFlow;
       private function init(evt:Event):void {
        var importer:ITextImporter = TextConverter.getImporter(TextConverter.TEXT_LAYOUT_FORMAT);
        importer.throwOnError = true; // will throw exception if parsing error occurs on import
        _textFlow = importer.importToFlow(textInput);
        _textFlow.flowComposer.addController(new ContainerController(col1, col1.width, col1.height));
        _textFlow.flowComposer.addController(new ContainerController(col2,col2.width,col2.height));
        col2.x = g1.width*0.55;
        //adding Select/Edit/Copy/Paste/Undo features
        _textFlow.interactionManager = new EditManager(new UndoManager());
        // initialize with a selection before the first character
        _textFlow.interactionManager.selectRange(0,0);
        _textFlow.flowComposer.updateAllControllers();
      ]]>
    </fx:Script>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Group x="0" y="0" width="100%" height="100%" id="g1">
      <s:SpriteVisualElement x="0" y="0" height="100%" width="45%" id="col1"/>
      <s:SpriteVisualElement y="0" height="100%" width="45%" id="col2"/>
    </s:Group>
    </s:WindowedApplication>

    This is a bug in the TLF 1.1. It was not there in TLF 1.0, and has been fixed in TLF 2.0 (currently pre-release). You have three options:
    - You can go back to TLF 1.0. If you are using Flex 4.1, I think you could do this by putting TLF 1.0 in place of TLF 1.1 in the Flex installation. Alternatively, you could roll back to using Flex 4.0.
    - You can go forward to use TLF 2.0. If you are using Flex, this would mean adopting the pre-release Hero version of Flex.
    - You can create your own TLF 1.1 with a fix. I can provide you with the fix, but you will need to recompile TLF 1.1, which means you cannot use the RSL version of the library.
    I apologize for the inconvenience.
    - robin

Maybe you are looking for

  • Back to school card validity

    Hello Sir,                         I purchased my Macbook air in September,2011 through student offer. I would like to know the validity(date and year) of the BACK TO SCHOOL CARD 2011 which came on purchasing.So,please let me know the details so that

  • Need Help FAST||! Big Problem with Oracle on Windows.

    I have Oracle 9.2.0.6 on Windows 2003 Enterprise Edition SP2. My oracle SID in XRTY01PD. The OracleServiceXRTY01PD Startup Type is Automatic. The Service starts but the database does not open. When I go to a command prompt and log into SQLPlus and co

  • Third party adapters not working

    I bought two different adaptors for my iPhone 5 (to be able to use my old 30-pin cables) and I am pretty sure they worked when I first used them. However, after the latest iOS updates for the iPhone 5 and the iPad 4, neither adaptor works. My devices

  • I've just bought and installed PS elements 13 on Windows 7 x64 and it crashes as soon as it's started (1st run)

    After what I thought was a legit copy of PS Elements 8 expired tonight after a month, I bought PS Elements 13 and installed it on a Windows 7 Pro x64 machine. It installed properly, and on first load, it opened the welcome screen, then both Organise

  • Avg/sum/min/max/count

    Is there anyway to see the avg/sum/min/max/count when you highlight a bunch of cells? I can't figure out if iPad numbers has this function. I've read several articles that mention it. Also, I am having trouble with some formulas, does anyone know whe