Displaying pictures from an alternate site

S

Steve Easton

I believe you need to use the absolute url
http://sitename.com/foldername/enl_photos<%=glpicstr1


--
95isalive
This site is best viewed..................
...............................with a computer
Briefly... I have outgrown space on site 1. I now store large version of
pictures on site 2.

The following snippet of table code was working well when the pics were all
on same site....

----
<td width="25%" align="left" valign="top" rowspan="5">
<%glpicstr1 = "/photos/"& fp_rs("gl_spon") & "/" & fp_rs("gl_id") &
"_1.jpg" %>
<%
If (fso.FileExists(Server.MapPath(glpicstr1))) Then
%>
<a href="javascript:;" title="Click to see enlarged picture"
onClick=window.open('/display_picture.asp?src=/enl_photos<%=glpicstr1>','glp
ic1_window','toolbar=no,location=no,directories=no,status=no,menubar=no,scro
llbars=yes,resizable=yes,top=0,left=350,width=310,height=490');><img
border="0" src=<%=glpicstr1%>></a></b></td>
<%End If%>
</td>

I've made the following (logical to me) change to accomodate the new site in
the SRC reference...
------
<td width="25%" align="left" valign="top" rowspan="5">
<%glpicstr1 = "/photos/"& fp_rs("gl_spon") & "/" & fp_rs("gl_id") &
"_1.jpg" %>
<%
If (fso.FileExists(Server.MapPath(glpicstr1))) Then
%>
<a href="javascript:;" title="Click to see enlarged picture"
onClick=window.open('/display_picture.asp?src=http://www.secondsite.com/pgca
glassclub/enl_photos<%=glpicstr1%>','glpic1_window','toolbar=no,location=no,
directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=0,left=
350,width=310,height=490');><img border="0" src=<%=glpicstr1%>></a></b></td>
<%End If%>
</td>
---

All I get is a broekn link.

Help!!!???

TIA
SS
 
S

Steve Simek

Briefly... I have outgrown space on site 1. I now store large version of
pictures on site 2.

The following snippet of table code was working well when the pics were all
on same site....

----
<td width="25%" align="left" valign="top" rowspan="5">
<%glpicstr1 = "/photos/"& fp_rs("gl_spon") & "/" & fp_rs("gl_id") &
"_1.jpg" %>
<%
If (fso.FileExists(Server.MapPath(glpicstr1))) Then
%>
<a href="javascript:;" title="Click to see enlarged picture"
onClick=window.open('/display_picture.asp?src=/enl_photos<%=glpicstr1>','glp
ic1_window','toolbar=no,location=no,directories=no,status=no,menubar=no,scro
llbars=yes,resizable=yes,top=0,left=350,width=310,height=490');><img
border="0" src=<%=glpicstr1%>></a></b></td>
<%End If%>
</td>

I've made the following (logical to me) change to accomodate the new site in
the SRC reference...
------
<td width="25%" align="left" valign="top" rowspan="5">
<%glpicstr1 = "/photos/"& fp_rs("gl_spon") & "/" & fp_rs("gl_id") &
"_1.jpg" %>
<%
If (fso.FileExists(Server.MapPath(glpicstr1))) Then
%>
<a href="javascript:;" title="Click to see enlarged picture"
onClick=window.open('/display_picture.asp?src=http://www.secondsite.com/pgca
glassclub/enl_photos<%=glpicstr1%>','glpic1_window','toolbar=no,location=no,
directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=0,left=
350,width=310,height=490');><img border="0" src=<%=glpicstr1%>></a></b></td>
<%End If%>
</td>
---

All I get is a broekn link.

Help!!!???

TIA
SS
 
S

Steve Simek

I AM using the full reference, as indicated in the second
example.

Any other help out there please?
 
T

Thomas A. Rowe

You can't use the FileSystemObject on the remote server.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
E

Enigma

Also make sure your server allows referencing I know all my free storage web
spaces (i.e.: Lycos, geocities, etc.) won't allow referencing their sites.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top