User Profile

Collapse

Profile Sidebar

Collapse
komaruloh
komaruloh
Last Activity: Apr 9 '08, 04:40 AM
Joined: Mar 28 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • komaruloh
    replied to javascript eval problem
    That sure is helps.

    thanks alot
    See more | Go to post

    Leave a comment:


  • komaruloh
    replied to javascript eval problem
    So the point is to use parentheses to let the js interpreter know that it is an expression. That way it can interpret it correctly, Is that so?

    thanks for sharing your knowledge.
    See more | Go to post

    Leave a comment:


  • komaruloh
    replied to javascript eval problem
    Thanks for the quick reply.
    Correct me if I am wrong, are you saying that it is because the curly braces rather than the JSON. I meant because it contains a curly brace in the first character, the js interpreter (could) be misunderstood....
    See more | Go to post

    Leave a comment:


  • komaruloh
    replied to javascript eval problem
    Sorry to drop in, but I really have to ask. When I eval() a JSON object in a text form, it goes error.
    Code:
     
    var jsonText = "{"name":"json"}"; 
    var jsonObj = eval(jsonText);
    I've found out that I can do this instead :
    Code:
     
    var jsonText = "{"name":"json"}"; 
    var jsonObj = eval('('+jsonText+')');
    that I have to...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...