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!

2개 답변
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!

답변함 5년 전
0

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

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠