Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript create html tag with javascript

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #279930
    Paddymaster
    Participant

    Hello,

    i’m not a javascript developer, but i tried to write a small script. Codesnipping from various sites :(.

    Well. I’ve a table in “Google spreadsheets” –> Link https://docs.google.com/spreadsheets/d/1XHKLxse9AC-bgapFLUy-4H_FCCi8X1YHZJJmtcEut9I/edit

    Every Entry should like a picture with additional attributes, like the first entry in google spreadsheets .

    I have create a table with 2 columns. All my entries in the table should like this code from me -> https://codepen.io/Paddymaster/pen/aQBWjK.

    Current i can import the text from google drive, but dont know how i can put the text into html code. Its an array from javascript.

    my current code
    https://codepen.io/Paddymaster/pen/XyqxqN

    #280010
    Paddymaster
    Participant

    nobody knows a good answer ?

    #280019
    JeroenR
    Participant

    I’m not sure what it is you’re asking for here, but when using vue, I don’t think you should be creating html elements with javascript, but use the ones in your template.
    So if you want to have the image being shown, then you can use <img></span> for rendering the image with the source instead of {{item.bild}}. Because the latter just outputs text. You don’t have to create an image element yourself for this, just change this in the template.

    #283305
    Paddymaster
    Participant

    Well.
    I want to display the pictures. In the Google sheets are the links.
    also are the tags and description.

    my code is

    https://codepen.io/Paddymaster/pen/XyqxqN

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.