Addevent in the table

Asked

Viewed 35 times

0

I have the script below:

<script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js" async defer></script>
<div title="Add to Calendar" class="addeventatc">
    Add to Calendar
    <span class="start">05/30/2017 16:00</span>
    <span class="end">05/30/2017 18:00</span>
    <span class="timezone">America/Caracas</span>
    <span class="title">Summary of the event</span>
    <span class="description">Description of the event</span>
    <span class="location">Location of the event</span>
    <span class="date_format">MM/DD/YYYY</span>
    <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
</div>

I would like to put it in an html table, but when I put only the button appears without working

    <table>
     <tr>
        <td>
           <div title="Add to Calendar" class="addeventatc">
              Add to Calendar
              <span class="start">05/30/2017 16:00</span>
              <span class="end">05/30/2017 18:00</span>
              <span class="timezone">America/Caracas</span>
              <span class="title">Summary of the event</span>
              <span class="description">Description of the event</span>
              <span class="location">Location of the event</span>
              <span class="date_format">MM/DD/YYYY</span>
              <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
            </div>
        </td>
     </tr> 
     <tr>
        <td>
           <div title="Add to Calendar" class="addeventatc">
              Add to Calendar
              <span class="start">05/30/2017 16:00</span>
              <span class="end">05/30/2017 18:00</span>
              <span class="timezone">America/Caracas</span>
              <span class="title">Summary of the event</span>
              <span class="description">Description of the event</span>
              <span class="location">Location of the event</span>
              <span class="date_format">MM/DD/YYYY</span>
              <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
            </div>
        </td>
     </tr> 
    </table>

I’m trying to put on each row of the table a button, in case you have more than one

Only I want to get from php

 echo  "<tr>
            <td>
               <div title=\"Add to Calendar\" class=\"addeventatc\">
                  Add to Calendar
                  <span class=\"start\">05/30/2017 16:00</span>
                  <span class=\"end\">05/30/2017 18:00</span>
                  <span class=\"timezone\">America/Caracas</span>
                  <span class=\"title\">Summary of the event</span>
                  <span class=\"description\">Description of the event</span>
                  <span class=\"location\">Location of the event</span>
                  <span class=\"date_format\">MM/DD/YYYY</span>
                  <span class=\"client\">apjeYlqFLzfsSVnNdmRH28418</span>
                </div>
            </td>
         </tr> ";

Reference: https://www.addevent.com/buttons/add-to-calendar#

  • What is your conception of "working"? I tested with the code of the table you placed (adding the tag script) and the dropdown buttons and menu appeared normally and even generated the file for the iOS

  • in mine, generated only the button, but when I click nothing happens

  • Was any of the answer helpful? Don’t forget to choose one and mark it so it can be used if someone has a similar question!

1 answer

0

With the script import working properly below:

<script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js" async defer></script>
<table>
  <tbody>
    <tr>
      <td>
        <div title="Add to Calendar" class="addeventatc">
          Add to Calendar
          <span class="start">05/30/2017 16:00</span>
          <span class="end">05/30/2017 18:00</span>
          <span class="timezone">America/Caracas</span>
          <span class="title">Summary of the event</span>
          <span class="description">Description of the event</span>
          <span class="location">Location of the event</span>
          <span class="date_format">MM/DD/YYYY</span>
          <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
        </div>
      </td>
    </tr>
    <tr>
      <td>
        <div title="Add to Calendar" class="addeventatc">
          Add to Calendar
          <span class="start">05/30/2017 16:00</span>
          <span class="end">05/30/2017 18:00</span>
          <span class="timezone">America/Caracas</span>
          <span class="title">Summary of the event</span>
          <span class="description">Description of the event</span>
          <span class="location">Location of the event</span>
          <span class="date_format">MM/DD/YYYY</span>
          <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
        </div>
      </td>
    </tr>
  </tbody>
</table>

  • only that I’m trying to run by php

  • I guess it doesn’t work with php

Browser other questions tagged

You are not signed in. Login or sign up in order to post.