It's not a secret anymore!
The moose likes Servlets and the fly likes 'Syntax error'? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark " Watch " New topic

'Syntax error'?

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a problem with a script on my page.
It accesses a pretty large string variable passed from another page, and does an eval() function on it.
However, on some browsers, this function causes an error to be thrown. The error message is simply the line number of the eval() function, and 'Syntax error'.
This behaviour is not consistent, as other machines show it only if you have multiple browsers open at the same time, hitting the page together. If it's a single browser, the function is executed peacefully, showing results as expected.
I've tried changing virtual memory settings, but still am not getting anywhere.
Has anyone faced this problem before? What can I do about it?
I agree. Here's the link:
subject: 'Syntax error'?
jQuery in Action, 3rd edition