Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy I need to convert a string into an object? How.

    I have always found you all to be very helpful, so let me say thank you in advance - thank you.

    I have a functions: some(objectId) and another(objectIdString).
    Now another() needs to call some() but objectIdString is not what some() needs.

    Now how do I, if possable, convert a string to its object equifalent?
    In some places I have used eval() and it seemed to work.
    Ok my friends, what o you suggest.

    Joseph - greatful for any help I can get.

  • #2
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

  • #3
    New Coder
    Join Date
    Nov 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello sir,

    Thank you very much for your wonderful suggestions.
    I have actually seen that code before but it did not come to mind.
    Thank you it will work just fine.

    Joseph - must be a newbie


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •