in reply to Re^10: perl dancer route template hashref pass complex json file to server issue (the reverse)
in thread perl dancer route template hashref pass complex json file to server issue
thanks ,
the following worked with me
without any change in client side, Rami D.<!DOCTYPE html> <html> <head> </head> <body> <div style = "padding: 100px 100px 10px;"> <script> var test2=<%passtoserver | replace('"', '"') %>; var test3=JSON.stringify(test2); alert(test3); </script> <button type="text" > </div> </body> </html>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^12: perl dancer route template hashref pass complex json file to server issue (')
by tye (Sage) on Jul 30, 2016 at 19:19 UTC |
In Section
Seekers of Perl Wisdom