Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

CSS or X-Cart ? Input box return tag

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-18-2005, 11:20 AM
 
mpj mpj is offline
 

Senior Member
  
Join Date: Feb 2005
Posts: 106
 

Default 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
__________________
X-Cart 4.0.11


{My simple mods}
Adding Market list and % save on product detail
Quantity input box
Reply With Quote
  #2  
Old 02-18-2005, 12:10 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Not quite sure what you are talking about....post some code so we can see what you did....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-18-2005, 12:17 PM
 
mpj mpj is offline
 

Senior Member
  
Join Date: Feb 2005
Posts: 106
 

Default

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 ?
__________________
X-Cart 4.0.11


{My simple mods}
Adding Market list and % save on product detail
Quantity input box
Reply With Quote
  #4  
Old 02-18-2005, 12:20 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Did you try putting an html
tag in there to see what happens?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-18-2005, 12:26 PM
 
mpj mpj is offline
 

Senior Member
  
Join Date: Feb 2005
Posts: 106
 

Default

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.
__________________
X-Cart 4.0.11


{My simple mods}
Adding Market list and % save on product detail
Quantity input box
Reply With Quote
  #6  
Old 02-18-2005, 12:35 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:44 AM.

   

 
X-Cart forums © 2001-2020