![]() |
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:
|
"email": return email_addr,
"email": "return email_addr", enclose return email_address in "" Also, check the form they are filling in, is the field name / value return email_address or return_email_address Note inconsistent use of underscore between return and email EDIT: on a side note, try to be more consistent in your use of underscores and capitalization structure. You've got like 3 different styles for the same element. Pick a style you are comfortable with and stick to it, religously. Makes like a lot easier. |
Quote:
So what I added was: var email_addr = document.getElementById("EditBTAddres").elements["email_field"]; because my form is named "EditBTAddres" (yes with the typo) and the field ID is email_field. I'll try your suggestion. Thanks! |
Oh how I hate javascript.
Dunno. I use the inspector in Chrome, throw in a bunch of debugging statements and step through to see whats happening. Not very helpful, I know. |
Quote:
Actually it looks like your issue is what I said before plus the return. Do this "email": "email_addr", You want that because you are looking for what the form is writing to the array. |
All times are GMT -8. The time now is 11:26 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website