Focal Point
image not found...

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2481054372

February 26, 2008, 10:40 AM
<Shane>
image not found...
All:

I have an htm page that is refrencing several images. When I go into the text editor to add a new image and run the report, the image doesn't show up. I get the red X. However, if I put the absolute path of the image (https://server/path/image.gif) in the src property of the img tag, it pulls up the image. All of the other images that I'm referencing on the page are relative references (image.gif) and not absolute.

I cannot go into the HTML Layout Painter because it erases a lot of custom javascripting that we have embedded in the page. What must I do to get my image to show up without using an absolute reference?

Shane
February 26, 2008, 10:54 AM
hammo1j
SET BASEURL=https://server/path/ should do the trick!



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
February 26, 2008, 10:59 AM
<Shane>
hammo1j,

I can put this in my html code?

Shane
February 26, 2008, 11:15 AM
hammo1j
This is the html tag like BASEURL it generates when you view source

<BASE HREF="https://server/path/">




Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
February 26, 2008, 11:48 AM
<Shane>
I put that in my html code and still can't seem to get the image to show up...

<HTML>
<HEAD>
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>
<BASE HREF="https://bisdev.nal.com/approot/shane/">
<SCRIPT id=IBI_OptionsScript type=text/javascript>
var rltVersion = "764";
var cgipath = "cgipath";
var ibirls = "ibirls2";

var rltdyncalendar = "rltdyncalendar";
var gmap = "ibigmap";
var olap="olap";
var olappanebase="olappanebase";
var olapdrill="olapdrill";

var ibixmltree="ibixmltree";

var ibiOptions = new Array(cgipath,ibirls);
</SCRIPT>

<SCRIPT id=IBI_nls src="/ibi_html/javaassist/nls.js" type=text/javascript></SCRIPT>

<SCRIPT id=IBI_ibigbl src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type=text/javascript></SCRIPT>

...

function pleaseWait() {
  iframe_efficiency.document.write("<center><br><br><br><br><img src='circle_wait.gif'><font face='Tahoma'><p></p>Please wait...</font></center>");
  iframe_utilization.document.write("<center><br><br><br><br><img src='https://bisdev.nal.com/approot/shane/circle_wait.gif'><font face='Tahoma'><p></p>Please wait...</font></center>");
  iframe_capacity.document.write("<center><br><br><br><br><img src='https://bisdev.nal.com/approot/shane/circle_wait.gif'><font face='Tahoma'><p></p>Please wait...</font></center>");
  iframe_defect.document.write("<center><br><br><br><br><img src='https://bisdev.nal.com/approot/shane/circle_wait.gif'><font face='Tahoma'><p></p>Please wait...</font></center>");
  iframe_downtime.document.write("<center><br><br><br><br><img src='https://bisdev.nal.com/approot/shane/circle_wait.gif'><font face='Tahoma'><p></p>Please wait...</font></center>");
  iframe_metplans.document.write("<center><br><br><br><br><img src='https://bisdev.nal.com/approot/shane/circle_wait.gif'><font face='Tahoma'><p></p>Please wait...</font></center>");
}

...

<A href="javascript:OnExecute(null, 'image1')">
<IMG id=image1 title="Refresh Graphs with selected parameter values." style="Z-INDEX: 16; LEFT: 745px; POSITION: absolute; TOP: 25px" onClick="pleaseWait();" tabIndex=14 src="ref_24.gif" border=0 name=image1 originalHeight="24" originalWidth="24" requests_list="12;14;15;16;17;18"></A>

...

</HTML>

Shane
February 26, 2008, 12:14 PM
susannah
Shane, once you put the BASE tag in your html, you then can take it out of all your explicit file references.
In your pleaseWait function, you can shorten the full url to just the image name.
You're sure the image is there, right?
You've tried just a simple html with the BASE tag and a simple img reference to display it, yes?
-s




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 26, 2008, 12:26 PM
<Shane>
Susannah,

If you see in the code I posted, the first line in my pleaseWait function does reference the image by name only...

I'm positive the image is there because the explicit file reference works.

Shane
February 26, 2008, 12:39 PM
<Shane>
I found something that will work...

in each line of my pleaseWait routine, I'll have to put the following line of code for each iframe...

iframe_efficiency.document.write("<html><head><base href='https://bisdev.nal.com/approot/shane/'></head><center><br><br><br><br><img src='circle_wait.gif'><font face=Tahoma size=2><br>[b]Please wait...[/b]</font></center></html>");

I wish I didn't have to name the URL on the server where the image resides. This is the only web app I've ever written that requires it to find images. Weird...

Shane