On Wed, Jan 4, 2012 at 12:42, Scott Chapman <[email protected]> wrote:

> I'm going to be hitting a URL from qx.data.store.JSON. It will have spaces
> and other "unsavory" characters in it.
>
>       var jsonLateKioskFetcher = new qx.data.store.Json(null);
>       this.__jsonHostFetcher.setUrl("/kiosk_find/" + search_for);
>
> Does qooxdoo have a routine to URL-encode the "search_for" data here or
> should I look to other Javascript libraries?
>

You needn't look to a framework for such a function; JavaScript provides it
natively.

encodeURI() encodes an entire URL/URI. If you're building up your URL piece
by piece, you can encode each component with encodeURIComponent().

Are you sure, however, that qx.data.store.Json doesn't already encode the
URL for you?

Derrell
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to