amp-html

AMP Email form causes error [amp-form] Form submission failed: Error: Request viewerRenderTemplate failed: Error: Class$obf_1008:

落爺英雄遲暮 提交于 2021-02-11 14:27:49
问题 The form submits perfectly well in the amp playground and the amp Gmail playground. When I send myself the email and open it in Gmail, the dynamic content loads correctly but on submitting the form, I get the following errors: Uncaught (in promise) Error: Class$obf_1008: [https://dynamicmail-pa.googleapis.com/v2/xhrs:proxy?alt=protojson] Cg: Unsupported HTTP status: 400: Class$obf_1007: [object Object] log.js:258 [amp-form] Form submission failed: Error: Request viewerRenderTemplate failed:

Exit Intent Popup in AMP?

不羁岁月 提交于 2021-02-11 14:12:41
问题 I've been asked to put an Exit Intent Popup on a site which has been written entirely as AMP-HTML (even for desktop users). This is fairly easy to implement in standard JS by listening to the mouseleave event. The amp-script compatibility table says that onmouseleave is not available yet for custom scripts. Just to be clear: Exit Intent Popups are in-page banners and do not disturb navigation or closing the tab , which make them friendlier than beforeunload messages. Also, this is not an amp

Does an AMP url retain the query parameters?

大憨熊 提交于 2021-02-08 10:28:46
问题 I've seen this question asked before but a straight answer is hard to find. I've heard both sides of the story from reliable sources. Documentation is limited but I did find this article from Google. https://developers.google.com/amp/cache/overview#query-parameter-example TLDR: Query parameter example The AMP Cache URL format can also include parameters in the query string. The following is an HTTPS example with parameters: https://example-com.cdn.ampproject.org/c/s/example.com/g?value=Hello

Check / uncheck radio input field not updated properly on AMP

戏子无情 提交于 2021-01-28 06:08:54
问题 I have developed an AMP site where I have three radio buttons. show all show only favourite clear all when i will click on clear all button it will show a lightbox. On that lightbox I have two buttons. ok Cancel when user click on cancel from the lightbox the show all radio input will be checked. I have implemented it with amp-state variable change. For the very first time when i click on cancel it checked properly in show all radio input but after that if I have click on clear radio input