P
Peter Goldfield
Difficult one to explain...
I'm trying to place a picture on a page "offer_form.htm" by linking from
page "A"
The link is:
.../../../secure_forms/offer_form.htm
so far so good
I have a script in the <head> section on "offer_form.htm" which goes like
this:
<script>
function qsobj (){
var qvbl;
var qstring = "" + document.location.search.substring(1);
if (qstring != ""){
var qpairs = qstring.split("&");
for (i=0; i < qpairs.length; i++) {
qvbl = qpairs.split("=");
this["" + qvbl[0]] = unescape(qvbl[1].replace
("+"," "));
}
}
}
function getqsvar(qsvar){
if (qstr[qsvar] == null){
return "";
}else{
return qstr[qsvar];
}
}
var qstr = new qsobj();
</script>
AND where I want the picture to appear, in the body I have:
<script>
document.write('<img src="' + getqsvar("pic") + '">');
</script>
In the PARAMETER values of the link from page"A", the name is "pic" (without
quotes) and the value
"goldfield/shows/afss/afss_detail/butterfly_whole_small.jpg" which is the
path to the .jpg I want to appear in "offer_form"
Thus the whole link reads:
.../../../secure_forms/offer_form.htm?pic=goldfield/shows/afss/afss_detail/bu
tterfly_whole_small.jpg
If anyone's read this far you won't mind the expletives that occur 'cos I
can't get the xxx thing to work!
If I publish the files to my site and click the "offer" link I get a small
redx in a picture box whose properties are described as below:
http://www.duckspool.com/goldfield/...ws/afss/afss_detail/butterfly_whole_small.jpg
This is gobbledegook, what am I doing wrong?
I've made the whole shebang work in a new practice web, but now I'm doing it
for real, it's not happening
The link to see what's happening is:
http://www.duckspool.com/goldfield/shows/afss/afss_detail/butterfliessp.htm
Any help would save premature insanity (perhaps too late)
I'm trying to place a picture on a page "offer_form.htm" by linking from
page "A"
The link is:
.../../../secure_forms/offer_form.htm
so far so good
I have a script in the <head> section on "offer_form.htm" which goes like
this:
<script>
function qsobj (){
var qvbl;
var qstring = "" + document.location.search.substring(1);
if (qstring != ""){
var qpairs = qstring.split("&");
for (i=0; i < qpairs.length; i++) {
qvbl = qpairs.split("=");
this["" + qvbl[0]] = unescape(qvbl[1].replace
("+"," "));
}
}
}
function getqsvar(qsvar){
if (qstr[qsvar] == null){
return "";
}else{
return qstr[qsvar];
}
}
var qstr = new qsobj();
</script>
AND where I want the picture to appear, in the body I have:
<script>
document.write('<img src="' + getqsvar("pic") + '">');
</script>
In the PARAMETER values of the link from page"A", the name is "pic" (without
quotes) and the value
"goldfield/shows/afss/afss_detail/butterfly_whole_small.jpg" which is the
path to the .jpg I want to appear in "offer_form"
Thus the whole link reads:
.../../../secure_forms/offer_form.htm?pic=goldfield/shows/afss/afss_detail/bu
tterfly_whole_small.jpg
If anyone's read this far you won't mind the expletives that occur 'cos I
can't get the xxx thing to work!
If I publish the files to my site and click the "offer" link I get a small
redx in a picture box whose properties are described as below:
http://www.duckspool.com/goldfield/...ws/afss/afss_detail/butterfly_whole_small.jpg
This is gobbledegook, what am I doing wrong?
I've made the whole shebang work in a new practice web, but now I'm doing it
for real, it's not happening
The link to see what's happening is:
http://www.duckspool.com/goldfield/shows/afss/afss_detail/butterfliessp.htm
Any help would save premature insanity (perhaps too late)