The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Request to test code

2 posters

Go down

Request to test code Empty Request to test code

Post by Liwana R December 2nd 2006, 11:14 pm

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.
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! salut


Last edited by on December 3rd 2006, 6:13 am; edited 1 time in total
avatar
Liwana R
Guest


Back to top Go down

Request to test code Empty Re: Request to test code

Post by Cornelia December 2nd 2006, 11:29 pm

Hello.

I tested and I had the same results... Confused

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.
Cornelia
Cornelia
Hyperactive

Female Posts : 4763
Reputation : 173
Language : I'M NOT A TECHIE OR A MOD, SO QUIT SENDING ME PMS FOR TECHIE STUFF OR LOST PASSWORDS !!!
Location : Absent on weekends until camping season ends

http://ishimaru-design.servhome.org

Back to top Go down

Request to test code Empty Re: Request to test code

Post by Liwana R December 2nd 2006, 11:38 pm

Katt wrote:I will ask my colleagues for help, because I'm noob in javascript.

Believe me, I don't mind. I appreciate all the help!

Request to test code Grey%5E_%5Everdana%5E_%5E0%5E_%5E0%5E_%5EThank+you%2C+Katt%21%5E_%5E
avatar
Liwana R
Guest


Back to top Go down

Request to test code Empty Re: Request to test code

Post by Caihlem December 3rd 2006, 12:14 pm

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:
<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
Caihlem
Energetic

Male Posts : 8969
Reputation : 342
Language : English, French & Female
Location : You can't fly like the phenix

Back to top Go down

Request to test code Empty Re: Request to test code

Post by Liwana R December 3rd 2006, 12:53 pm

Thank you, Caihlem! I will give your referred code a go! Very Happy

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! Wink Haha!
avatar
Liwana R
Guest


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum