quantumclaustrophobe
New Member
I'm building a part number cross-reference tool using XML and javascript. A (very)few of the part numbers contain spaces. I'm building droplists based on the XML data, which is working, except for the part numbers which containing the spaces. The option values for those part numbers is truncated at the location of the space character, and then the look up for the cross reference is confounded. I've tried replacing the spaces in the XML file with - but my XML editor(XML Spy) will not allow that. I've tried using %20, and interestingly the cross reference (a 'regular expression' comparison) is working, but the part numbers look bad (they include the '%20') in both the drop lists, and in the displayed results.Any ideas? Thanks in advance!