i've got some problems using jQTouch. I have this Link
<a href="#site_map" class="swap">Map</a>
and this jQTouch initalization:
var jQT = new $.jQTouch({
icon: 'jqtouch.png',
icon4: 'jqtouch4.png',
addGlossToIcon: false,
startupScreen: 'jqt_startup.png',
preloadImages: []
});
Sooo... the Console (Google Chrome) says:
Uncaught TypeError: Cannot read property 'hash' of undefined
Line 331, jQTouch.js...
Somebody any Idea?
Some aditional Informations:
Firefox Console:
hash is undefined
hash = hash.replace(/^#/, ''),
jqtouch.js (Zeile 431)
(432 out of range 4)
jquery.js (Zeile 432)
And Finally, Safari Console:
TypeError: 'undefined' is not an object (evaluating 'hash.replace')
Ensure if you're using jQTouch with jQuery, that you load the base JQT along with the JQT jQuery bridge file (odd - plugin was originally started to work with jQuery, now requires a separate add-in script to work with it instead of Zepto.js)
Also - is this error occurring on page load? Is this a static HTML page that you're using JQTouch for, or is this dynamically created using PHP, .NET, etc?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With