Hi All,

What is the recommended way to test whether a client's browser has a
particular JavaScript object (e.g. localStorage, JSON) and to get the
answer into an XQuery?

Here's what I'd like to be able to do:

let $has-local := my:client-JS-has("localStorage")
return
  if ($has-local) then (
    ...
  )
  else <p>Sorry. Your browser would need local storage to do that.</p>

Best,

Tim Finney


_______________________________________________
General mailing list
[email protected]
http://community.marklogic.com/mailman/listinfo/general

Reply via email to