escape("*string*") ?

...wondering if there is a built-in Prototype.js way



On 5/21/07, Mark Holton <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm getting errors when I pass a "?" or a "#" to my server side code.  So
> for instance, let's say I'm saving a "name" and a "memo", and someone
> decides to include a "?" in the text of their memo.  It causes an error when
> sent to the server side code.  Is there a way, in Prototype, to make sure it
> passes the whole string and to not interpret pieces of the string passed
> in?  I am passing the string in as $('txtMemo').value, for example.
>
> (when it's a numeric value, and in other cases I pre-process the string on
> the server side to avoid SQL-injection, etc, but these two characters in
> particular, "?", or "#" are causing the error to occur).
>
> Many thanks for any heads up there.
> cheers,
> Mark

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to