jQuery Mobile: Styling content loaded through AJAX -
on particular jquery mobile page loading content through ajax post. replacing content in dom returned html. returned html contains form elements, jqm style.
this used work in beta 1:
$.ajax({ type: 'post', url: form.attr("action"), data: form.serialize(), success: function (response) { if (response.worked) { voucher_area.fadeout(function () { $(this).html(response.html).children().page(); $(this).fadein(); }); } else { notify.showmessage("could not update call voucher information: " + response.message, "error"); } }, datatype: "json", error: function () { notify.showmessage("fatal error."); } });
the call page on content style content. in latest version no longer seems work.
is there correct way style loaded content?
thanks
you should able style content directly using like: $(this).css({'padding':'5px'}) using styles of choice.
alternatively, should able define appropriate styles in external css file well.
Comments
Post a Comment