This might be a dumb question, but my jquery skills are still somewhere below zero.
I do have the following jquery code in my external .js file. And it works fine, but, for maintenance and reusebility reasons, I don't like having the target url hard coded in the .js file.
But I assume it isn't possible to pass the PW api $config->urls->root to this external .js file, would it?
/*Make header div clickable*/
$(document).ready(function() {
$('#header').click(function(){
window.location = 'http://www.mysite.com/';
});
$('#search_form').click(function(event){
event.stopPropagation();
});
});
/*End header div*/
/Jasper













