Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am using eval() that runs well in IE8,9,10 and in firfox. But when I run my code in IE11 and chrome I don't get expected result means it doesn't work properly.
Please help me Is there any other function or substitute of eval that can give expected results in IE11 or chrome.


Many-many thanks in advance.



Thanks

Wasif
Posted
Comments
Pheonyx 25-Nov-13 4:57am    
Are you sure it is the eval function that is being the issue and not the values being passed to it?
Could you provide the javascript that is causing the issue.
Mohd Wasif 25-Nov-13 5:13am    
My function is some thing like this
GroupArr = eval(strFileTypeGroup);

it works fine in IE11 and Firefox but not in IE10
enhzflep 25-Nov-13 9:49am    
You'll have to show some code if you'd like members here to assist you to solve the problem.

Simply writing: GroupArr = eval(strFileTypeGroup); is really rather useless. You'll need to show us at a minimum, the contents of the strFileTypeGroup string.

You may need to provide more than that, too - it really depends on what the statement is ultimately trying to do.

Further to that, what do the debuggers of Chrome and IE11 tell you? A good idea would be to update your question with these details.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900