DEV Community

Discussion on: Introduction of Floating Window Library “JSFrame.js”

Collapse
 
rochiey profile image
Rochie Yamit

Hello ive tried it and it works. The thing is i initialize the dialog from your code snippet above. The thing is, when i tried pressing x, it closes but when I click my button again, it doesnt show up. I don't know what I did wrong. I put the frame.show in my onclick function. There is an error showing "cannot read property 'beanList' of null" in my js console when i tried pressing my button again when it doesnt show up. How can i show the dialog everytime i click the button and restricts it when the frame is still up.

Collapse
 
riversun profile image
riversun

Which code did you try?
I will check it too.

Collapse
 
rochiey profile image
Rochie Yamit

The one that initializes and shows the frame. when you click the button it shows the frame, when you close, it closes. Again, when you click the button, js console pops some errors and the frame doesnt show up again.