Menu

#4 function post()

open
nobody
None
5
2002-07-15
2002-07-15
No

The HTML-code, wich will be post to your server after
clicking the "Post"-button is not the same as in the
source view of RTE.
If you want that the same code will be post, take this
little modification to your rte.js-file (search for function
post):

/* post():
Called in response to clicking the post button in the
toolbar. It fires an event in the container named post,
passing the HTML of our newly edited document as
the data argument. */
function post(){
DBG(1, 'Raise "post" event');
/* window.external.raiseEvent("post", doc.innerHTML);*/
/* sorry, but this will not parse my HTML-Code ! */
window.external.raiseEvent("post",
codeSweeper(doc.innerHTML));
}

Now, I'm programming a pure js HTML-Codesweeper for
RTE, wich will make a very good W3C-HTML-code.
Sorry, but the code from the MS-ActiveX generates a
terrible code, like this "<p ltr:...>". Another point is, if
you would use some XML-codesnipped, it's better that
HMTL-Elements are lowercased and all it's values are
quoted.
For sample: <p align="center">Some Text</p> or <img
src="imgpath/img.gif" border="0" width="50" height="10"
alt="Some Image">.
I hope you understand what I mean.
If my js-Codesweeper ready, I will post. If some people
want help me, let me!

Discussion

  • Cicero P Rosa

    Cicero P Rosa - 2003-05-02

    Logged In: YES
    user_id=770101

    Dear Michael,

    I did the changes in , but stil not start the post?
    Why ?

    Sorry . I am brasilian and my english is not good !!!

    Thanks

     
  • Michael Keck

    Michael Keck - 2003-05-06

    Download function post();

     

Log in to post a comment.