Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I wrote this a few days ago: <a href="http://www.appidx.com/ubiq/stackoverflow.html" rel="nofollow noreferrer"><a href="http://www.appidx.com/ubiq/stackoverflow.html" rel="nofollow noreferrer">http://www.appidx.com/ubiq/stackoverflow.html</a></a></p> <p>The execute portion refuses to run with POST data. The code is the right code, and I've tried with the native code of the function with the XUL component javascript and it likewise refuses to run. Any help would be appreciated. The preview on the other hand works fine.</p> <pre><code>CmdUtils.CreateCommand({ name: "stackoverflow", author: {name: "Aryeh Goldsmith"}, homepage: "http://www.appidx.com/ubiq/", icon: "http://stackoverflow.com/favicon.ico", takes: {search: noun_arb_text}, license: "MPL", description: "Searches the highlighted text on stackoverflow.", _version: "52", preview: function ( pblock, inputObject) { var query = inputObject.text; pblock.innerHTML = "Search stackoverflow.com for " + query + "&lt;br/&gt;"; var url = "http://stackoverflow.com/search"; params = {"search-text": query, "hiddenstuff": ''}; jQuery.post( url, params, function( html ) { var $ = jQuery; pblock.innerHTML += "&lt;div style='display:none;'&gt;" + html + "&lt;/div&gt;"; var ques = $(pblock).find('.summary h3'); var details = $(pblock).find('.summary .excerpt'); var out = "&lt;div style='margin-bottom: 6px;'&gt;&lt;b&gt;Previewing the first 5 results:&lt;/b&gt;&lt;/div&gt;"; for (var j = 0; j&lt; ques.size() &amp;&amp; j &lt; 5; j++) { out += "&lt;div style='padding: 5px;'&gt;&lt;b&gt;" + ques[j].innerHTML + "&lt;/b&gt;&lt;br /&gt;"; out += details[j].innerHTML + "&lt;/div&gt;"; } pblock.innerHTML = out; }); }, execute: function( inputObject ) { var query = inputObject.text; var url = "http://stackoverflow.com/search"; var params = { "search-text": query, hiddenstuff: "" }; // The following refuses to work... why? I just don't know! AFAIK it's correct. openUrl(url, params); }, }) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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