You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Original issue reported on code.google.com by
renggli
on 14 Jul 2010 at 9:33The text was updated successfully, but these errors were encountered: