AutoTools Web Screen, inject into <td id="xx">

Discussion in 'AutoApps' started by mcfrojd, Mar 29, 2017.

  1. mcfrojd

    mcfrojd New Member

    Joined:
    Oct 29, 2016
    Messages:
    13
    Likes Received:
    0
    I have made a table where some of the rows contain a date & time that i would like to update with html inject
    Is this possible?
    Do you have to use an array or can i have 3 diffrent AutoTools Web Screen tasks that updates each line from a variable?
    <tr>
    <td id="datum1" style="text-align: center;"><span style="text-align: center;">2017-03-29<br>13:22</span></td>
    <td id="datum2" style="text-align: center;"><span style="text-align: center;">2017-03-29<br>13:22</span></td>
    <td id="datum3" style="text-align: center;"><span style="text-align: center;">2017-03-29<br>13:22</span></td>
    </tr>
    There are a lot more rows in my table, thats why i was thinking that the use of id="xx" might work
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    If you give an ID to <tr> instead you can replace them all at once :) If you really want to replace one at a time check step 3 here.
     
  3. mcfrojd

    mcfrojd New Member

    Joined:
    Oct 29, 2016
    Messages:
    13
    Likes Received:
    0
    Took me a while before i understand that i should send all the html code with inject.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    yeah :) glad you got it!
     

Share This Page