Skip to content

Tag: html

Create a row in an airtable base from static html form

I have a static landing page, and would like to create a simple waitlist in airtable using only plain html/javascript. I created a simple form on my landing page, that only accepts an e-mail. After pressing “submit” button, I would like to post this e-mail to my airtable base. I guess it can be do…

JS append elements

I am generating some <li> with JS into my list. This <li> consist from few elements, such as <div>, <section>, etc. And my question is. For now, I generate exact number of elements into the array and then I append these elements from that array. But I would like to know, if I am able t…

Js call function with arguments

I have created 4 buttons and every button with its own id and I have a function that displays the given element id. so I want to apply it on all this 4 buttons. what did I do wrong? Answer Do it as below – Passing arguments to onclick event – Using HTML – Using JS – But, as mentioned

Creating an image from an svg is not working

I have been trying to create an image (using the window.Image class) out of an DataURL. This DataURL contains a svg tag and a foreignObject. But it just stays completely empty. I also tried to draw this image on a canvas, but I don’t think that’s the problem since I can’t even get a correctl…