Click to See Complete Forum and Search --> : ASP newbie: need to mix ASP code and user interaction


JazzcatCB
08-04-2005, 01:56 AM
I have a web page that can be broken down into several phases. I'm using IMDB.com to clean up some raw movie ratings data before putting it in my database.
1. it opens a text file with raw movie ratings data in it and reads a line. (ASP operation)
2. it opens a new window to IMDB.com with the raw movie ratings data as a search term.
3. I save the resulting IMDB.com HTML to disk.
4. back on my page, I click a button to read the IMDB HTML and parse it. (ASP operation)
5. I use the parsed IMDB data to create a cooked movie ratings record.
6. I append that cooked record to a text file. (ASP operation)

Then I start the process over again at the first step with a new raw movie ratings line.

The problem I'm running into with ASP is that ASP needs to process all of the code on the page before sending it to the browser -- but some of the ASP code (steps 4 and 6) can't be executed until some user interaction or background processing has taken place on the page.

The main problem is that I must use ASP to do these file operations. If I could do it in JavaScript or some other client-side scripting language, it would make things so much easier.

Any ideas?

minority
08-04-2005, 03:06 AM
could you not send the information from 4 and 6 back to server (Different page) that way asp will do it for you.