SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iFrame and saving contents

    Hi,

    I am building a rich text editor. I use Iframe as text area to type.
    I created my own virtual keyboard to type letters.

    IE: when I press on the virtual keyboard it displays the letter in the iframe.
    Safari: It does not work.

    I want to get this working in safari.

    Also, I am trying to save this text entered in the iframe into a file. I am unable to do this. In IE, I am not able to retrieve the content I type.

    Can anyone suggest a way to do this?

    Thanks,
    K

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Javascript cannot save information to files.

    You would need to submit the information as a form to a php page, that then receives the information and does what you want with it from there.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your suggestion. I will try that and get back if I have any questions.

    I need another suggestion. This is what I am doing:
    1. Using rich text editor, I am creating notes. So in a html page(NEW MESSAGE), I have text box and rick text editor. I give a title and under that I create notes.
    2. Storing them as a file.
    3. I want to display the stored contents with its title as a link(like email INBOX appearance) once clicked on that title, it must show the notes created with editable option.

    Is it possible to implement it using Javascript, CSS and html?
    If yes, can you suggest a way to do it.

    My idea was this but not sure if its feasible.
    1. clicking on the title, it must open a html page which looks like 'new message' html. Then read values from file and populate it in its respective areas.

    Kindly provide me suggestion.

    Thanks,
    K

  4. #4
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Probably the best option is to submit the data from the richtext area to the backend then return the original page with the values stored in the backend as links...

    If you want the links to open in a new window, it's probably best to open it in a new window passing through a query string value with the message id which fetches the message information.

  5. #5
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!

    Do you have some sample code or reference that I could refer to?


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
  •