trentrichardson / jQuery-Impromptu

An extention to help provide a more pleasant way to spontaneously prompt a user for input.
http://trentrichardson.com/Impromptu/
MIT License
327 stars 144 forks source link

Jquery Mobile Compatibility? #83

Open ppetree opened 6 years ago

ppetree commented 6 years ago

Has anyone tried this with JQM?

Before spending hours, the first and most immediate issues I see are:

  1. Some/most pages are loaded into the dom dynamically so the elements wouldn't exist in the dom when then tutorial started but would get loaded when a required action was invoked. I could see this wreaking havoc with a script with a script unprepared for jqm.

Thoughts?

trentrichardson commented 6 years ago

I've not used jqm, but if I understand the concern correctly, this shouldn't be a problem. For clarity your thinking: jqm you click a link (or some event occurs) and you do two things:

If this is the case you would just need to not open the prompt until you receive some type of success or loaded event on the page change before. Outside of that the prompt's html shouldn't interfere with jqm.

ppetree commented 6 years ago

Trent,

Thanks for your response. Does impromptu have a way to trigger those events (i.e. $.changePage("somePage");