jquery/jquery-mobile — Issue #3425: feature request: data-resuable to avoid having to put the same code on every page
Author: frequent
Created: 2012-01-12 21:00:42+00:00
State: open

just an idea:

since JQM can have more than one page inside the DOM, woudn't it make sense to play with that feature and offer some kind of _data-reuseable_ . Elements labelled with this trigger would only have to be defined once per DOM and will be inserted on every page with a specific target container.

I'm sitting over a bunch of pages right now with each one having a login form.

It would be nice if this login form would only exist once in the DOM an would be inserted everywhere I need it. Right now I'm adding the respective page id to every input element to not end up with multiple instances of the same input when the DOM contains more than one page.

A single login form, which would be JQM/client-side dropped into every page would be handy.

What do you think?