Forum Moderators: coopster

Message Too Old, No Replies

Why is not break in lines with jGrid?

         

toplisek

6:12 am on Jun 7, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have set BREAK into field and MYSQL table is working with break. But inside jGrid this is not seen even MySQL table has break.

Can be solved this in some way?

jspeed

6:32 am on Jun 7, 2011 (gmt 0)

10+ Year Member



Could you post a code example, or expand on the error you are getting? It may help to diagnose.

toplisek

6:45 am on Jun 7, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



there is any error. It is issue that MYSQL has BREAK of the line inside field. When I connnect to jGrid table it will not be seen.

coopster

10:31 am on Jun 7, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What is jGrid?

coopster

10:34 am on Jun 7, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The Joomla extension? Then I assume it is your html formatting to which you refer. Remember that whitespace in HTML is collapsed. If you want to see line breaks you need to format the output in a way that will show the breaks. echo or print the value to a textarea element and you will see the line breaks. Or echo the content inside <pre> formatting. If you want the breaks to appear in an HTML table cell, you can use the PHP function nl2br().

toplisek

10:43 am on Jun 7, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Please find jGrid:
[trirand.com...]