Ok heres the situation.
I have a website, mostly html pages, but I can use php where needed. I want to be able to put a "Send this page to a friend" button at the bottom where the user can enter in an e-mail address, and it opens up there mail client with the url already in the body(easy enough). Here are my problems, A. The url is from a frame that is automtically generated(heres an example of what this beast looks like)
"http://dha.no-ip.com/FMPro?-db=inventory.fp5&-format=print.php&-lay=print%20format&-sortfield=sold&Category=New&-op=neq&Sold=Sold&-max=5&-recid=33739&-find="
Queries the Filemaker DB, and creates the page in a specific layout, this is the link I want in the e-mail. I have succesfully done this with Javascript but it only works on Windows PC, on a Mac it truncates the URL to this
http://dha.no-ip.com/FMPro?-db=inventory.fp5
Not helpfull, so how can I get this working on a mac? I am very open to php code, and I have been playing with scripts but none of them select the frame. Too see a working example goto here and click on say New Arrivals, click on an item, then print, and u will see whats going on. It will probably work for you, no doubt, but the javascript doesnt work on a mac, thats why I am turning to php. Heres the javascript I am using:
The script:
//Tell-a-friend script
//Carl Dimmer
var initialsubj="Dawn Hill Antiques"
var initialmsg=" "+window.parent.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 = location.href;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {
//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body= "+escape('\n\n\n' + u);
}
}
// End --></script>
Link and Box:
<form name="eMailer">
<div align="center"><font size="2" face="Georgia, Times New Roman, Times, serif">To e-mail this page:
<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">
<input name="button" type="button" onClick="mailThisUrl();" 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" value="Send">
</font><br>
</div>
</form>
And finally is there anyway I can truncate that url in the e-mail to maybe get the inventory id from the db, then make a hyperlink?(i am asking alot). So yeah, basically I need what I have to work on a mac, or something similar.