HighDots Forums  

Email & Web address will not show as an active li

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Email & Web address will not show as an active li in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AlanShaw
 
Posts: n/a

Default Email & Web address will not show as an active li - 07-03-2004 , 06:50 AM






Hi,
I?m puzzled, I?m able to retrieve from a database names, addresses etc but I
can?t retrieve the email or web address from the same database and show it as
an active link, (blue lettering with an underscore).

The first part of my code it the variable retrieved from the database which I
have then added a little more code to make it ?active?, yet it does not work
and I can?t see why.

Does anybody have any ideas?

Regards
Alan


<%=(rsResults.Fields.Item("mlemail").Value)%>


<a
href="mailto:<%=(rsResults.Fields.Item("mlemail"). Value)%>"><%=(rsResults.Fields
..Item("mlemail").Value)%>


Reply With Quote
  #2  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: Email & Web address will not show as an active li - 07-03-2004 , 07:16 AM






On 03 Jul 2004 in macromedia.dreamweaver, AlanShaw wrote:

Quote:
I?m puzzled, I?m able to retrieve from a database names, addresses
etc but I can?t retrieve the email or web address from the same
database and show it as an active link, (blue lettering with an
underscore).

The first part of my code it the variable retrieved from the
database which I have then added a little more code to make it
?active?, yet it does not work and I can?t see why.

a href="mailto:<%=(rsResults.Fields.Item("mlemail"). Value)%>"
%=(rsResults.Fields .Item("mlemail").Value)%
It looks like it should work. Did you close the link tag </a>? Could
you give us a URI to a page which doesn't work?

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php


Reply With Quote
  #3  
Old   
AlanShaw
 
Posts: n/a

Default Re: Email & Web address will not show as an active li - 07-03-2004 , 07:50 AM



Hi,

One of the problem pages starts at

http://www.cai.org.uk/asp/system_search1.asp

you'll have to complete the search until you reach the 'results' page but it
only requires 2 clicks. The information on this page is retrieved from the same
database as the company name, address etc.

I did close the <a> tag I've copied the code below. When I look at it on a
split screen in DW the email and web address show as a blue under scored
variable.

Alan

<td><a
href="mailto:<%=(rsResults.Fields.Item("mlemail"). Value)%>"><%=(rsResults.Fields
..Item("mlemail").Value)%></a></td>
</tr>
<tr class="sitemapheaders">
<td>&nbsp;</td>
<td><a
href="<%=(rsResults.Fields.Item("mlWebsite").Value )%>"
target="_blank"><%=(rsResults.Fields.Item("mlWebsi te").Value)%></a></td>


Reply With Quote
  #4  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: Email & Web address will not show as an active li - 07-03-2004 , 09:27 AM



On 03 Jul 2004 in macromedia.dreamweaver, AlanShaw wrote:

Quote:
One of the problem pages starts at

http://www.cai.org.uk/asp/system_search1.asp
I may be completely missing something here, but on the page:

http://www.cai.org.uk/asp/results_sys.asp

which is what I get if I go two pages deep, down to the county level (I
tried Argyll and Kent), I don't see any evidence of an e-mail address
anywhere.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php


Reply With Quote
  #5  
Old   
AlanShaw
 
Posts: n/a

Default Re: Email & Web address will not show as an active li - 07-03-2004 , 10:27 AM



I've been playing with it, what I have found is if I just put the variable in
the table it shows without the link and encapsulated with '#'

A soon as I insert the extra 'mailto' code the link becomes transparent.

I've just downloaded a DW extension 'Auto Hyperlink' from here
http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn121&extID=183808
and even though I've rebooted, it does not show up under design behaviours
although I can see it in my extension manager.


Reply With Quote
  #6  
Old   
AlanShaw
 
Posts: n/a

Default Re: Email & Web address will not show as an active li - 07-03-2004 , 10:35 AM



Joe,

Try doing a 'domestic' search under England and Surrey mine is the secound
entry.

This has no 'mailto' code, just the variable, so it is there it's just that
the mailto code for some unknown reason, does not work.

In this article it says it does.
www.webthang.co.uk/tuts/tuts_dmx/dmxf_1/dmx1_6pf.asp


Reply With Quote
  #7  
Old   
AlanShaw
 
Posts: n/a

Default Re: Email & Web address will not show as an active li - 07-03-2004 , 10:56 AM



I've quickly made a test page which only included an email address taken from
the database and the date, I put it up on the server, the date showed but the
email address didn't, which leads me to think that it must be something
'global'.


Reply With Quote
  #8  
Old   
Robert Newhart
 
Posts: n/a

Default Re: Email & Web address will not show as an active li - 07-03-2004 , 05:56 PM



Alan,

While I program in ColdFusion rather than ASP, I am posting some code I
wrote that properly displays a piece of text that shows the hyperlink.
(Note: In CF, the variable is encapsulted in the #var#. Hopefully, you can
translate it to ASP.

<A HREF="#rsLiveSites.LiveSiteURL#">Live</A>

"AlanShaw" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi,
I?m puzzled, I?m able to retrieve from a database names, addresses etc
but I
can?t retrieve the email or web address from the same database and show it
as
an active link, (blue lettering with an underscore).

The first part of my code it the variable retrieved from the database
which I
have then added a little more code to make it ?active?, yet it does not
work
and I can?t see why.

Does anybody have any ideas?

Regards
Alan


%=(rsResults.Fields.Item("mlemail").Value)%


a

href="mailto:<%=(rsResults.Fields.Item("mlemail"). Value)%>"><%=(rsResults.Fi
elds
Quote:
.Item("mlemail").Value)%




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.