| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" > |
|---|
| 3 | <head> |
|---|
| 4 | <title>Untitled Page</title> |
|---|
| 5 | <script type="text/javascript" src="Scripts/jquery-1.2.6.min.js"></script> |
|---|
| 6 | </head> |
|---|
| 7 | <body> |
|---|
| 8 | <a href="javascript:test1(500, 'wikiResults');">Test</a> |
|---|
| 9 | <div id="wikiResults" style="margin-top: 35px;"></div> |
|---|
| 10 | |
|---|
| 11 | <script type="text/javascript"> |
|---|
| 12 | function test1(count, targetId) |
|---|
| 13 | { |
|---|
| 14 | var dataSourceUrl = "http://code.katzenbach.com/Default.aspx?callback=?"; |
|---|
| 15 | $.getJSON(dataSourceUrl, {c: count, test: "true", nt: new Date().getTime()}, function(results) { |
|---|
| 16 | var response = new String(); |
|---|
| 17 | response += "<div>"; |
|---|
| 18 | for(i in results) |
|---|
| 19 | { |
|---|
| 20 | response += results[i]; |
|---|
| 21 | response += " "; |
|---|
| 22 | |
|---|
| 23 | } |
|---|
| 24 | response += "</div>"; |
|---|
| 25 | $("#" + targetId).html(response); |
|---|
| 26 | }); |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | </script> |
|---|
| 31 | </body> |
|---|
| 32 | </html> |
|---|