I created a 25% transparency image that I show in a webImageViewer behind some text on the first page of my web app. It looks great in the debugger, but does not show at all after it is compiled. The png image is in Resources file and I have tried sending it to both the front and back without success. I am using Xojo 2025r2.1` which is the last one without renewing my license. I am doing this for free for a charity so I would hope to not have to update my license.
Can you post a sample project that shows the issue? Don’t just copy and paste code, the controls you’ve chosen to use on the WebPage are important too. After you save the project, zip it and you can drag-drop-upload the zip to the forum.
Here is the whole project as it stands now along the png file.
Marines Muster102.zip (299.0 KB)
It works fine here, but I’ve had to make adjustments to the database connection code.
Are you seeing absolutely nothing at all? That could be a DatabaseException being raised in Session.Opening. I’m on Mac and the FolderItems were invalid for my system, causing CreateDatabase to silently fail and then reach ExecuteSQL where it would not get caught. That’s when I saw a totally blank page.
It shouldn’t be the case in 2026, but your web browser could be relevant. More than 15 years ago some web browsers didn’t support transparent png. What web browser and platform are you viewing the page on?
I mostly use Windows and I get the same result with Firefox, Chrome, Edge and Safari. Maybe its a Windows thing. I have a four or five year old MacMini at home and I’ll see if I get better results compiling with it. What version of Xojo did you use?
I used the version you’re using: 2025r2.1
What is the behavior you are seeing? A totally blank page? Or is it just that the image doesn’t load (and the text still does)?
If it’s a totally blank page and occurring in all three browsers the DatabaseException during Session.Opening seems likely to me.
I made a stripped down version of the app, no database and none of the containers that used the database. At first, I had trouble even getting the browser to launch. As I put break points in more parts it started working. At one point the text showed without the watermark, when I cleared the break point, the watermark appeared. I compiled the test app and the watermark was there. That gave me the idea to update the browser in the shown event for the container. Now it works in both the debugger and compiled version. Thanks for your help Tim. I might not have found it thrashing around myself.