Note that there are some explanatory texts on larger screens.

plurals
  1. POHashtag URL rewrite / DOM manipulation causing JS misfire
    text
    copied!<p>I'm using the ever-popular Fancybox (http://fancybox.net) as a lightbox plugin, but for some reason it's throwing an Uncaught TypeError: Object [object Object] has no method 'fancybox' error and failing to execute.</p> <p>By ripping out my AJAX / jQuery DOM rewrite script I've confirmed that it is the appending of the hash <code>http://myurl.com/!#/</code> that is causing the Fancybox script to misfire in it's targeting, giving a null response on the script.</p> <p>The details of the AJAX content fetching aren't that important, the point is that it is causing some aspect of Fancybox to not execute correctly (a dependency on the root URL in the main of the plugin code). How can I rewrite the plugin to find the correct root URL and ignore the hash rewrite? </p> <p>Here is a pastebin of the Fancybox code I need to re-write regarding DOM targeting: <a href="http://pastebin.com/s9FjCiai" rel="nofollow">http://pastebin.com/s9FjCiai</a></p> <p>You can see the in-development site live in my development sandbox here: <a href="http://dreamstartest.net" rel="nofollow">http://dreamstartest.net</a></p> <p>The JS resources are definitely being loaded according to Chrome Developer Tools... any other ideas for debugging?</p> <p><strong>EDIT</strong> Opened this as an issue on Github, but like I said in the comment below, the developer looks to be swamped and I'm on a deadline, if anyone is able to find offending lines that might cause problems with the URL hash rewrite I would be eternally grateful!</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