How to get the part of webpage with ui.html & iframe #5009
Replies: 1 comment 3 replies
-
Hi @JamesShiYB, You can't run two NiceGUI app side-by-side like this. The first But you could define a separate endpoint for the iframe content: @ui.page('/inline')
def inline():
ui.image('https://picsum.photos/id/684/640/360')
with ui.card():
ui.html('<iframe src="/inline" top="100" left="100" width="200" height="100"></iframe>') |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Example Code
Description
First part of the codes is a webpage example with port=9000
Second part is to try to get the part of the above webpage defined by "top" "left" "width"and "height". It does not work as expected.
NiceGUI Version
2.22.1
Python Version
12.10
Browser
Chrome
Operating System
Linux
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions