SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)

    writing to a file, then loading it in another page

    I'm trying to do something without any server-side language.

    Basically, on one page, I have a submission form with FCKeditor where I am trying to write the html code from the html editor to a file, then have that code loaded into another page as its body.

    Any ideas about how to do this, or if there's a better way than what I have in mind?

  2. #2
    SitePoint Guru toasti's Avatar
    Join Date
    Feb 2004
    Location
    Grahamstown
    Posts
    634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont think you can write to a file (either client or server), using a client-side language like javascript. Its a security issue.

    you would need to use a server-side language i think (to write to a file on the server), a java applet if you want to write to a file on the client.

    You can use javascript to call a server-side script which can write to the file. but u cant do this in pure client-side.


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
  •