luisescmar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-23 20:35 UTC
Character # do not allowed in new prototype''s version
Hi. I used prototype: version 1.5.0_rc1 To be able to use the last prototype window''s version, i had to change to prototype: version 1.5.1_rc3 I use Ajax.Request, and in some params i have this character: # With v1.5.0_rc1 i have no problems. i receive the params in php same that i sended in javascript, but in this new version, when find this character, it cuts the string and i don''t receive the same param that i sended. what is the problem?? and more important... what is the solution?? thanks for your time ^_^ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Tom Gregory
2007-Aug-23 20:50 UTC
Re: Character # do not allowed in new prototype''s version
On Aug 23, 2007, at 2:35 PM, luisescmar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> I use Ajax.Request, and in some params i have this character: # > > With v1.5.0_rc1 i have no problems. i receive the params in php same > that i sended in javascript, but in this new version, when find this > character, it cuts the string and i don''t receive the same param that > i sended.From your description, it sounds like you''re building your query string by hand ... and not properly URL-encoding the ''#'' character. (Recall ''#'' is used for page anchors.) Newer version of Prototype allow you to pass a Hash/Object in to the request''s parameters option. Doing it that way would save you from having to do the encoding yourself. TAG --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
luisescmar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-24 16:19 UTC
Re: Character # do not allowed in new prototype''s version
On 23 ago, 22:50, Tom Gregory <t...-PGZyUNKar/Q@public.gmane.org> wrote:> On Aug 23, 2007, at 2:35 PM, luisesc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > I use Ajax.Request, and in some params i have this character: # > > > With v1.5.0_rc1 i have no problems. i receive the params in php same > > that i sended in javascript, but in this new version, when find this > > character, it cuts the string and i don''t receive the same param that > > i sended. > > From your description, it sounds like you''re building your query > string by hand ... and not properly URL-encoding the ''#'' character. > (Recall ''#'' is used for page anchors.) Newer version of Prototype > allow you to pass a Hash/Object in to the request''s parameters > option. Doing it that way would save you from having to do the > encoding yourself. > > TAGyou don''t understand to me. I didn''t want to pass a hash. I only wanted to pass the string with ''#'' character on it like i did with the other version, because i use that for a special encoding for my database. i don''t find the solution, but i changed ''#'' character for ''@'' character and it works (and if it works... don''t touch it!! ^_^). Now i can to pass strings encoded strings with special characters like ''ñ'', marked vowels or ''¡'' using ''@'' character for to encode (only i hope this fix will work in any other case ;) ) Thank you very much for your response ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Tom Gregory
2007-Aug-25 16:22 UTC
Re: Character # do not allowed in new prototype''s version
On Aug 24, 2007, at 10:19 AM, luisescmar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:>> From your description, it sounds like you''re building your query >> string by hand ... and not properly URL-encoding the ''#'' character. >> (Recall ''#'' is used for page anchors.) Newer version of Prototype >> allow you to pass a Hash/Object in to the request''s parameters >> option. Doing it that way would save you from having to do the >> encoding yourself. >> >> TAG > > you don''t understand to me. I didn''t want to pass a hash. I only > wanted to pass the string with ''#'' character on it like i did with the > other version, because i use that for a special encoding for my > database. > > i don''t find the solution, but i changed ''#'' character for ''@'' > character and it works (and if it works... don''t touch it!! ^_^). Now > i can to pass strings encoded strings with special characters like > ''ñ'', marked vowels or ''¡'' using ''@'' character for to encode (only i > hope this fix will work in any other case ;) )It sound like you''re still not quite understanding how Prototype can solve your problem (and that parameters passed as a query string need to be URI encoded). The following statements are functionally equivalent: var value = ''bit#baz''; new Ajax.Request(url, { parameters: {foo: value} }); new Ajax.Request(url, { parameters: ''foo='' encodeURIComponent(value) }); http://prototypejs.org/api/ajax/options TAG --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- Prototype's cumulativeOffset() is not a function
- Is JavaScript JSON Hijacking problems present/considered in Prototype's coming release?
- Extract vowels and consonants using Ruby Regex
- need help creating means table
- LDAP Authentication fails with ñ character in password.