electricshoe Posted January 15, 2008 Share Posted January 15, 2008 I'm using php to generate html, that has a javascript event, that calls a function that builds a string of java functions that is eval'd by java. The problem is this creates triple nested quotes and I have no idea how to do it. The problem looks like this: <a onclick="java_function_1('variable_1','java_function_2("variable_2","variable_3","etc")')" What should I do for quotes for the variables in java_function_2? This is something that has bugged me for a while but I've never had to deal with it until now. Thanks 10 million in advance:) Quote Link to comment Share on other sites More sharing options...
electricshoe Posted January 15, 2008 Author Share Posted January 15, 2008 Figured it out, it wasnt an explicitly a java problem. Just had to use multiple escapes per level, and in the php generator I had to use escapes for the escapes to get it in so in php the quote was escaped by \\\' and in java the output was \' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.