Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-08-09 18:58:44

webtim
New member
Registered: 2006-05-02
Posts: 3

Checking for a null or empty HTML Area

Any idea how to determine if an HTML Area is empty and hasn't been typed in?

I know about getHTML and getInnerHTML, but I think there are some other characters inheritly in the HTML Area upon creation... possibly "<<"?  Those characters seem to get entered into my mySQL database when I submit the getHTML of an HTMLArea on a form that I don't type in or even bring focus to.

Any ideas or functions I'm missing here?  I'm really at a loss on this one, ANY help would be of GREAT assistance.  Thanks!

-Tim

Offline

#2 2006-08-10 02:09:39

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Checking for a null or empty HTML Area

If I remember correctly, it's a <br/>, and it gets put in by the browser, and we won't strip it out in Xinha, because we don't know that you didn't *really* want one.

You can strip it out server-side easily enough, using appropriate string functions of your chosen server-side language.


James Sleeman

Offline

Board footer

Powered by FluxBB