Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation [JavaScript/HTML] div, iframe and wrap ?

    Hi everyone,

    First of all, I work on a Oracle web oriented environment (9i) using PL/SQL.

    You have certainly figured that I have an HTML/Jscript problem. I'm trying to complete the job of a collegue of mine who managed to create an online text editor in jscript (which is used in order to generate RTF documents).

    I just want to put a wrap="hard" attribute on an iframe element but It doesn't work.

    Moreover, I have some other difficulties : I want my iframe to save EVERY carriage returns (even those generated automatically by the text field when the user reaches the end of line).

    To summarize, I have an iframe element which doesn't accept a wrap="hard" attribute (I think It saves correctly on submit the automatic carriage returns).

    Notice that I use a iframe embedded on a div with a SRC attribute which permits to display my targetted page. This page contains only the text charged in the editor.

    Thanks in advance for your help and forgive my poor english

    Code:
    <div style="left: 0px; width: 100%; position: relative; top: 0px;" width="650">
       <iframe #TEXTESRC# wrap="hard" frameborder="1" style="font-face:Arial; font-size:12pt;" id="iView" height="220" width="650">
       </iframe>
    </div>
    Last edited by evildead; 08-09-2006 at 08:53 AM.

  • #2
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nobody ?
    Sad !

  • #3
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,518
    Thanks
    3
    Thanked 506 Times in 493 Posts
    cant say that I have ever used wrap="hard"

    but a quick google suggests that it is a textarea attribute, which is very different from an IFRAME
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  • #4
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I know that !

    Well, I don't have targeted my question as well as I have expected.
    I have find an attribute which can work : white-space = "pre".

    My new question is : how can I manage to send ALL carriage returns as the same way that you can see it on your screen (so a regular WYSIWYG like word or notepad) ?

    I really appreciate your help, vwphillips.

  • #5
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,518
    Thanks
    3
    Thanked 506 Times in 493 Posts
    I know that !
    then why?

    <iframe #TEXTESRC# wrap="hard" frameborder="1" style="font-face:Arial; font-size:12pt;
    Sad
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  • #6
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, wrap = "hard" can't work there, I just tried it.

    But how can I manage to send ALL carriage returns as the same way that you can see it on your screen (so a regular WYSIWYG like word or notepad) please ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •