dojo Beginner Development on Windows hiccup
11
July
I've been reading up a lot about dojo, a fantastic javascript toolkit that allows developers to make spiffy web applications without the hassle of worrying too much about things like browser compatibility. dojo takes care of most of the hard work for you and comes with loads of widgety goodness.
I wrote my first line of code today. In writing my first line of code I ran into problems. Windows.
It's moments like this I miss my Gentoo box and the larry the cow forum humour. moo.
Anyway, in my wisdom, I decided to base my first app on an existing widget test, so I copied that test into my new projects directory. In doing so I knew I'd have to tell the script where to find dojo relative to where I'd moved the test. Herein lay my problem. I wanted to be able to freely move tests about without having to worry about directory relativity.
Here's the default source reference out of SVN:
<script type="text/javascript" src="../../dojo.js"></script>
and here's what I had hoped would work but didn't:
<script type="text/javascript" src="/htdocs/svn/dojo/dojo.js"></script>
instead, after looking through documentation and pulling out my hair, here is what I had to use:
<script type="text/javascript" src="file:///c:/htdocs/svn/dojo/dojo.js"></script>
note the three slashes. thankyou windows. :/
Thankgod for Editplus' abiilty to search and replace text in multiple open files! Whee. God, where would I be without that… *cringes*
Now, my test is back to it's full functional best, and I can play away. Yay!
Next I have to decide whether or not I want to use a framework with my new found dojo love. Python or PHP even Ruby… To django or not to django. Z.end perhaps. RoR what a decision.
PHP probably, app markets widest appeal it be. :/


