Note that there are some explanatory texts on larger screens.

plurals
  1. POGmail Contextual Gadget, Cannot Get jQueryUI Buttons To Show
    text
    copied!<p>Have got a problem <strong>getting jQueryUI working / initialising a basic button inside of the CDATA part of a Gmail Contetual Gadget Spec file</strong>.</p> <p>Here is the the first part of the CDATA section of the spec file.</p> <p>The problem is that while the alert() runs, the .button() call doesn't do anything to the html button. </p> <p>I've also tried .button("refresh") to no avail.</p> <pre><code>&lt;Content type="html" view="card"&gt; &lt;![CDATA[ &lt;style type="text/css" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/redmond/jquery-ui.css"&gt;&lt;/style&gt; &lt;!-- Start with Single Sign-On --&gt; &lt;script type="text/javascript" src="http://example.com/gadgets/sso.js"&gt;&lt;/script&gt; &lt;!-- jQuery --&gt; &lt;!-- Check for latest .. https://developers.google.com/speed/libraries/devguide --&gt; &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"&gt;&lt;/script&gt; &lt;p&gt;Version 11&lt;/p&gt; &lt;button type="submit" id="test-button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button"&gt;&lt;span class="ui-button-text"&gt;Button&lt;/span&gt;&lt;/button&gt; &lt;script type="text/javascript"&gt;$(function() { $("#test-button").button(); alert("why?"); } );&lt;/script&gt; </code></pre> <p>Have I missed something?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload