Scriptaculous draggable JS links

已查看 91 次
跳至第一个未读帖子

Robert shimield

未读,
2012年5月15日 04:55:322012/5/15
收件人 prototype-s...@googlegroups.com
Hi


My draggable script works fine when linking to script.aculo like so: 
<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 downloading the JS files and linking them locally it does not work:
<script type="text/javascript" src="http://kuka/drag/prototype.js"></script>
<script type="text/javascript" src="http://kuka/drag/scriptaculous.js"></script>

Can anyone give me a hint why this is so?

Many thanks,

Robert Shimield
Frimley Park Hospital

Phil Petree

未读,
2012年5月15日 08:42:372012/5/15
收件人 prototype-s...@googlegroups.com

Best guess would be versioning... but regardless, link to the modules off of Google instead of locally.

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/pW0DyDczMbUJ.
To post to this group, send email to prototype-s...@googlegroups.com.
To unsubscribe from this group, send email to prototype-scripta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.

Jason

未读,
2012年5月15日 11:17:042012/5/15
收件人 prototype-s...@googlegroups.com

Agreed - unless you want to maintain them yourself - linking to the google version of the files will ensure they are always the latest version and you could benefit from other site already caching the files on the user's browser

-Jason


On Tuesday, May 15, 2012 5:42:37 AM UTC-7, ppetree wrote:

Best guess would be versioning... but regardless, link to the modules off of Google instead of locally.

On May 15, 2012 8:29 AM, "Robert shimield" <rob...@hotmail.co.uk> wrote:
Hi


My draggable script works fine when linking to script.aculo like so: 
<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 downloading the JS files and linking them locally it does not work:
<script type="text/javascript" src="http://kuka/drag/prototype.js"></script>
<script type="text/javascript" src="http://kuka/drag/scriptaculous.js"></script>

Can anyone give me a hint why this is so?

Many thanks,

Robert Shimield
Frimley Park Hospital

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/pW0DyDczMbUJ.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to prototype-scriptaculous+unsub...@googlegroups.com.

gerd

未读,
2012年5月16日 05:10:102012/5/16
收件人 prototype-s...@googlegroups.com

Local path without protocol:

<script type="text/javascript" src="kuka/drag/prototype.js"></script>
<script type="text/javascript" src="kuka/drag/scriptaculous.js"></script>
回复全部
回复作者
转发
0 个新帖子