< script type = "text/javascript" > |
02 |
$(function() { |
03 |
$("#clickToInsert").click(function() { |
04 |
$.getScript("pages2_2.js", function() { |
05 |
$.get("service.ashx?file=pages2_3.txt", function(data) { |
06 |
$("#placeholder").html(data); |
07 |
}, "text"); |
08 |
}); |
09 |
}); |
10 |
}); |
11 |
</ script > |
12 |
< input type = "button" id = "clickToInsert" value = "Insert HTML" /> |
13 |
< div id = "placeholder" > |
14 |
</ div > |
< script type = "text/javascript" > |
02 |
$(function() { |
03 |
$("#clickToInsert").click(function() { |
04 |
$.get("service.ashx?file=pages2_4.txt", function(data) { |
05 |
$("#placeholder").html(data); |
06 |
}, "text"); |
07 |
}); |
08 |
}); |
09 |
</ script > |
10 |
< input type = "button" id = "clickToInsert" value = "Insert HTML" /> |
11 |
< div id = "placeholder" > |
12 |
</ div > |
pages2_4.txt:
01 |
< script src = "pages2_2.js" type = "text/javascript" ></ script > |
02 |
< script type = "text/javascript" > |
03 |
setup(); |
04 |
</ script > |
05 |
< div id = "complex_page_segment" > |
06 |
< input type = "button" value = "Previous Page" class = "previous" /> |
07 |
< input type = "button" value = "Next Page" class = "next" /> |
08 |
< div class = "content" > |
09 |
Page Content</ div > |
10 |
</ div > |