Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript escape error

 
Reg Frenzy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jstl file which consists of a javascript snippet.


But when I run it I get an error saying "invalid property id" and when I look at the content - something like this has been passed. "data_res1","data_res1",. I need to have double quotes in the results as that's how I am parsing it in the javascript function. Any ideas on how this could be done?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are these server-side or client-side errors?
 
Reg Frenzy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Client side errors
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then showing us the server-side code isn't going to be particularly helpful. You should post the generated response that the browser sees.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic