JS Scripting parsing error

Cannot parse the javascript statement below

var strRepoDate = <%= "\""strRepoDate"\""%>;

0
5 comments
Avatar
Permanently deleted user

Context please...
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Cannot parse the javascript statement below

var strRepoDate = <%= "\""strRepoDate"\""%>;



0
Avatar
Permanently deleted user

Context please...

Context is Javascript of course, but what the expected behaviour should be is an open question, i.e. does this stmt should be red?
What about

var strRepoDate = ; or ]]>

I guess we are at the point were some things are beter left unspoken (unchecked) ...

0
Avatar
Permanently deleted user

Andrei Tokar wrote:

>>Context please...


Context is Javascript of course, but what the expected behaviour should be is an open question, i.e. does this stmt should be red?
What about

var strRepoDate = <%= strQuotedRepoDate %>;


More context would be to say "javascript within a JSP file".

In a straight HTML file that would be invalid javascript.

0
Avatar
Permanently deleted user

I see the same problem with all constructs inside javascript

0
Avatar
Permanently deleted user

It seems that same problem appears when mixing CSS Styles and JSP insertions



...

]]>

0

Please sign in to leave a comment.