Learn-to-send-email-via-google-script-html-no-server: No est谩 cargando correctamente el Javascript requerido que env铆a los datos a trav茅s de AJAX

Created on 12 Apr 2020  路  6Comments  路  Source: dwyl/learn-to-send-email-via-google-script-html-no-server

No est谩 cargando correctamente el Javascript requerido que env铆a los datos a trav茅s de AJAX. Estoy usando Google Chrome.

help wanted question

Most helpful comment

Mil gracias a ambos ya pude hacerlo funcionar

All 6 comments

Translated using Google:

You are not correctly loading the required Javascript that sends the data through AJAX. I am using Google Chrome.

I do not follow. Our demos hosted on Github both work and have no such console errors in Google Chrome v81. Demo pages:
https://dwyl.github.io/learn-to-send-email-via-google-script-html-no-server/
https://dwyl.github.io/learn-to-send-email-via-google-script-html-no-server/test.html

@Viluppo please provide as much detail as you can otherwise we cannot help.
Is your web page deployed somewhere online? Can you share the link?

Hola muchas gracias por contestar r谩pidamente, algo a aclarar es que lo estoy probando en gitlab, por un tema que decidimos usar las paginas est谩ticas de gitlab.
Lo he hecho publico para que lo puedan ver, funcionar funciona perfectamente el envi贸 de mail.
Lo 煤nico que no realiza es la ejecuci贸n del ajax para que mantener al usuario en la misma pagina
Pagina del proyecto
https://gitlab.com/calabroadrian/chatbotprueba.git

Url pagina
https://calabroadrian.gitlab.io/chatbotprueba/

@Viluppo try changing the the src of the script on line 202
https://gitlab.com/calabroadrian/chatbotprueba/-/blob/master/public/index.html#L202

From:

<script data-cfasync="false" type="text/javascript"
src="https://cdn.rawgit.com/dwyl/html-form-send-email-via-google-script-without-server/master/form-submission-handler.js"></script>

To:

<script data-cfasync="false" type="text/javascript"
src="https://calabroadrian.gitlab.io/chatbotprueba/form-submission-handler.js"></script>

Yeah, it looks like you have an earlier version of our script (it has id=gform instead of class=gform). Loading our Javascript (which is newer) is causing problems. So you can load the old JS you have to get it working, or upgrade your form to the latest version (change from id to class, and move the thank-you message inside the form element, I think those are the biggest changes to make).

Mil gracias a ambos ya pude hacerlo funcionar

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joseroma picture joseroma  路  3Comments

joshiadvait8 picture joshiadvait8  路  3Comments

tiffting picture tiffting  路  4Comments

vlknlvnt picture vlknlvnt  路  4Comments

JintaYadomi picture JintaYadomi  路  3Comments