|
extracting specific information from HTML documents
Hello,
I am trying to write code that will extract information from an html page and print the information. The html page will list codes a company uses to identify a wide range of colors in their available swatches. The html page allows a customer to drag and drop colors on to pictures and when done the customer can print out the page (final picture) and bring it in to the company for ordering. Within the HTML are the colors used to create the final picture.
I am a novice with Javascript but am somewhat familiar with code structure. Each color that can be used has a two letter prefix and there are only two possibilities (BW and BS). I need to insert a script that provides a button that when clicked will write a report of the colors in the html file. Is it possible to write Javascript that will look for BW## or BS##, collect those codes and then print them out when the button is selected?
I'll need to customize it and may ask for further assistance but right now I'm trying to work that script which will simply print a list of all BS and BW colors used within the web page. Any help is much appreciated.
Jim
Last edited by jim1061; 08-22-2005 at 07:09 PM..
|