javascript picture insert?

J

Jim Buyens

Peter Goldfield said:
Steve
Jim Buyens originally gave me this script, and as I mentioned I got it to
work fine in a test web. Could it have something to do with where the "pic"
line is placed in page "B" ?(inside a table inside "body")

It appears that the URLs in your published site have a somewhat
different structure than on your development site. That would explain
why, when you pass as relative URL as a parameter, it works on one
site but not on the other. The possible solutions are:

o Align both sites to the same URL structure.
o Pass absolute URLs rather than relatives ones. (By absolute,
I mean beginning with "/".
o Code more (or all) of the relative path in the page that displays
the picture. For example, don't code:
offer_form.htm?pic=goldfield/shows/afss/afss_detail/bu
tterfly_whole_small.jpg
Instead code:
offer_form.htm?pic=butterfly_whole_small.jpg
and hard-code the path goldfield/shows/afss/afss_detailin the
offer_form.htm page.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

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

Similar Threads


Top