Ok... this makes *no sense* (to me!) but then hopefully someone out
there will have an answer.

I have been using the Edit In Place from http://davehauenstein.com/blog/
to update some form fields using AJAX.

All was going well until I noticed that spaces were being removed
(e.g. 'Bob Jones' would become 'BobJones')

The strange thing is that I ran this on an XAMPP server and it worked
fine (spaces were retained) but when I ran it on my IIS server - the
spaces were removed.

The difference is in the data line:
----snippit which doesn't work----
$.ajax({

                url: "results.asp",
                type: "POST",
                data: 'requestID=350&elementID=' +
                                'ajax' + '&update_value=1 2 3 4 5',

---- end of snippit ----

--does work (on both IIS and APACHE ) --

$.ajax({

                url: "results.php",
                type: "POST",
                data: { requestID: "350", element_id: 
"firstname",update_value:" 1 2
3 4 5 " },

--- end of snippet---

Seems like the top one must be URL Encoded - but not done in a way IIS
can interpret?

Anyway - looks like I will be passing a map or using a new Edit In
Place (any suggestions).

You can see the code working on APACHE at 
http://www.snowpool.org.nz/test/test.htm
- I cannot link to the ASP code... however the HTML file is basically
identical - and both results pages just print out the contents of the
form..


Any ideas? :)

Thanks!
Patrick


Reply via email to