gazdzid
asked on
Formating reports retun as entered
When I populate an html field with text now for example
I hit enter 2 times you can see the white space
My report is as follows:
When I populate an html field with text now for example I hit enter 2 times you can see the white space
I want my report to show the white space. Di I need to run the field through some kind of JS or class. I am generating the report from a jsp pulling from oracle.
I hit enter 2 times you can see the white space
My report is as follows:
When I populate an html field with text now for example I hit enter 2 times you can see the white space
I want my report to show the white space. Di I need to run the field through some kind of JS or class. I am generating the report from a jsp pulling from oracle.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The PRE tag is the preferred way but if you cannot use it for some reason you can always do a string replace in the Oracle call to replace the CR/LF with <br/>
ASKER
can you tell me the cause when using wrap within the tags as seen below gives a warning
" Iwak0043E Undifined attribute name (wrap)."
<textarea name="CONTACT_ADDR_DESCR" id="CONTACT_ADDR_DESCR" onchange="trim('CONTACT_AD DR_DESCR', this.value)" cols="70" rows="3" wrap="hard" onkeydown="limitText(this. form.CONTA CT_ADDR_DE SCR,this.f orm.countd own,2000); " onkeyup="limitText(this.fo rm.CONTACT _ADDR_DESC R,this.for m.countdow n,2000);" >Location Specific - Directions</textarea></td>
</tr>
" Iwak0043E Undifined attribute name (wrap)."
<textarea name="CONTACT_ADDR_DESCR" id="CONTACT_ADDR_DESCR" onchange="trim('CONTACT_AD
</tr>
Which browser are you using ?
The wrap attribute is not standard HTML. Did you try leaving it out ?
There might be a way to do it with CSS. You could ask at
https://www.experts-exchange.com/Developer/Web_Development/Web_Languages-Standards/CSS/
The wrap attribute is not standard HTML. Did you try leaving it out ?
There might be a way to do it with CSS. You could ask at
https://www.experts-exchange.com/Developer/Web_Development/Web_Languages-Standards/CSS/
ASKER
rrz@871311:
I did try leaving it out and added <pre> to the report. I received the same warning. Then I duplicated the field outside of the <table> the warning went a way. can I have pre inside of a table?
I did try leaving it out and added <pre> to the report. I received the same warning. Then I duplicated the field outside of the <table> the warning went a way. can I have pre inside of a table?
ASKER
Hey thanks it works!!
>can I have pre inside of a table?
Yes. Thanks for the points.
Yes. Thanks for the points.