Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Plugin won't work on Subdomain
    primarykey
    data
    text
    <p>I have an issue with Chromium not loading a jQuery plugin for some strange reason. </p> <p>If I hit the page through a subdomain, it will not load. If I hit the page through the root domain, everything works fine. Also, if I use Firefox, both ways work.</p> <p>Here's a simple version of what I am trying:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Digital Eagle.net Examples&lt;/title&gt; &lt;script src='js/jquery-1.6.4.js'&gt;&lt;/script&gt; &lt;script src='js/jquery.jLog.js'&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { $.log('Testing'); alert('Test worked successfully'); $('button').click(function() { $.log('Testing Button'); alert('Button Test worked successfully'); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;button&gt;Test Log Plugin&lt;/button&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>When I hit this page through, <a href="http://digitaleagle.net/example/subdomain.php" rel="nofollow">http://digitaleagle.net/example/subdomain.php</a>, everything works fine. I see the alert dialogs.</p> <p>When I use the subdomain to access the page, it suddenly quits working! The link, <a href="http://example.digitaleagle.net/subdomain.php" rel="nofollow">http://example.digitaleagle.net/subdomain.php</a>, returns a javascript error:</p> <pre><code>Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'log' (anonymous function) </code></pre> <p>In this example, I am having trouble with the log plugin. In my actual application, I am also having trouble with a Google Analytics plugin. </p> <p>Is this a Chromium bug?</p> <p>Here's my Chromium version info:</p> <pre><code>14.0.835.186 (Developer Build 0) Built from source for Fedora release 15 (Lovelock) </code></pre> <p>I'll keep researching, but does anyone have any thoughts as to what I am doing wrong?</p> <p>Update: I have tried installing both the stable and the Dev build of Chrome, and I have the same issue. When I first open Chrome, I see the alert() dialog, but after that, it produces the javascript error. I wonder know if it is a Fedora 15-related problem?</p> <p>Here's my current version info:</p> <pre><code>Google Chrome 16.0.904.0 (Official Build 104662) dev OS Linux WebKit 535.7 (@96998) JavaScript V8 3.6.4.1 Flash (Disabled) User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.904.0 Safari/535.7 Command Line /usr/bin/google-chrome --block-reading-third-party-cookies --flag-switches-begin --enable-print-preview --flag-switches-end Executable Path /opt/google/chrome/google-chrome Profile Path /home/skp/.config/google-chrome/Default </code></pre> <p><strong>Update</strong> --</p> <p>It was my TamperMonkey extension! I renamed my profile directory ( $HOME/.config/chromium/ ), and it worked. Then, just to experiment, I disabled my extensions one by one. As soon as I disabled TamperMonkey, it worked fine!</p> <p>So, now the question is, how do I get both? I use TamperMonkey for other things. Maybe I can open a bug on that project.</p>
    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.
 

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