Announcement

Collapse
No announcement yet.

textarea problem!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    textarea problem!

    I am using v9 and trying to save space on products description. I used a textarea tag and am getting display problems..

    My code is as follows:

    <textarea name="descriptiontext" rows="10" cols="50";
    readonly="readonly">
    <actinic:variable name="ProductDescription" />
    </textarea>

    but in the textarea box i get the following:

    <span style='color: #000000;'>
    then the description of my product is here</span>

    why am i getting these span tags in the textarea?
    also if i copy and paste the code from Actinic i get this:

    <textarea name="Descriptivetextarea" rows="10" cols="50";
    readonly="readonly">
    <actinic:variable formatting="font(Color|000000)" name="ProductDescription" />
    </textarea>
    Any ideas??
    www.radiatorsandboilers.co.uk

    #2
    For some reason you have product description variable within the textarea tag and you have tried to color it by right clicking and editing accordingly. Don't do that, it's not the best way to style. Get everything back to standard and then start your changes again, you won't want to do this, but i can assure you it will almost certainly be much quicker. If you keep adding codges on top of codges it will become a nightmare.

    Comment


      #3
      Thanks for your speedy reply.

      I didnt write that code! The style code appears when you copy and paste from actinic into this forum! there is no style tag on the page of actinic.
      Very weird!!
      www.radiatorsandboilers.co.uk

      Comment


        #4
        Ok, I have found out how to delete this formatting and that works.
        Last question for now. How do I change the font to arial etc?
        www.radiatorsandboilers.co.uk

        Comment


          #5
          Add class="mytextarea" to the textarea tag. Add some CSS to the Actinic Stylesheet to style as required. E.g.

          .mytextarea {font-family: arial;}
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            I see that you actually want the product description in a scrollable box.

            Using a textarea is a hideous way to do that. Newlines will display as <br/>. It will be submitted with the Add to Cart and may cause that to fail. Don't do it.

            Instead display your description in a <DIV> with some CSS to fix its height, width, and give it scrollbars. E.g.

            <div class="descbox">
            <actinic:variable name="ProductDescription" />
            </div>

            And CSS

            .descbox {width:200px; height:50px; border:1px solid silver; overflow:auto;}
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Thanks for your reply, the text is correct now.
              The text in the textarea has 32 spaces before the text starts. Is there anything I can do to to lose the spaces. This is happening for all the products.
              www.radiatorsandboilers.co.uk

              Comment


                #8
                Yes. Don't use a Textarea. See my post #6 above.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Thanks again for your help. I am now using the div tags as recommended.
                  All works well
                  www.radiatorsandboilers.co.uk

                  Comment

                  Working...
                  X