JSONLiteral is a hack ... in fact, it transforms what is being sent
into something that is no longer JSON. This is necessary for certain
components that initialize themselves using JavaScript object notation
(not JSON, which is a specific subset). The JSONLiteral often is a
symbol (to reference a
I found the fix passing the arguments like javascript objects, this is my
code Taha :
@Import(library = {
"context:js/jqplot/jquery.jqplot.min.js", // jqplot base
"JQPlotInit.js",
"context:js/jquery-ui-resizable-1.8.6.min.js",// resize
"context:js/jqplot/jqplot.canvasTextRenderer.
Can you share the code ?
regards
Taha
On Thu, Jul 14, 2011 at 5:38 AM, iberck wrote:
>
> Taha Hafeez wrote:
>>
>> By using JSONLiteral you are sending the value without quotes. But the
>> problem is how your value is interpreted by javascript. A string
>> literal without quotes will be interpret
Taha Hafeez wrote:
>
> By using JSONLiteral you are sending the value without quotes. But the
> problem is how your value is interpreted by javascript. A string
> literal without quotes will be interpreted as a variable and as that
> variable is not defined you will get an error.
>
> Can you sha
By using JSONLiteral you are sending the value without quotes. But the
problem is how your value is interpreted by javascript. A string
literal without quotes will be interpreted as a variable and as that
variable is not defined you will get an error.
Can you share the actual code ?
regards
Taha
I'm using
Taha Hafeez wrote:
>
> Hi
>
> When you specify something as a JSONLiteral, it is displayed as is and no
> quotes are applied. So the JSON is your case becomes
>
> { strkey: strvalue}
>
> so javascript tries to find the variable strvalue which is not there.
>
> When you don't specif
Hi
When you specify something as a JSONLiteral, it is displayed as is and no
quotes are applied. So the JSON is your case becomes
{ strkey: strvalue}
so javascript tries to find the variable strvalue which is not there.
When you don't specify JSONLiteral, JSON is
{strkey : "strvalue"}
which i
When I send the JSONObject: jsSupport.addInitializerCall("test1",
jobj.toCompactString()); IT WORKS
Thanks in advance ;)
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/T5-2-6-JSONLiteral-Bug-tp4584187p4584206.html
Sent from the Tapestry - User mailing list archive at Nabb