java
php
css
c
xml
python
mysql
xcode
objective-c
visual-studio
eclipse
flash
json
perl
cocoa
delphi
mvc
asp
api
jsp
window.location.hash = "#ca" { function changeText(1); function changeText(2) }
is syntactically invalid JavaScript, so the assignment to location.hash never happens.
location.hash
I'm not quote clear on what you're trying to do, but maybe
function changeText(1); function changeText(2)
should be
changeText(1); changeText(2);
Changing the hash does not cause the page to reload, so the server isn't involved. You can always use JavaScript to examine the hash and behave differently based on it.