> Hello all JS coders.
>
> I've read the thread 'Cannot link my external assets'but still got a
> problem.
> I think I am missing something foolish but I can't figure out what is
> it.
--snip!--
> I'm totally clientcide n00b. ;-)
> Any working solution or clue is helping.
>
> TIA
> ~rizqi
>
> ps. Apologize for straight word, I don't know how to express emotion
> in English.
> ----------------------------------
>
> <html>
> <head>
> <title>Test</title>
> <script type="text/javascript" src="js/mootools-1.2.3-core-nc.js"></
> script>
> <script type="text/javascript" src="js/mootools-1.2.3.1-more.js"></
> script>
> <script type="text/javascript" src="js/clientcide-trunk-2.1.0.js"></
> script>
> <script type="text/javascript">
> Clientcide.setAssetLocation('/assets');
> // Clientcide.setAssetLocation("http://localhost/n00b/assets");
> </script>
> </head>
If your assets directory is located within the n00b directory, the
above line you have uncommented will not work. You would want:
Clientcide.setAssetLocation('assets/');
because assets is not in the root directory of the web server.
However, I also use the DatePicker, and I have "calendar.gif" in the
assets directory. In your case, you would want to put it...
assets/calendar.gif
instead of assets/datePicker/calendar.gif. Try moving that gif and see
if it shows up. Also, check out the "Net" tab in Firebug - it will
show you where it's trying to read files from and failing (in red).
Hope that helps...
~Philip
Glad I could help a little. Take note of Aaron's previous email -
that's also a good tip. ;)
~Philip