Knowledge Base Article

Contact Tech Support
excel@excelsystems.com
 (250) 655-1766
 [7:30 - 5:00 PST]
Your Meeting ID will be Provided by a Rep.
Tech Support
Tech Support Home
Software Updates
Knowledge Base
Code Samples
Documentation
Technical News
Software Requirements
Support Testimonials
Contact us to...
Create a Ticket
Request a Free Demo
Suggest a New Feature
Submit Feedback
Upload a Large File
Other Services
Software Training
Professional Services
Product: Presto Created: 2010/02/08 Back to Search  
Number: 8199 Type: How to Rate This Article
 

Article Description

How can I use a Presto.Transform function call to display a default image if the image location is not valid, or the image can't be found?

Article Details

The following script will display the image referenced by the screen location in the src below.  If that image does not exist at that location, it is not a valid path or the user does not have authority to view the image, the default image specified in the onerror event will be displayed instead.

This code can be added at the very end of the Custom HTML on your Presto custom page.

<script >
Presto.Transform(
{
row: 11,  
col: 50, 
object: "image",  
src: "",  
onerror: "Presto.Transform({row: 11, col: 50, object: 'image', src: 'images/notfound.jpg'})"
});
</script >

 

Rate This Page

Did this knowledge base article help you to achieve your goal?  Yes  No  Don't Know

Enter additional comments below.   If you want to hear back from us, include your contact information.

Email Address:
Comments: