Brudderman Posted November 28, 2006 Posted November 28, 2006 I have a web viewer configured to view bitmap scans of purchase tickets. Since the bitmap files are named based on the ID field, the file path to the saved file (e.g., c:scans00019.bmp) is easy to calculate. With a script activated with the View button, then, I open a pop-up window with a web viewer for viewing the file. This works well, but if a particular ticket hasn't been scanned, there's no file at the computed path and the web viewer displays an error page. How can I check for the existence of the file before displaying the web viewer? Alternatively, can I trap a web viewer error for a bad URL? As an added feature, it would be nice to have the View button be visible only when a valid path exists. I'd appreciate any thoughts on how to do this. Thanks!
Recommended Posts
This topic is 6638 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now