I don't know if "escaping" is the right word (please tell me what the right word/phrase is) but in Ruby you can say something like
text = "This is visit number #{numVisits} to this website"
so you can skip concatenation etc.
I'm working in JQuery and have a bit like this:
$(document).ready(function(){
$("a.ajax").click(function(event){
$("#content").load("data.html this.getClass");
});
});
The behavior I want is "click on (a class="ajax" id="schedule")(/a) and the "content" div on the current page is replaced by the "schedule" div from data.html. If I manually write in
load("data.html #test");
that works, but I want the script to load the DIV with the ID value of the anchor clicked. Any help would be swell!
Example Page: http://www.mariahandalex.info/stack/