User Name Password Register
DaniWeb IT Discussion Community
All
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 427,196 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,159 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: 962 | Replies: 3
Reply
Join Date: Oct 2007
Posts: 6
Reputation: jiggy_g is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jiggy_g jiggy_g is offline Offline
Newbie Poster

Question Using ASCII codes??

  #1  
Mar 3rd, 2008
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
<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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,556
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 115
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Using ASCII codes??

  #2  
Mar 3rd, 2008
Such codes are usually not rendered.

Have you tried the code \r?

I don't know if a text box can handle page breaks - it is one page.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Oct 2007
Posts: 6
Reputation: jiggy_g is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jiggy_g jiggy_g is offline Offline
Newbie Poster

Re: Using ASCII codes??

  #3  
Mar 3rd, 2008
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!
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 6,863
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 23
Solved Threads: 344
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Lazy, Useless & Apathetic

Re: Using ASCII codes??

  #4  
Mar 7th, 2008
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.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 10:28 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC