• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Error when string is passed from JSP

Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I've already posted this problem in another Forum, but didn't got any response. Sorry to repeat this post here. I have a very good experience at this site and expects somebody to help me.
I have a problem with a script on my page.
I am fetching a huge amount of data , as a string from JSP and passing to Jscript. Then I am using this data to format this and use this through out the page.To explain I am pasteing the actual code of application:
function DecodeObjectAndCallCallback(result, name)
var e = "var o = " + result;
.......some code....
Here 'result in the function is a very long string. At the line having 'eval(e)', my browser is giving a script error mentioning "script error at line (line number of 'eval(e)'."
I am sure that eval(e) is causing the problem.
However, on IE browsers of some machines, this function causes no and passes smoothly, and 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?
If you want more explanation of the problem, Pl respond.
Thanks in advance
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ur question not very clear. your JScript is giving some error at some particular line. thats all i came to understand. there's something u r missing , probably some syntax.
n e way if u give some piece of code about both the functions involved and where r they written (means in same file or diff.).
plz. check once again. if its running on one browser and not on other than there's some error in your syntax. since browsers e.g. ie5.0 ignores some simple mistakes in javascript syntax but same code netscape navigator won't pass.

    Bookmark Topic Watch Topic
  • New Topic