How to create a href to a variable ip?

M

Mike Fieger

Hi!

I have some preview-images on my homepage and I'd like to create a link to
my ftp-server so one can download the picture in its full size when he
clicks on the preview-picture.

current code looks like the following:

<table datasrc=#pics>
<tr>
<td>
<a href=span datafld=fullsize>
<img src=span datafld=preview></img>
</a>
</td>
<td>
ftp://62.47.xx.xx//<span datafld=fullsize>
</td>
</tr>
</table>

Now the question:
How can I modify the hyperlink in the first column to be like the text in
the second column?
If I put the text 'ftp://62.47...' in front of the 'span ...' (like in the
second column) it is ignored.

Can anybody help me with that?

thx!

Mike
 
B

brucie

in post <Mike Fieger said:

I have some preview-images on my homepage and I'd like to create a link to
my ftp-server so one can download the picture in its full size when he
clicks on the preview-picture.

<table datasrc=#pics>

only IE supports data binding. use server side scripting.
 
R

Richard

Mike! said:
I have some preview-images on my homepage and I'd like to create a link
to my ftp-server so one can download the picture in its full size when he
clicks on the preview-picture.
current code looks like the following:
<table datasrc=#pics>
<tr>
<td>
<a href=span datafld=fullsize>
<img src=span datafld=preview></img>
</a>
</td>
<td>
ftp://62.47.xx.xx//<span datafld=fullsize>
</td>
</tr>
</table>
Now the question:
How can I modify the hyperlink in the first column to be like the text in
the second column?
If I put the text 'ftp://62.47...' in front of the 'span ...' (like in
the second column) it is ignored.
Can anybody help me with that?

Mike


it would be ftp://62.62.62.62/ not with the // as you show it unless that's
a typo here.

not sure, but a php script might be able to allow use of something like
ftp://62.62.var1.var2/
but doing so would require the ip's to be absolutely static.
 
M

Mike Fieger

Richard said:
it would be ftp://62.62.62.62/ not with the // as you show it unless that's
a typo here.

not sure, but a php script might be able to allow use of something like
ftp://62.62.var1.var2/
but doing so would require the ip's to be absolutely static.
----------------------------------------------------------------------------
---

Hi!

Even if I use a static ip (such as 62.62.62.62 for example) it does not
work.
If I try to change the link from

<td>
<a href=span datafld=fullsize>
<img src=span datafld=preview></img>
</a>
</td>
<td>
ftp://62.62.62.62//<span datafld=fullsize>
</td>

to

<td>
<a href=ftp://62.62.62.62//<span datafld=fullsize>
<img src=span datafld=preview></img>
</a>
</td>
<td>
ftp://62.62.62.62//<span datafld=fullsize>
</td>

it is just ignored! Why is that so?
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top