Python Forum
Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row
#1
I'm trying to figure out a way to append additional rows to a html table using the 'TkinterWeb' module, without having to keep reloading the page or without using 'load_html' to keep reloading the document and slowing down the browser while adding new table row data.

I see that there is the option to add additional html to the document without reloading it by using 'add_html', but how would I keep appending new rows to a html table?

For example, here's what my table rows look like:

<html>
    <table>
        <tr>
              <th>#</h1><th>Heading 1</h1><th>Heading 2</h1><th>Heading 3</h1>
        </tr>
        <tr>
              <td>1</td><td>DATA 1</td><td>DATA 1</td><td>DATA 1</td>
        </tr>
        **<!--APPEND/ADD-NEW-ROW-HERE!-->**
    </table>
</html>
Is there a way to quickly append another table row without constantly reloading the whole document? Is there a way just to manipulate the '' element so that I don't have to keep reloading the whole document?

I would like to click a Tkinter button, then it would append another row to the html table. Just trying to figure out which way it would be best to do so. I've tried replacing a 'html' variable where it says '<!--APPEND/ADD-NEW-ROW-HERE!-->', but it seems as though I'd have to keep reloading the document in order to replace the html variable that I'm using to load my html.

I'd appreciate the ideas. Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WebElements of an HTML page Nik1811 2 365 Mar-14-2024, 12:39 PM
Last Post: Nik1811
  Going through HTML table with selenium emont 3 817 Sep-30-2023, 02:13 AM
Last Post: emont
  Need to replace a string with a file (HTML file) tester_V 1 775 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  why doesn't it replace all html tags? Melcu54 3 761 Jul-05-2023, 04:47 AM
Last Post: Melcu54
  pyscript index error while calling input from html form pyscript_dude 2 996 May-21-2023, 08:17 AM
Last Post: snippsat
  html module in python 3.6.8 suifra 9 1,649 May-12-2023, 11:30 AM
Last Post: suifra
  How to display <IPython.core.display.HTML object>? pythopen 3 46,003 May-06-2023, 08:14 AM
Last Post: pramod08728
  Embedding python script into html via pyscript pyscript_dude 7 1,571 Apr-16-2023, 11:17 PM
Last Post: pyscript_dude
  BeautifulSoup - I can't translate html tags that contain <a href=..</a> OR <em></em> Melcu54 10 1,645 Oct-27-2022, 08:58 AM
Last Post: wavic
  Why is the 'meta description' html tag not translated? Melcu54 2 983 Oct-15-2022, 10:55 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020