Web Analytics Made Easy -
StatCounter urgent plz!create folder and save page as asp - CodingForum

Announcement

Collapse
No announcement yet.

urgent plz!create folder and save page as asp

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

  • urgent plz!create folder and save page as asp

    Hi there,
    I have an html editor (done using an iframe)in my page. I have to allow the users to save the page they create as asp. On clicking on a save button, a folder has to be created for the user (session(u))and the page is saved there. can anyone help me with the code for the savepage.asp please? i can't figure out how to do this. thx!


    this is part of the code for the editor page where i have the iframe:
    <html>
    <head>
    <title>HTML editor </title>
    <script language="javascript" src="JFunctions/Editor.js"></script>
    <link rel="stylesheet" type="text/css" href="include/styles.css">
    </head>
    <body onload="Editor.focus()">

    <form name="FrmEditor" method="post" action="SavePage.asp">
    <table border="1" bordercolor="steelblue" style="border-collapse:collapse">
    <tr>
    <td>
    <img src="EditorImages/imageLocal.gif" alt="Insert Image" onclick="InsertImageLocal()">

    </td>
    </tr>
    <tr>
    <td colspan="2">
    <img src="EditorImages/preview.gif" alt="Page Preview" onclick="DoPreview()">
    <img src="EditorImages/Cut.gif" alt="Cut" onclick="ExecuteCommand('cut')">
    <img src="EditorImages/Copy.gif" alt="Copy" onclick="ExecuteCommand('copy')">
    <img src="EditorImages/Paste.gif" alt="Paste" onclick="ExecuteCommand('paste')">
    <img src="EditorImages/Undo.gif" alt="Undo" onclick="ExecuteCommand('Undo')">
    <img src="EditorImages/Redo.gif" alt="Redo" onclick="ExecuteCommand('Redo')">
    <img src="EditorImages/Bold.gif" alt="Bold" onclick="ExecuteCommand('bold')">
    <img src="EditorImages/numlist.gif” alt="Ordered List" onclick="ExecuteCommand('insertorderedlist')">
    <img src="EditorImages/HR.gif" alt="Insert Horizontal Rule" onclick="ExecuteCommand('InsertHorizontalRule')">
    <img src="EditorImages/table.gif" alt="Insert Table" onclick="TableDialog()">
    </td>
    </tr>
    <tr>
    <tr>
    <td height="33>
    <img src="EditorImages/adaptive.gif" onclick="ExpertAdaptive()">
    </td>
    </tr>
    <tr>
    <td>
    <iframe id="Editor" width="702" height="350"></iframe>
    <br clear="right">
    <center>
    <input type="checkbox" name="ChkSource" onclick="SetMode(this.checked)"><span class="NormalText">Edit HTML</span>
    <input type="hidden" name="WebContent" value="">
    <input type="button" value="save " onclick="SubmitContent()"></center>
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
Working...
X