eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 3 4
text area (Read 1786 times)
Volf
eAuction User
**
Offline

Simple and powerful
Perl

Posts: 16

Gender: male
text area
01/05/06 at 21:55:20
 
Hello,

I wish to implement description in textarea, and this is simple to do,
but i have one problem, all text is in one line. and i dont like it.

Things must be simple for users, when user pres ENTER button,
he expect to get a new line. like in notepad
like this,

not like this:

when user pres ENTER button,he expect to get a new line. like in notepadlike this,


when you post auction, everything looks ok, but when you open preview, or item page all text
is in one line again.

I need a litle help to find solution.
and when finished, I will post it to forum.

Also i would like to know opinion about safety aspect of this (because there is no html input from users)
and are disable &enable_html, and strip_scripts  needed in this case,
(maybe disable &enable_txt will be solution???)

Thanks,
and sorry for my bad english,
I hope you will understand my question.


Back to top
 
 

Volf


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: text area
Reply #1 - 01/05/06 at 23:41:07
 
Volf wrote on 01/05/06 at 21:55:20:
Hello,

I wish to implement description in textarea, and this is simple to do,
but i have one problem, all text is in one line. and i dont like it.


That's the way a <textarea> field works :'(
But you can change each '\n' into '<br>'
Back to top
 
« Last Edit: 01/06/06 at 00:58:34 by Dieter Werner »  

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
Volf
eAuction User
**
Offline

Simple and powerful
Perl

Posts: 16

Gender: male
Re: text area
Reply #2 - 01/06/06 at 22:54:24
 
Hi Dieter,

No, I don’t think so, this is not a problem with text area.
i have already managed text area to display new rows by converting <br> to /n,

Maybe I have not explained good what i intent to do,

I want to display <textarea> instead of html_description in Sub: Display Item

1.when user post new auction, he press ENTER button for new row, and everything looks ok,
2.when he go to preview, ( mine is changed also <textarea> for description) all text is in one row,
3.and finaly when he go to his new auction,( mine is changed also <textarea> for description) all text in one row again.

I am aware that script store $desc data in one row, and what i need to finish it is to make script to write
<br> in data file (when user pres enter) ,
and again to read <br> and print \n when displaying it.( this part is done) $line =~ s/\<br\>/\n/gi;

Could you help?

Reason for replacing html description with textarea: (my private opinion)
1.As you already know, small auction sites are not made for experienced sellers, it is painful job to learn all members how to input HTML code, Also they do not read any help or FAQ, they usually think your site is not functioning, and go away, forever. Very bad outcome.
2. Increased security
3. More user friendly auction

I would also like to hear your opinion about safety aspect of preventing users to input any html code in auction.

Thank you for your time, and kind help.
Back to top
 
 

Volf


Advertising
View Profile   IP Logged
Pages: 1 2 3 4


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only