Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read Java script values with Delphi

Status
Not open for further replies.

draakans

Programmer
Dec 20, 2007
13
CA
Hey guys,
Is it possible to run a delphi program and read a value that is written on a Java Script page?

To make it clear, my job system is using an Java Script page and I'd like to read values in the page when I press the "Save" buttons. Those are basically hours I've work.

I have to enter it in their system and into my own Excel file... I've made a little application that write them manually on excel but i'd like to push it further and make it read values directly on the Java page. Then copy them to the Excel file.

thx
 
Is it a webpage? If so then you should be able to parse the document. One way would be to right-click on the page and select View Source. Copy and paste the source into your Delphi application (into a TMemo, perhaps) and parse out the fields. You might also create your own wrapper for a web browser and access the webpage source that way. There might be other ways as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top