X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   CSS or X-Cart ? Input box return tag (https://forum.x-cart.com/showthread.php?t=12268)

mpj 02-18-2005 11:20 AM

CSS or X-Cart ? Input box return tag
 
The new input boxes I've added into X-Cart doesn't seem to catch the return tag.

For example.

For Product Details:

If I type

1
2
3

Output would be :

1
2
3.

For my new Field (Warranty Details):

If I type

1
2
3

Output would be:
123


I can't seem to figure this out. Any Ideas ?

Thanks

balinor 02-18-2005 12:10 PM

Not quite sure what you are talking about....post some code so we can see what you did....

mpj 02-18-2005 12:17 PM

I'm refering to the input box when adding or modifiying products.


When I type a sentence and use a "return/enter tag" like this
-----------------------
1 (return)
2 (return)
3 (return)
-----------------------

Page output would be

--------------------
1
2
3
--------------------

This is correct and logical.


But I've added a new input box field called "Product Warranty"

So when I type in thie new input box
-----------------------
1 (return)
2 (return)
3 (return)
-----------------------

Page output would be

--------------------
123
--------------------

instead of

--------------------
1
2
3
--------------------


The weird thing is the database shows the input text as

--------------------
1
2
3
--------------------

but display is still

--------------------
123
--------------------

does it make sense ? :lol:

balinor 02-18-2005 12:20 PM

Did you try putting an html
tag in there to see what happens?

mpj 02-18-2005 12:26 PM

a break does return it but it's hard to insert a
everytime you type a full paragraph.

Ok for example. Like this REPLY BOX I'm typing in.


I can type like this

ABC
ABC
ABC

and the page will display whatever space or return/enter tag I submit in this box.


But when I type like this in my input box

ABC
ABC
ABC

it will show up as

ABCABCABC


I guess it's not displaying the soft returns from the input box.

balinor 02-18-2005 12:35 PM

Some boxes do, and some don't. The easiest solution is to type the
tags. Perhaps someone else can shed some light on the logic of how text boxes are configured from a html/non-html perspective.


All times are GMT -8. The time now is 06:41 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.