AWS Contact Form tutorial not working

0

I am trying to get this simple tutorial working here,
https://aws.amazon.com/blogs/architecture/create-dynamic-contact-forms-for-s3-static-websites-using-aws-lambda-amazon-api-gateway-and-amazon-ses/

but I'm getting an Uncaught ReferenceError: $ is not defined error referring to the jQuery block around this part.

if (!Namere.test($("#name-input").val())) {

I did not add any other jQuery libs for the purpose of this exercise. Should I be doing so?

I got my email address verified....I have not yet verified my domain name, but I would think I'd get a different error here?

Any help or feedback would be appreciated.

Thanks!

asked 5 years ago252 views
2 Answers
0

Actually, I may have figured it out. I had to re-enable CORS on the API Gateway resource, but also I noticed mention on StackOverflow about the following:

https://stackoverflow.com/questions/2075337/uncaught-referenceerror-is-not-defined

Indicating it simply needed SOME jQuery lib reference - didn't matter what apparently. I added that and it seems to have worked and gone through!

answered 5 years ago
0

I think with the 2 links I added, I found the answer, AFAICT!

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions