•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 332,580 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,103 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 533 | Replies: 3
![]() |
•
•
Join Date: Oct 2007
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
Hello List!
I'm having a problem getting a line break/feed on a page...I'm passing parameters from one page to another (this particular one is being passed to a textarea), and would like to pass them with page breaks between them...
Here's my current code
'IssueCreator.asp':
Currently in the textarea I'm seeing:
Location: Atlanta-30th Floor-3034BOccupant: Andersen, JasonCurrent Station Type: Floor Shared
What I WANT:
Location: Atlanta-30th Floor-3034B
Occupant: Andersen, Jason
Current Station Type: Floor Shared
How can I accomplish this? Someone said to use the ASCII code for the line feed, but I haven't been able to get that implemented...
Thanks in advance for your time and expertise!! It is greatly appreciated!
-jiggyg
I'm having a problem getting a line break/feed on a page...I'm passing parameters from one page to another (this particular one is being passed to a textarea), and would like to pass them with page breaks between them...
Here's my current code
<script language="javascript">
openIssuesWindoid('../../GUtilities/IssueCreator/IssueCreator.asp?name=<%=session("userFullName")%>&email=<%=session("userEmail")%>&summary=Station Type Change Request&description=Location: <%=LocStringsArray(z)%>Occupant: <%=OccupantStringsArray(z)%>Current Station Type: <%=StationTypeStringsArray(z)%>&client=<%=session("currentClientID")%>&site=4-1-Where');
</script>'IssueCreator.asp':
<tr>
<td width="100%" colspan="2">
<br>*Detailed Description:
</tr>
<tr>
<td width="100%" colspan="2">
<textarea cols="55" rows="10" name="txtDescription"><%=Request.QueryString("description")%></textarea>
</td>
</tr>Currently in the textarea I'm seeing:
Location: Atlanta-30th Floor-3034BOccupant: Andersen, JasonCurrent Station Type: Floor Shared
What I WANT:
Location: Atlanta-30th Floor-3034B
Occupant: Andersen, Jason
Current Station Type: Floor Shared
How can I accomplish this? Someone said to use the ASCII code for the line feed, but I haven't been able to get that implemented...
Thanks in advance for your time and expertise!! It is greatly appreciated!
-jiggyg
•
•
Join Date: Oct 2007
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
Thanks for the reply.
Yes, I've tried \r, \n, \r\n, \n\n.... I've been looking up solutions without any luck, so as a last resort I came to the forum for help...
It is two pages the first one opens a new window, which is in a second page.
Any other possible solutions or ideas would be greatly appreciated!
Yes, I've tried \r, \n, \r\n, \n\n.... I've been looking up solutions without any luck, so as a last resort I came to the forum for help...
It is two pages the first one opens a new window, which is in a second page.
Any other possible solutions or ideas would be greatly appreciated!
Insert line breaks in server side code, in your case that being ASP. The formatting will be preserved as it is in the textarea. Your rendered textarea should look like:
<textarea cols="55" rows="10" name="txtDescription">Location: Atlanta-30th Floor-3034B Occupant: Andersen, Jason Current Station Type: Floor Shared</textarea>
Last edited by ~s.o.s~ : Mar 7th, 2008 at 1:21 pm.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
Similar Threads
- How to convert Scancode to ASCII. (C)
- print corresponding ascii for letters (Assembly)
- Display image from a database get me ascii codes (ASP)
- Prog to list ASCII codes (beginners' stuff) (C)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: javascript variable issue
- Next Thread: non calculating values



Linear Mode