Javascript,Ajax:如何可视化Boomerang.js结果?

时间:2014-02-06 18:26:53

标签: javascript performance web visualization boomerang

好的,我可以将代码段添加到我的测试页面并传入参数。没问题。 如何将通过查询字符串传递的结果参数可视化到我的信标网址?我被踩了。

如果我在测试页面中:

<script type="text/javascript">
    BOOMR.init({
            beacon_url: "http://localhost/myvisualizationpage.php",
            site_domain: "http://localhost/mytestingpage.php",
            user_ip: "My Virtual Box Bridged IP Address",
            autorun: false
            });
</script>

如何将此报告(如下)显示在我的“可视化”页面中?

This page took <x> ms to load
Other timers measured: 
t_resp = <x> ms
t_page = <x> ms
Your bandwidth to this server is <x>kbps (±<x>%)
Your latency to this server is <x>±<x>ms
Other parameters:
rt.start = navigation
bw_time = <x>

点击此链接以获取参考:http://hacks.bluesmoon.info/boomerang/doc/howtos/howto-6.html

1 个答案:

答案 0 :(得分:2)

查看文档目录中的howtos.js:https://developer.akamai.com/tools/boomerang/docs/tutorial-howtos.html

您可以创建一个名为results的空div,并让howtos.js使用信标内容填充该div。