If i put the data-xxx attributes with jQuery .data() method, theese
attributes disappeared after i insert element to a container. If i put
the data-xxx attributes with .attr() method, the attributes remains. Why
disappeared with .data() method?
If linking to another pages, in ajax response i serve only the <div
data-role="page"> ... </div> portion of the new page,
without <html>, <head>, etc. sections. Is there any way to
refresh only some parts within the <div
data-role="page"> ... </div> section? For example
I'd like to refresh only the <div role="main"
class="ui-content"> ... </div> content, or any other
section within the page. How can i do this?
If i insert a html snippet which contains a script tag to the dom, jQuery .html() method appends &_=<random, seems Date.now> to the url of the src attribute. I read in the documentation ( http://api.jquery.com/jQuery.ajax/ ), if the cache is disabled in ajax request, jQuery do the similar thing. But in my example no ajax request, only dom manipulation. Why jQuery appends this random value to the url in this case?
In form plugin up to version 2.85 the success callback returns the real content type in xhr.getResponseHeader('content-type'). But version 2.86 always returns text/html content type, independent what the server sends. It is big problem for me, because i have a small framework which uses the content type returned by form plugin, to decide what to do. Is there any other way to extract the real content type?
I have a set of elements with id-s x1,x2,x3,x4. If i select only one of them siblings like $('#x1').siblings(), it selects the other three elements. But if i select siblings of two elements like $('#x1,#x2').siblings(), it selects all elements.
I'm using the latest 2.45 version of form plugin. If file upload present in the form, the submit will be "normally" to an iframe. In this case, if the response Content-Type is text/javascript, only in Opera this example mostly not working, few times works:
I'm using jQuery Download Builder and build my own packages. But in the downloaded package the dialogs can't be draggable, and/or resizable. But everything works fine if i add this additional js to the code: