Monday, 15 July 2013

JQuery Mobile Custom HTML in Page Loading Widget -


How is custom HTML for the page loading widget for the jQuery mobile web app?

I tried the following:

  $ (document) .on ('mobileinit', function () {$ .mobile.loader.prototype.options.html = " & Lt; span class = 'ui-bar ui-owl-c ui-corner-all' & gt; & lt; img src = '/ image / logo.png' /><h2>.loading...< ; / H2 & gt; & lt; / span & gt; ";});   

But it still displays the default image. I want a global configuration.

in a single page

.

  $ (document) .ready (function () {$ .mobile.loading ('' foo '', text: 'foo' Text visual: True, Theme: 'Z', HTML: "End Lieutenant: Span Class = 'UI-Bar UI-Overlay-C UI-Corner-All'" .shougun.it / images / loading.gif '/><h2>.loading...</h2></span> "});});   
  & lt; Script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Link href = "http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" rel = "stylesheet" /> & Lt; Script src = "http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js" & gt; & Lt; / Script & gt; & Lt; Div data-role = "page" & gt; & Lt; Div data-role = "header" & gt; & Lt; H1 & gt; Header & lt; / H1> & Lt; / Div & gt;     

To set up in a global form

call it belog & lt; Script src = jquery should be JS & gt; But before & lt; Script src = jquerymobile.js & gt; Calling on and mobileinit events should you import JS before loading jQuery Mobile JS?

No comments:

Post a Comment