This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I cannot for the life of me figure out why the various molstruct.indexOf() are returning values of -1 when molstruct clearly contains these strings.
I'm using Safari 5.0.3, MacOS 10.5.8. I don't know whether the same problem occurs in other browsers/systems.
Can you edit that string in that alert, it is long and not wrapping in the code block.
Are you sure molstruct is a string?
Joined: Dec 18, 2008
Ah, you hit the nail on the head. I wasn't aware of the typeof operator. Safari thinks the variable is an object, not a string. Now I just have to figure out why Safari doesn't realize it's a string. Thanks for your help.