|
Super Moderator
Join Date: Feb 2000
Location: Naperville, IL USA
Posts: 14,988
|
Javascript guru? Need what I think is easy help
Trying to run this script on a web page that sends some information to a Google API. The pertinent part is this: (removed script tags so it will post)
Quote:
var email_addr = document.getElementById("EditBTAddres").elements["email_field"];
document.write (email_addr);
window.renderOptIn = function() {
window.gapi.load('surveyoptin', function() {
window.gapi.surveyoptin.render(
{
"merchant_id": 1234567,
"order_id": "Order ID",
"email": return email_addr,
"delivery_country": "US",
"estimated_delivery_date": "",
"opt_in_style": "OPT_IN_STYLE"
});
});
}
|
My problem is - the email address is not getting sent. Instead it is sending "return email_addr" in the section hightlighted in red. Any ideas
__________________
Chris
----------------------------------------------
1996 993 RS Replica
2023 KTM 890 Adventure R
1971 Norton 750 Commando
Alcon Brake Kits
Last edited by cstreit; 11-28-2017 at 01:58 PM..
|