-
Notifications
You must be signed in to change notification settings - Fork 33
using simpledialog as alert() replacement #14
Comments
You will need to attach it to multiple pages. Unless you can work out a way to move it, in which case I'm happy to add the function - I use it for pretty much the same purpose, and end up just creating instances on the fly as I need them. Also, unless you are using the blank html mode, simpledialog won't change it's content once initialized - another downside to how I did things - considering working that one out. |
Hi jtsage. I would like to know how you're creating your instances on the fly. Do you have to clean up the old markups that you used for showing the dialog? |
Adding:
right after:
then when opening a dialog:
allows me to open my dialog on any page
|
I think that if the mobile-simpledialog remove himself from the DOM after using it most of the "problems" would be solved. We could open as many instances as we wanted without problem the window does not refresh some content when reopened or not to open when working with multiple pages. This is a great plugin and has much potential. I have not quit him after all the difficulties I have had. :) I'm using this way for now:
Basically I attached the window in the div and when I click the button I remove the div created by me and created by the mobile-simpledialog. |
I need to display more than one confirm popup using an special order, like first popup "A", then "B", and then "C", each one of them must have a confirm button so the next popup will be opened when it is pressed. |
Hey mate,
Great job on simpledialog - its a great plugin :) I'm trying to use it as a replacement for alert() - what i've done is have a HTML simpledialog with a in it, and I set the 's value to my alert message just before showing the simpledialog.
It looks great, but the only problem is that I have a multi-page jquery mobile app, so the simpledialog only works on the page where i opened it first. My simpledialog "alert()" will no longer work when i go to a different page, so I guess the plugin attaches itself to whatever page you called it on first?
Is there any way to make this work so i can just have one simpledialog for multiple pages? Or do I need to attache a simpledialog to each page that might have an alert()?
Thanks,
Michael
The text was updated successfully, but these errors were encountered: