Sublime Forum

Can we update html popup after click on it?

#1

I have 2 things to show such as my first popup

<body><a href=' ...'>Before</a></body>

and the second one

<body>After</body>

Is it possible to change current popup after user clicks on it (using some user define function that will handle “href”) ?

How to use view.update_popup ?

0 Likes

#2

Did you try view.update_popup(content) as the doc say? Like view.update_popup('<body>After</body>').

1 Like

#3

yes. I used it.
But not able to do it after clicking it.
It was throwing global view not found error

0 Likes

#4

Without an example of the code you’re trying to use, it’s hard to say what may be going wrong. Can you provide a minimal example of something that doesn’t work? Your error message sounds like you’re using view in place of self.view or such (but it’s hard to say for sure).

0 Likes