Skip to main content

Bug Tracker

Side navigation

Ticket #3436: TestResults.html

File TestResults.html, 1.1 KB (added by anschoewe, October 01, 2008 02:09PM UTC)

An example file for use for testing. Make a local copy and try it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
    <title>Untitled Page</title>
    <script type="text/javascript" src="Scripts/jquery-1.2.6.min.js"></script>
<a href="javascript:test1(500, 'wikiResults');">Test</a>
<div id="wikiResults" style="margin-top: 35px;"></div>

<script type="text/javascript">
    function test1(count, targetId)
        var dataSourceUrl = "";
        $.getJSON(dataSourceUrl, {c: count, test: "true", nt: new Date().getTime()}, function(results) {
                        var response = new String();
                        response += "<div>";
                        for(i in results)
                                response += results[i];
                                response += " ";

                        response += "</div>";
                        $("#" + targetId).html(response);


Download in other formats:

Original Format