in the server side I have the route that receive the perl dancer paramemtersuse Dancer ':syntax'; our $VERSION = '0.1'; get '/PopUp' => sub { my $jsonFile={jj =>"{"name":"jsonFileexample","problem":"thisIsThrProb +lem\"withComma"}"} template 'PopUp' ,{'sendfileToserver'=>$jsonFile}; };
so here in javascript I had the error , that some thing is wrong with the json file when I look at the error I saw that json file is missing the \<script> var customjsonList ="<%customCommands%>"; alert(customjsonList.children.length) var output=customjsonList .split(","); alert(output) </script>
I have perl dancer "Dancer 1.3202" thanks Rami D.{"name":"jsonFileexample","problem":"thisIsThrProblem"withComma"}" }
In reply to Re^2: perl dancer route template hashref pass complex json file to server issue
by RamiD
in thread perl dancer route template hashref pass complex json file to server issue
by RamiD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |