One server, two databases with very similar design, the design hasn’t been touched or changed since 2001/2002, and was developed for R5. The server is now running r6.5.x and it is Windows.
In WebPages database the documents render correctly on the web when you import a graphic into a document. In HomePages they don’t, you get the ‘not found’ graphic. (Same thing with attachments.) The databases are used to create Intranet content, so the user creates the document in Notes & it looks the same on the web.
The generated HTML looks like this:
graphic outside the table: 
Pretty much the same on both databases. But in the case of the one above (& all other documents in the database) it is not displaying the actual graphic.
This one works:
a graphic 
Has anyone any ideas what to look for?
So far:
TIA
Subject: Weird one- graphics not displaying on web
It’s a little weird looking at the encoded ampersand in the URL before FieldElemFormat, so I don’t know if that’s actually in the source or it appeared when you pasted it here, or what.
Try taking the entire source and putting it in the address line of your browser and playing around with it to see if you can get just the graphic to show. Then you’ll know if the URL needs to be tweaked. R6.5 was more strict on what characters could be in a URL. For example, a percent sign would blow up a URL, and so it should because it should just be used for special characters. Perhaps your ampersand is blowing up the src for the graphic. Please respond.
Subject: RE: Weird one- graphics not displaying on web
Thanks Rob, having spent most of the last couple of days on other networks I finally had time to check back here.
Have played a bit more and you’ll be pleased to know that the page won’t even open on an R7 server, lete alone not render correctly. I’ll go back to the customers network and try out some of the HTML and see what that does, will update here on Monday.
Subject: RE: Weird one- graphics not displaying on web
Ok, apols am slightly late. Had to negotiate with the customer to spend more time on this.
The WebQueryOpen document was generating lots of wrap around HTML and various other stuff (over complicated probably). The generated HTML was NOT visible to the R6 or R7 servers. I stuck a doc.save in the agent, upped the default access to Editor and hey presto it all works.
Couple of thoughts:
-
I wouldn’t normally set Anonymous to Editor but because this is running on a secure Intranet it isn’t a major risk.
-
given the time (& money) I would rewrite this app to calculate all the HTML and store it whilst in a NOtes client. The paqes are built thru Notes and it doesn’t help if you can’t actually see what being generated.
-
I think the root of the problem is that the WebQueryOpen was creating a Rich Text field & sticking HTML into it. Of course a rich text field isn’t available until the document is saved. Has this changed between R5 & R6, I don’t think so but then its a very long time since I did web development using R5.
Subject: Glad you got it resolved