Hi,
What am I doing wrong? I'm trying to output a javascript object into
the page (so my front end guy can do some stuff with the data without
parsing it out of elements by id) but it's replacing all the double
quotes with " (only in view source - if I inspect it then firebug
converts them to double quotes again)
I've copied the example from Exploring Lift, but it still does the
same:
& ".data_as_object *" #> {
JsCrVar("myObject", JsObj(("persons", JsArray(
JsObj(("name", "Thor"), ("race", "Asgard")),
JsObj(("name", "Todd"), ("race", "Wraith")),
JsObj(("name", "Rodney"), ("race", "Human"))
))))
becomes
<div class="data_as_object" style="display: none;">var myObject =
{"persons": [{"name": "Thor",
"race": "Asgard"}, {"name":
"Todd", "race": "Wraith"},
{"name": "Rodney", "race":
"Human"}]
};</div>
I've noticed that if what I'm outputting is a number rather than a
string then it's fine.
I'm running Scala 2.8.1 and Lift 2.2RC1 - it's a normal templated SBT
project from the archetype.
Catherine
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Catherine