I wish to have a navigation bar containing a bunch of links, which when clicked, fetches the relevant file from the server and displays it in a div.
The problem is that I've been searching for the past three hours for a way to pass the url to the jQuery script for the load function. All of the dozens of ajax tutorials I found, assumed that I would be happy to hard code the url of the file I want to load, directly into the javascript rather than passing it with the event.
Obviously if I do it their way, I'll end up with a dedicated function for every link. So how should I pass the url that I want to load?
Thanks.