How to open one simpledialog2 from another?
I am using the simpledialog2 plugin and trying to call one dialog from another. Very simple. I have a first dialog that has 5 buttons on it. When the user presses one of these buttons, I want a second dialog to pop up where they can enter some text. Ideally, I'd like the first dialog to close before the second opens, but the important thing is that when the user hits a SEND button on the second dialog, both dialogs must exit. I have not been able to accomplish this.
I can get the second dialog to open, but when I call:
- $.mobile.sdCurrentDialog.close();
from this second dialog, it fails to close. In fact, the $.mobile.sdCurrentDialog is undefined. Ideas?
TIA,
Doug