htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: WYSIWYG Forums: WYSIWYG Editor Discussion:
Question


 


jmarx
Novice

Apr 2, 2005, 11:04 AM

Post #1 of 7 (86302 views)
Shortcut
Question Can't Post

Can someone please help me?

Im still using htmlarea.

I make changes with the interface just fine and it seems to write to thr database.

But for some reason every change i make, there i html that gets cut off at the top.

Has anyone seen this b4? Is this a problem with the htmlarea software? or my database settings possibly? Any help would be appreciated.

Thank you


scottiemac
Novice

May 14, 2005, 8:46 PM

Post #2 of 7 (86192 views)
Shortcut
Re: [jmarx] Question [In reply to] Can't Post

Depending on what you're doing/writing, the use of single quote (') or double quote (") can screw up your input. See if that's the problem, and if it is, use a Replace function (I do this through ASP) to take your " and turn it into the Chr for Alt+0148 or something.


jmarx
Novice

Jun 2, 2005, 11:05 AM

Post #3 of 7 (86144 views)
Shortcut
Re: [scottiemac] Question [In reply to] Can't Post

"Chr for Alt+0148 or something"



what does that mean? Sorry if that is a dumb question. i'm kinda new at this


jmarx
Novice

Jun 2, 2005, 11:06 AM

Post #4 of 7 (86143 views)
Shortcut
Re: [scottiemac] Question [In reply to] Can't Post

And thanks for the reply!


scottiemac
Novice

Jun 2, 2005, 2:08 PM

Post #5 of 7 (86134 views)
Shortcut
Re: [jmarx] Question [In reply to] Can't Post

Visit this page:

http://www.codetoad.com/ascii_characters_asp.asp

It gives you the ASCII character codes for common keyboard characters. For example, Chr(148) gives you the sort of sideways version of double quotes. This is useful to know if you want to use the Replace() function in ASP (or something similar in Javascript) to switch out the characters before putting them into your database.

On my project, I took all " and replaced it with Chr(148) as the data was going into the database through this statement:

Replace(string,Chr(34), Chr(148))

Chr(34) is the normal double quote; Chr(148) was the substitute and it kept my code from choking on the " symbol.

As I output from the database, I run another replace statement that scans the text and does:

Replace(string,Chr(148), Chr(34))

which pulls all the funny double quotes and replaces them with standard ones.

Hope this makes more sense!Cool


jmarx
Novice

Jun 2, 2005, 2:26 PM

Post #6 of 7 (86133 views)
Shortcut
Re: [scottiemac] Question [In reply to] Can't Post

Are you talking about this statement?

<input type="hidden" name="ud_id" value="<? echo "$id" ?>">
<textarea style="width:580; height:500" name="ud_body" value="<? echo "$body" ?>"></textarea>

It seems like whenever i use this form to insert data.

It deletes a line of text that was already there.

Is that the same problem you had?


scottiemac
Novice

Jun 2, 2005, 2:37 PM

Post #7 of 7 (86132 views)
Shortcut
Re: [jmarx] Question [In reply to] Can't Post

No, that's not my same problem. I haven't used it with PHP. Sorry.

 
 
 


Search for (options)