Request to test code
2 posters
Page 1 of 1
Request to test code
I've tried to create a custom block in my portal for this, but the result is a blank area. It's a code to create a "Refer A Friend To This Site" feature.
Any and all help is MUCH appreciated!
- Code:
<!-- Free Tell a Friend service provided by ReferAFriend.com -->
<script type="text/javascript">
<!--
var taf_id = '1257';
var taf_uid = '1033';
/** the following fields are customizable **/
var taf_width = '250';
var taf_height = '400';
var taf_popup = '1';
var taf_frameborder = '0';
var taf_description = 'Send this page to your friends';
var taf_image = '';
-->
</script>
<script type="text/javascript" src="http://www.referafriend.com/taf/v2/taf.js"></script>
<!-- End of Tell A Friend script -->
Any and all help is MUCH appreciated!
Last edited by on December 3rd 2006, 6:13 am; edited 1 time in total
Liwana R- Guest
Re: Request to test code
Hello.
I tested and I had the same results...
Here's where I tested : http://ishimaru-test.forumotion.com/portal.htm (last bloc of column 1)
I looked with IE7 and Mozilla Firefox 2.0 and it's the same.
I will ask my colleagues for help, because I'm noob in javascript.
I tested and I had the same results...
Here's where I tested : http://ishimaru-test.forumotion.com/portal.htm (last bloc of column 1)
I looked with IE7 and Mozilla Firefox 2.0 and it's the same.
I will ask my colleagues for help, because I'm noob in javascript.
Re: Request to test code
Hi, I've looked on EBA and I've found what seems to be the same code, or at least similar.
Here's the one on EBA, hope it helps:
Here's the one on EBA, hope it helps:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
//Script by Trånn: http://come.to/tronds
//Submitted to JavaScript Kit (http://javascriptkit.com)
//Visit http://javascriptkit.com for this script
var initialsubj="Hay buddy, take a look at this"
var initialmsg="Hi:\n You may want to check out this site: "+window.location
var good;
function checkEmailAddress(field) {
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please enter a valid address.');
field.focus();
field.select();
good = false;
}
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {
http://window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
}
}
// End -->
</script>
<form name="eMailer">
Tell a friend:
<input type="text" name="email" size="26" value=" Enter Address Here" onFocus="this.value=''" onMouseOver="window.status='Enter email address here and tell a friend about this site...'; return true" onMouseOut="window.status='';return true">
<br>
<input type="button" value="Send this URL" onMouseOver="window.status='Click to send an email (with this page address) to a friend! Enter email address above...'; return true" onMouseOut="window.status='';return true" onClick="mailThisUrl();">
</form>
Caihlem- Energetic
- Posts : 8969
Reputation : 342
Language : English, French & Female
Location : You can't fly like the phenix
Re: Request to test code
Thank you, Caihlem! I will give your referred code a go!
I don't mean to sound ingrateful, but I'm still hoping that the code that I had originally posted is able to be of use in Editboard. The service that I obtained it from allows me to customize the look, as well as allows users to send to multiple addresses at once.
That doesn't mean I'm not going to start using this 2nd code if I can! Haha!
I don't mean to sound ingrateful, but I'm still hoping that the code that I had originally posted is able to be of use in Editboard. The service that I obtained it from allows me to customize the look, as well as allows users to send to multiple addresses at once.
That doesn't mean I'm not going to start using this 2nd code if I can! Haha!
Liwana R- Guest
Similar topics
» test test shows before you can see the forum page
» code request
» Congrats Luky!
» CODE REQUEST
» Code Request...
» code request
» Congrats Luky!
» CODE REQUEST
» Code Request...
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum