Forum Moderators: open

Message Too Old, No Replies

Tell a friend with iframes

Can't get the correct page url

         

wintercornuk

11:30 am on Sep 29, 2004 (gmt 0)

10+ Year Member



I'm trying to get a TAF form to work. I've designed a neat little thing whihc uses an iframe but I can't get the surrounding pages URL to incorporate into the email. Any ideas?

The actual page code:

<table height="113" width="798">
<tr>
<td width="792" height="21"><b>
<font face="Verdana" color="#000000" size="1">You are here &gt; {category:link}
&gt; {subcategory:link}</font></b></td>
</tr>
<tr>
<td width="792" height="25"><b><font face="Verdana" size="4">{prodname}</font></b></td>
</tr>
<tr>
<td valign="top" width="792" height="53">
<table width="792" border="0">
<tr>
<td width="784">
<hr noshade size="1">
</td>
</tr>
<tr>
<td width="784"><i><font face="Verdana" size="1">Summary</font></i></td>
</tr>
</table>
<font face="Verdana" size="2"><font class="gettext">{productdescription}</font><font class="gettext">
<br>
</font></font></td>
</tr>
<tr>
<td valign="top" width="792" height="1">
<hr noshade size="1">
</td>
</tr>
<tr>
<td valign="top" width="792" height="151">
<table height="232" cellspacing="0" cellpadding="2" width="775" align="center" border="0">
<tr>
<td valign="top" width="487" height="232">
<table style="FONT-SIZE: 12px; FONT-FAMILY: arial, tahoma" width="487" border="0">
<tr bgcolor="#e9f5fc">
<td width="161"><b><font face="Verdana" size="2">Author</font></b></td>
<td width="310"><font face="Verdana" size="2">
<a title="Click here to search for more titles by this author" href="http://www.MYDOMAIN.com/search.asp?SearchText={prodvalue1}">
{prodvalue1}</a></font></td>
</tr>
<tr bgcolor="#e9f5fc">
<td width="161"><b><font face="Verdana" size="2">ISBN</font></b></td>
<td width="310"><font face="Verdana" size="2">{prodvalue3}</font></td>
</tr>
<tr bgcolor="#e9f5fc">
<td width="161"><b><font face="Verdana" size="2">Publisher</font></b></td>
<td width="310"><font face="Verdana" size="2">
<a title="Click here to search for more titles by this publisher" href="http://www.MYDOMAIN.com/search.asp?SearchText={prodvalue2}">
{prodvalue2}</a></font></td>
</tr>
<tr bgcolor="#e9f5fc">
<td width="161"><b><font face="Verdana" size="2">Year published</font></b></td>
<td width="310"><font face="Verdana" size="2">{prodvalue8}</font></td>
</tr>
<tr bgcolor="#e9f5fc">
<td width="161"><b><font face="Verdana" size="2">Type</font></b></td>
<td width="310"><font face="Verdana" size="2">{prodvalue4}</font></td>
</tr>
<tr bgcolor="#e9f5fc">
<td width="161"><b><font face="Verdana" size="2">Stock level</font></b></td>
<td width="310"><font face="Verdana" size="2">{stock}</font></td>
</tr>
<tr bgcolor="#e9f5fc">
<td width="161"><b><font face="Verdana" size="2">Stock status</font></b></td>
<td width="310"><font face="Verdana" size="2">{prodvalue9}</font></td>
</tr>
<tr bgcolor="#e9f5fc">
<td width="161"><b><font face="Verdana" size="2">Comments</font></b></td>
<td width="310"><b><font face="Verdana" color="#ff0000" size="2">{prodvalue6}</font></b></td>
</tr>
<tr bgcolor="#e9f5fc">
<td width="549" bgcolor="#ffffff" colspan="2">
<a href="http://www.MYDOMAIN.com/track/track.asp?id=20">
<font size="1">
<img height="20" alt="Click here to review this title in our forum" src="http://www.MYDOMAIN.com/images/reviewicon2.gif" width="20" border="0"><font face="Verdana">Click
here to review this title in our forum</font></font></a><font size="1" color="#ffffff" face="Verdana"> </font></td>
</tr>
<input style="WIDTH: 23px; HEIGHT: 22px" type="hidden" size="1" value="http://www.MYDOMAIN.com/products.asp?partno={partno}" name="mailheading">
<tr bgcolor="#e9f5fc">
<td width="549" bgcolor="#ffffff" colspan="2">
<font size="1" color="#ffffff" face="Verdana">
<iframe name="I1" height="28" scrolling="no" align="top" border="0" frameborder="0" marginwidth="1" marginheight="0" width="495" src="http://www.MYDOMAIN.com/code/taf.htm">Your
browser does not support inline frames or is currently configured not to
display inline frames.</iframe></font></td>
</tr>
</table>
</td>
<td valign="top" width="296" height="232">
<table style="FONT-SIZE: 12px; FONT-FAMILY: arial, tahoma" width="296" bgcolor="#ffffff" border="0">
<tr bgcolor="#ffffff">
<td width="352" colspan="3"><b>
<a href="javascript:alert('Ratings are based upon our assessment of value for money, readability and relevance.')">
<font face="Verdana" size="2">Rating</font></a></b><font face="Verdana" size="2">:
{prodvalue15}/5 {thumbimage}</font></td>
</tr>
<tr bgcolor="#ffffff">
<td align="left" width="96"><font face="Verdana" size="2">RRP </font>
</td>
<td align="left" width="76"><font face="Verdana" size="2">(1-5)</font></td>
<td align="left" width="126">
<font face="Verdana" color="#ff0000" size="2">You save</font></td>
</tr>
<tr bgcolor="#ffffff">
<td align="left" width="96"><b><font face="Verdana" size="2">{rrp}</font></b></td>
<td align="left" width="76"><b><font face="Verdana" size="2">{price}</font></b></td>
<td align="left" width="126"><b>
<font face="Verdana" color="#ff0000" size="2">{altprice}</font></b></td>
</tr>
<tr bgcolor="#ffffff">
<td width="300" colspan="3">
<hr noshade size="1">
</td>
</tr>
<tr bgcolor="#ffffff">
<td width="300" colspan="3"><font face="Verdana" size="1">Quantity pricing
structure. Please
<a href="http://www.MYDOMAIN.com/main.asp?sitepages=ContactPage">contact
us</a> for further discounts. We can satisfy any size order.</font></td>
</tr>
<tr bgcolor="#ffffff">
<td align="left" width="300" colspan="3">
<font face="Verdana" size="2">{bulkprices,0,0,1}</font></td>
</tr>
<tr bgcolor="#ffffff">
<td align="left" width="300" colspan="3">
<font face="Verdana" color="#ffffff">___</font></td>
</tr>
<tr bgcolor="#ffffff">
<td align="left" width="276" colspan="3">
<p align="left"><font face="Verdana" size="2">{quantity} {addtoorder}&nbsp;&nbsp;&nbsp;&nbsp; </font></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

And the code of the TAF page:

<form name="TAF" action="http://www.MYDOMAIN.com/code/mailprocess.asp" method="post">
<td width="204"><font face="Verdana" size="1">&nbsp;<font size="1">
<input onfocus="this.value=''" maxlength="40" size="20" value="Your email" type="email" name="mailfromemail" style="font-family: Verdana; font-size: 8pt">
<input onfocus="this.value=''" maxlength="40" size="20" value="Friends email" type="email" name="mailtoemail" style="font-family: Verdana; font-size: 8pt">
<font face="Verdana" size="1">
<input style="WIDTH: 35px; HEIGHT: 22px" type="hidden" size="1" value="I found this interesting title at MYDOMAIN . Take a look yourself." name="mailsubject">
<input style="WIDTH: 23px; HEIGHT: 22px" type="hidden" size="1" value="http://www.MYDOMAIN.com/search.asp?SearchText=%7bprodvalue2%7d" name="mailheading">
<input type="submit" value="Send!" style="font-family: Verdana; font-size: 8pt; width: 42; height: 24">
<font size="1">
<input style="WIDTH: 28px; HEIGHT: 22px" type="hidden" size="1" value="http://www.MYDOMAIN.com/code/tafthanks.htm" name="mailredirectto">
</font></font>
</form>
</font></font>

It does work, but I can't seem to get the correct url to send.

Thanks,

Winty

stef25

9:21 am on Sep 30, 2004 (gmt 0)

10+ Year Member



if you want to include a url, then this must be specified in the TAF script.

the one i use sends just one link for the homepage.

you should check in the userguide for the script how to make it specify the link the user is currently viewing.

posting the html wont have much use here (since sending the mail works), its the script code we need :-)

stef