Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to create a href to a variable ip?

Reply
Thread Tools

How to create a href to a variable ip?

 
 
Mike Fieger
Guest
Posts: n/a
 
      12-07-2003
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



 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      12-07-2003
in post <news:3fd3afe7$0$19008$(E-Mail Removed) ay.telekom.at>
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.


--
brucie
08/December/2003 09:40:28 am kilo
 
Reply With Quote
 
 
 
 
Richard
Guest
Posts: n/a
 
      12-08-2003
Mike! wrote:

> 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



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.



 
Reply With Quote
 
Mike Fieger
Guest
Posts: n/a
 
      12-08-2003

"Richard" <anonymous@127.000> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Mike! wrote:
>
> > 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

>
>
> 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?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BASE HREF and A HREF="#" onclick="..." Vincent van Beveren Javascript 2 07-06-2006 08:33 AM
href="javascript:func()" vs href="#" onclick="javascript:func()" CRON HTML 24 06-20-2006 08:05 PM
onClick method question (this.href and document.location.href) yogesh.bhardwaj@gmail.com Javascript 2 02-03-2005 02:38 PM
difference between location.href and window.location.href? saiho.yuen Javascript 3 09-14-2004 06:51 PM
Problem: Setting MSIE iframe innerHTML change relative href/src to absolute href/src Soren Vejrum Javascript 4 07-05-2003 01:47 PM



Advertisments