Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters in AJAX requests are not always properly encoded #585

Closed
GoogleCodeExporter opened this issue Mar 25, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

When I am sending a javascript string value containing a '+' character inside 
to an ajax callback in seaside, the '+' comes out as a whitespace on the other 
end (in Smalltalk).
This is what I am doing:

html jQuery ajax
       callback: [:value | ... the value here always gets the ' ' instead of a '+' ]
       value: (html jQuery id: #foobar) value

-or-

html jQuery ajax
       callback: [:value | ... the value here always gets the ' ' instead of a '+' ]
       value: (JSStream on: 'javascriptVarContainingAStringWithAnAdditionSymbol')

Original issue reported on code.google.com by renggli on 14 Jul 2010 at 9:33

@GoogleCodeExporter
Copy link
Author

The method JSJoin>>#javascriptElementOn:on:  is a nest of subtle bugs.

- parameter names and string values need an URL and a Javascript encoding (both 
are missing in both cases)
- javascript code needs to be wrapped in encodeURIComponent on the client side, 
unless this is already done by the calling function (such as in the case of 
#serialize)

Original comment by renggli on 14 Jul 2010 at 10:38

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Name: Javascript-Core-lr.88
Author: lr
Time: 14 July 2010, 1:39:31 pm
UUID: 0eefa910-8273-4c73-b6d2-c3cff440d5eb
Ancestors: Javascript-Core-DaleHenrichs.87

- Issue 585:    Parameters in AJAX requests are not always properly encoded

Name: Javascript-Tests-Core-lr.58
Author: lr
Time: 14 July 2010, 1:39:11 pm
UUID: 29f1af46-400d-4c94-a508-bcf46e4207ed
Ancestors: Javascript-Tests-Core-lr.57

- Issue 585:    Parameters in AJAX requests are not always properly encoded

Name: JQuery-Tests-Core-lr.122
Author: lr
Time: 14 July 2010, 1:39:44 pm
UUID: e45dd303-8c8c-4155-8b5d-014ac0304455
Ancestors: JQuery-Tests-Core-obi.121

- Issue 585:    Parameters in AJAX requests are not always properly encoded

Original comment by renggli on 14 Jul 2010 at 11:40

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

For your information: this works just fine now!

thanks!

Original comment by johanbri...@gmail.com on 22 Jul 2010 at 12:16

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant