Closed Thread Icon

Topic awaiting preservation: losing my spaces... Pages that link to <a href="https://ozoneasylum.com/backlink?for=8586" title="Pages that link to Topic awaiting preservation: losing my spaces..." rel="nofollow" >Topic awaiting preservation: losing my spaces...\

 
Author Thread
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 03-27-2003 01:07

Hello,
Not sure where the problem is, but I think it has something to do with the content-type, maybe the encoding. Whats happening is all spaces are lost when my javascript function posts the data found in a textarea to an asp page, i'm creating an xmlhttp activex object in javascript to handle this post. When I get the data back... all spaces are lost.
Basically, this asp page re-arranges this posted data and the javascript function which posted it then re-populates the textarea (with lost spaces).

Any ideas?

Karl


karl@laketahoegymnasticscamp.com

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 03-27-2003 18:05

Make sure you escape your data before sending it.



.:[ Never resist a perfect moment ]:.

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 03-27-2003 18:48

How does one escape the characters in javascript... I know how to do this in ASP.
Karl


karl@laketahoegymnasticscamp.com

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 03-27-2003 18:50

Use the escape() and unescape() functions.

« BackwardsOnwards »

Show Forum Drop Down Menu