| Author |
Error when string is passed from JSP
|
Udit Singh
Greenhorn
Joined: Sep 18, 2000
Posts: 22
|
|
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; eval(e); .......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 Regards Shikhar
|
 |
Harish Kashyap
Ranch Hand
Joined: Jun 14, 2000
Posts: 118
|
|
hi 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. bye harish
|
 |
 |
|
|
subject: Error when string is passed from JSP
|
|
|