SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2001
    Location
    London
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Rich text format iframe contents into variables..

    Sorry for the confusing title...

    Basically I have read a tutorial on how to produce a Rich Text Format iframe, similar to the way yahoo and hotmail allow wysiwg formatting to display in real time.

    Make sense?

    The question is when I have submitted the form that contains the iframe I wish to proceed to another page and be able to reference the contents.

    how is this possible?

    I can post the article in question and/or my code at a later date....just wondering if I am missing the obvious.....

  2. #2
    SitePoint Addict
    Join Date
    Aug 2000
    Posts
    248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The article/ code would certainly help but if i understand you correctly you have basically created an online WYSIWYG editor.

    Enclose the contents of the editor in <form> tags. Submit the form to another page and then response.write the contents of the form field to the new page.
    You could even add the output to a database or write it straight to a file using FSO.

    Like I said, i think that you are trying to recreate this:
    http://www.aspalliance.com/Yusuf/Article12.asp
    Let me know if I am wrong in that assumption.

    HTH

  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2001
    Location
    London
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I will read the article....


  4. #4
    \m/ R.I.P. Dimebag! \m/ JimBolla's Avatar
    Join Date
    Dec 2001
    Location
    erie, pa
    Posts
    1,130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    perhaps something like this would work.


    Code:
    <form name="frmEdit" onSubmit="frmEdit.mydoc.value = document.frames['myiframe'].document.body.innerHTML" />
    <input type="hidden" name="mydoc" />
    
    <iframe id="myiframe" ...></iframe>
    
    ...
    
    <input type="submit" name="action" value="Save" />
    </form>
    ps: not tested or complete, but might give you a good idea.


Bookmarks

Posting Permissions

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