Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 717883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:27:47+00:00 2026-05-14T05:27:47+00:00

I am passing value of text-area in a.cfm in variable of GetXmlHttpObject to b.cfm

  • 0

I am passing value of text-area in a.cfm in variable of GetXmlHttpObject to b.cfm page and displaying the value in a . How can I get exact formatting of the text I entered in text-area of a.cfm page into div of b.cfm page.

a.cfm
    <textarea name="sum1#i#" id="sum1#i#" html="yes" cols="98" rows="5"></textarea> [my text area]
    url=url+"?dept="+iden+"&desc="+encodeURIComponent(desc); [desc: value of text area]

b.cfm
    <cfoutput>
    <div style="border:1px solid">#URLDecode(desc)#</div>   
    </cfoutput>

Like I am sending value as ‘hellothere’
encodeURIComponent: ‘hello%0Athere’

but its appearing as ‘hello there’ [in one line]
I want it to be in: ‘hello <break-line> there’ [in two different lines, means in the same format as it was in text-area]

Thanks!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:27:47+00:00Added an answer on May 14, 2026 at 5:27 am

    The <pre></pre> tags will preserve spaces and newlines.

    <cfoutput>
        <div style="border:1px solid"> <pre>#URLDecode(desc)#</pre> </div>   
    </cfoutput>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble passing the return value from TheMethod() to Main and displaying
I'm passing query string parameter to .aspx page with 'Ñ' character in value. But
I want to add an additional value into an array before passing it to
I want to pass the string value which I get from the textarea into
I'm building an essay contest page. The essay can be written into a textarea
I have a text input and a textarea and I'm passing the value from
I'm trying to glue together two web services by passing a value from one
I have a JTextField that I'm not always passing a value to, but it
I got the answer NO! Because passing by value and passing by reference looks
I know that when passing an object by value to a function, the move

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.