On Mar 14, 2013, at 7:58 AM, Gretsch wrote:

> My code used to work, but now the .morph no longer works - in the chrome 
> console it says:
> Uncaught TypeError: Object [object Object] has no method 'morph' 
>  
> The code includes the following:
> <link 
> href="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js";
>  />
> <script type="text/javascript" 
> src="http://script.aculo.us/prototype.js";></script>
> <script type="text/javascript" 
> src="http://script.aculo.us/scriptaculous.js";></script>
> But when I look at the code using Chrome 'Elements' pane it shows:
> <link 
> href="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js";>
> <script 
> src="https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.iRGda-ATQBk.O/m=plusone/am=QQ/rt=j/d=1/rs=AItRSTMWXweuF4qvyKvRjzAhTggmGqAPyA/cb=gapi.loaded_0";
>  async=""></script>
> <script type="text/javascript" async="" 
> src="https://apis.google.com/js/plusone.js"; gapi_processed="true"></script>
> <script id="twitter-wjs" src="//platform.twitter.com/widgets.js"></script>
> <script type="text/javascript" 
> src="http://script.aculo.us/prototype.js";></script>
> <script type="text/javascript" 
> src="http://script.aculo.us/scriptaculous.js";></script>
> <script type="text/javascript" 
> src="http://script.aculo.us/builder.js";></script>
> ...
> <script type="text/javascript" src="http://script.aculo.us/sound.js";></script>
>  
> Can someone tell me where the extra lines come from  e.g.:
> "<script 
> src="https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.iRGda-ATQBk.O/m=plusone/am=QQ/rt=j/d=1/rs=AItRSTMWXweuF4qvyKvRjzAhTggmGqAPyA/cb=gapi.loaded_0";
>  async=""></script>"
> and if this/something else is causing the problem.
>  
> The working code can be seen at:
> http://www.alanarnoldguitars.co.uk/guitar_woods.htm   (but the code is 
> compressed)
> and the version where the 'minimise' button doesnt work is currently at:
> http://www.alanarnoldguitars.co.uk/guitar_woods_UNCOMPRESSED.htm

You have a couple of errors right away on page load, before we even get into 
the rest of this:

guitar_woods_UNCOMPRESSED.htm:20
SyntaxError: Unexpected token '<'
prototype.js:5733
TypeError: 'undefined' is not a function (evaluating 
'element.dispatchEvent(event)')

See if you can get the first one fixed, because the second one is Prototype 
reacting badly to what it is given, and is highly unlikely to be an actual 
error in the Prototype code itself. 

JavaScript errors tend to trickle down, and one can hide another. Also try 
multiple debuggers -- this is from Safari Web Inspector, but do try Firebug too.

Walter

>  
> Thanks
>  
>  
>  
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prototype & script.aculo.us" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to prototype-scriptaculous+unsubscr...@googlegroups.com.
> To post to this group, send email to prototype-scriptaculous@googlegroups.com.
> Visit this group at 
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to