Note that there are some explanatory texts on larger screens.

plurals
  1. POBookmarklet doesn't work in IE9 when dragged from hyperlink but works after editing
    primarykey
    data
    text
    <p>I created a bookmarklet to load data from my site to a dialog on a third party site. </p> <ul> <li>This is to assist the users of the third party site with a feature that is otherwise tedious when done manually. </li> <li>The bookmarklet works when dragged from an image hyperlink to the favourites/bookmark bars in Chrome and Firefox</li> <li>In IE(9) however I'm only able to get it going is by editing the hyperlink by changing some data and putting it back then clicking OK. The content is UNCHANGED</li> </ul> <p>I've pasted a generic version of my script below</p> <pre><code>function loadScript(url, callback) { var script = document.createElement("script"); script.type = "text/javascript"; if (script.readyState) { script.onreadystatechange = function() { if (script.readyState == "loaded" || script.readyState == "complete") { script.onreadystatechange = null; callback(); } }; } else { script.onload = function() { callback(); }; } script.src = url; document.getElementsByTagName("head")[0].appendChild(script); } if (typeof (runMyCode) == "undefined") { loadScript( "http://mysite/myscript.js", function() { runMyCode(); }); } else { runMyCode(); } </code></pre> <p>If I remove say, the last semicolon and save the bookmarklet, it works :/</p> <p>Edit: Added html below</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="ISO-8859-1"&gt; &lt;title&gt;My tile&lt;/title&gt; &lt;link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico"&gt; &lt;/head&gt; &lt;body&gt; &lt;a href="javascript:function loadScript(url, callback) { var script = document.createElement(&amp;quot;script&amp;quot;); script.type = &amp;quot;text/javascript&amp;quot;; if(script.readyState) { script.onreadystatechange = function() { if (script.readyState == &amp;quot;loaded&amp;quot; || script.readyState == &amp;quot;complete&amp;quot;) { script.onreadystatechange = null; callback(); } }; } else { script.onload = function() { callback(); }; } script.src = url; document.getElementsByTagName(&amp;quot;head&amp;quot;)[0].appendChild(script);}if (typeof(runMyCode) == &amp;quot;undefined&amp;quot;) {loadScript(&amp;quot;http://mysite/myscript.js&amp;quot;,function() {runMyCode();});} else{ runMyCode();}" title="Drag me to your Bookmark and click me to check your remaining tiles in a game"&gt; &lt;img border="0" alt="My Alt Text" src="http://mysite/myimage" /&gt; &lt;/a&gt; &lt;br/&gt; &lt;span&gt;Drag the image above to your bookmarks toolbar&lt;br/&gt;and more text&lt;/span&gt; &lt;/body&gt; &lt;/html&gt; </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.
 

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