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!

gefragt vor 5 Jahren261 Aufrufe
2 Antworten
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!

beantwortet vor 5 Jahren
0

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

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen