To instruct the user, I have used the jqXHR.fail
function in the Ajax call to do some error handling in case the server
returns an error, or is not available at all (statuscode = 0).
would like to disable the submit button, but off course it needs to
be enabled again when the server is reachable again.
pointers to some code snippits or pluggins that are known to work
with JQM are welcome. I was thinking about iteratively trying to
download something small from the server, and when that succeeds
switch back to online mode again. Any ideas?
Hi, I would like to dynamically change the checkboxradio widget from
horizontal to vertical depending on the width of the page.
window.matchMedia raises an event when the window becomes small.
Then using $('.fieldset').attr('data-type',
""); the ="horizontal" part can be removed. When
you create a page with just "data-type" on the fieldset the
radio buttons are shown vertically as intended. However, when doing
this dynamically nothing happens.
I tried to call refresh() on the fieldset, but I don't know how
best to do that. I get an Uncaught Error: cannot call methods on
checkboxradio prior to initialization; attempted to call method
'refresh'. Maybe this has to do with the moment the matchMedia
event occurs. See http://plnkr.co/edit/CHThh2aPHYf6Rbn4fgo5 (drag
the window so it gets smaller than 800px)
Currently to solve this I rebuild the page in code-behind:
$( currentPage).remove(); //Remove the current page so it does
not get mixed with the new one
The idea is that during validation on form submit, it is
dynamically decided what the next page should be
should be possible to go back to the same page again
In reality, the pages are generated by code
behind, so going to the same page again does not mean the page
actually has the same content - this should also be
Currently in the
implementation I have switched of ajax transitions, and I do the
redirect in code behind. That works. But I would like to get the
JQM page transitions. So I am looking for a way to do that in
I can get the page
transitions to work, but then the current page in DOM is messed
up so the jQuery selectors fail.
I saw the Plunker written by Omar on a related problem, so I
adapted that to my need, but here I get a Page Load error, Method
It works with a positionTo up to about '#uc5_UC'. When you
set the target to a value that would require to scroll to get in to
view after loading the page, the popup comes on the lowest element
still visible without scrolling.