trouble getting sgvizler to work

27 views
Skip to first unread message

Christine Rohacz

unread,
Jun 18, 2013, 7:32:32 PM6/18/13
to sgvi...@googlegroups.com
Attached it the code I am using to try and implement sgvizler graphs. However, when I go to the html, the graphs do not show up. But i have jquery installed. Any suggestions? 

-Christine Rohacz
query.html

"Martin G. Skjæveland"

unread,
Jun 19, 2013, 3:43:37 AM6/19/13
to sgvi...@googlegroups.com
There are many syntactic errors, both to your HTML, javascript code and
CSS. Use validators and check the javascript console of your browser,
e.g., Firebug in Firefox, for error messages.

Here are some of the typos I found:

<link rel="stylesheet" type="text/css" href="examples.css">
//provides the attributes for graph features

'//' is not the way to add comments in HTML.


<script type="text/javascript"
src="https://www.google.com/jspai"></script>

It should be 'jsapi', not 'jspai'.


<script type="text/javascript" id="sgvzler_script"
src="http://sgvziler.googlecode.com/svn/release/0.5/sgvizler.js"></script>

It should be 'sgvzler_script', not 'sgvzler_script'; and
'sgvizler.googlecode.com', not 'sgvziler.googlecode.com'.


sgvizler.option.namespace.npd="http://sws.ifi.uio.no/npd/';
sgvizler.option.namespace.npdv="http://sws.ifi.uio.no/vocab/npd#';

Don't mix ' and ".


style="width:800px; height=400px;"
^^^
Use colon in CSS.


sgvizler.option.query {
<div id="sgviz_example_table"
....
>
}
</div>

This is a strange mix of HTML and javascript.


Attached is a modified version of your file which works.

Best,
Martin

queryO.html
Reply all
Reply to author
Forward
0 new messages