Well, I can see two problems so far:
If you use the selector
$("#content")
, it means that you need to have some element to find by
id="content"
. You don't show such HTML element in your sample. Apparently, if you don't have it, the code won't work.
Please see:
http://api.jquery.com/category/selectors/[
^],
http://api.jquery.com/id-selector/[
^].
The second thing depends on what do you have at the address pointed by the URL
"Pages/" + addr
. As you mention "load page" in the title of the question, it suggest there is a whole HTML page at this address. It cannot work, because the whole page could not be an inner HTML of HTML element. It can only work if this is a fragment of HTML, which is a valid HTML construct, so the whole thing after loading would meet the requirements defined by HTML schema.
The problem is that you don't show many of methods shown in this code fragment, so, who knows what other problems could be there?
—SA