Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem in passing a string from a textarea to the URL calling transaction

I am passing a long string data with spaces through a textarea in html to a stored procedure which will update the records.

The spacing in between the string(meaning columns) for one row is just only one tab (“\t”). The rows are separated by two spaces, one for carriage return(char13) and line feed char(10).

Can you guys please help me with the appropriate CSS for text area which will consider these space requirements (tabs, carriage return and line feed char)?

I am passing this string as an input parameter to the transaction by calling a url through a ajax call. The problem is that the formatted string is passed as a whole ignoring the spaces which is giving me the errors. So basically the string gets altered before it is sent to the url. How do I ensure that the string which is passed to the url doesn't get changed..and is passed as it is?

My textarea code is like:

<textarea rows:"20" cols:"120"> </textarea>

will dimensions affect the spacing ? And if so, could you please also help me in designing the appropriate dimensions that include these defined spaces?

I have also read on net about the white-space CSS property but did not exactly understand how to incorporate that...



Former Member
Not what you were looking for? View more on this topic or Ask a question