Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 12th, 2005, 10:31 PM
Registered User
 
Join Date: Jun 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default hyperlink in repeat region recordset

Hello there,

I have a little problem and I was hoping somebody could help me.

I'm working with MM Dreamweaver in combination with a acces database.

I made a form with a repeat region where I put in a table with a couple of recordsets, 3 recordsets need a hyperlink, 1 to a e-mail adres (e-mail adres comes from the database), 1 to the self made detailpage (URL comes from the database), 1 to a external URL ( URL also comes from the database).

the following is written without doing anything

www.test.be#http://www.test.be#

How can I make of this an real hyperlink

Thanks
  #2 (permalink)  
Old June 15th, 2005, 04:53 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

How about posting some code related to that? It is not easy to point where you go wrong and what exactly should be done without much information.

_________________________
- Vijay G
Strive for Perfection
  #3 (permalink)  
Old June 15th, 2005, 09:51 PM
Registered User
 
Join Date: Jun 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

I don't know if the code I put in this message can give You a better idea on what I mean.

I really hope You can help me

Greetings

Stephan

<table width="100%" height="1080" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="19"> </td>
    </tr>
    <tr>
      <td height="260"><div align="center">
        <form name="form1" method="post" action="">
          <div align="left">
            <p> </p>

            <%
While ((Repeat1__numRows <> 0) AND (NOT rsBelgie.EOF))
%>
            <table width="86%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="54%"><span class="style13"><%=(rsBelgie.Fields.Item("Naam").V alue)%></span></td>
                    <td width="46%" rowspan="2"><div align="right"><%=(rsBelgie.Fields.Item("Federatie" ).Value)%></div></td>
                </tr>
                <tr>
                  <td><%=(rsBelgie.Fields.Item("Straat").Value)%></td>
                    </tr>
                <tr>
                  <td><%=(rsBelgie.Fields.Item("Gemeente").Value)% ></td>
                    <td rowspan="2"> </td>
                </tr>
                <tr>
                  <td><%=(rsBelgie.Fields.Item("Telefoon").Value)% ></td>
                    </tr>
                <tr>
                  <td><%=(rsBelgie.Fields.Item("Fax").Value)%></td>
                    <td> </td>
                </tr>
                <tr>
                  <td><dl>
                    <dt><%=(rsBelgie.Fields.Item("email").Value)%></a>
                      </a></dt>
                  </dl></td>
                    <td> </td>
                </tr>
                <tr>
                  <td> <%=(rsBelgie.Fields.Item("internet").Value)%>
                 <td> </td>
                    <td> </td>
                </tr>
                <tr>
                  <td height="29"><%=(rsBelgie.Fields.Item("Detailpagina ").Value)%></td>
                    <td> </td>
                </tr>
                      </table>
                      <br>
                      <div align="center">

                      </div>
            <%
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rsBelgie.MoveNext()
Wend
%>
</div>
          <p>
              </p>
        </form>
      </div></td>
    </tr>
    <tr>
      <td height="68"><div align="center">
        <table border="0" width="50%" align="center">
          <tr>
            <td width="23%" align="center"><% If MM_offset <> 0 Then %>
              <a href="<%=MM_moveFirst%>"><img src="First.gif" border=0></a>
              <% End If ' end MM_offset <> 0 %>
            </td>
            <td width="31%" align="center"><% If MM_offset <> 0 Then %>
              <a href="<%=MM_movePrev%>"><img src="Previous.gif" border=0></a>
              <% End If ' end MM_offset <> 0 %>
            </td>
            <td width="23%" align="center"><% If Not MM_atTotal Then %>
              <a href="<%=MM_moveNext%>"><img src="Next.gif" border=0></a>
              <% End If ' end Not MM_atTotal %>
            </td>
            <td width="23%" align="center"><% If Not MM_atTotal Then %>
              <a href="<%=MM_moveLast%>"><img src="Last.gif" border=0></a>
              <% End If ' end Not MM_atTotal %>
            </td>
          </tr>
        </table>
          <p> Records <%=(rsBelgie_first)%> to <%=(rsBelgie_last)%> of <%=(rsBelgie_total)%> </p>
      </div></td>
    </tr>
    <tr>
      <td height="671"> </td>
    </tr>
    <tr>
      <td> </td>
    </tr>
  </table>

  #4 (permalink)  
Old June 16th, 2005, 01:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Let me give a sample code of that for just the email from your code.

Code:
<dt><a href='mailto:<%=(rsBelgie.Fields.Item("email").Value)%>'><%=(rsBelgie.Fields.Item("email").Value)%></a>
Also you can take a look at MailTo syntax for more info.

For other links if that is a URL sort of, then it should be in a format of
Code:
<a href="URL_OR_LINK_YOU_WOULD_LIKE_TO_TAKE_THE_USER_TO">ANYTHING_YOU_DISPLAY_THAT_APPEARS_AS_A_LINK_ON_WEBPAGE</a>
Hope that helps.

_________________________
- Vijay G
Strive for Perfection


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update form and Repeat Region malhyp Dreamweaver (all versions) 8 May 26th, 2006 03:18 PM
Sort a repeat region hendricksonet VBScript 0 August 11th, 2005 01:55 PM
Repeat Region with a difference. fatmcgav Dreamweaver (all versions) 2 January 17th, 2005 05:00 PM
Region? JAtkinson Visual C++ 0 May 17th, 2004 07:02 AM
Repeat region, I cannot change the 'show records' karib Dreamweaver (all versions) 3 May 6th, 2004 03:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.