Hi,

\n

Am trying to set the position of nodes by parsing an xml(saved in server side).

\n

When I do,\ngraph.insertVertex(parent, null, $(this).attr("id"),$(this).find('geometry').attr("x"),$(this).find('geometry').attr("y"),50,50);

\n

Graph is displayed correctly at first. When zoomed or panned, the entire graph disappears.

\n

In IE, i get the following error:\nMessage: Invalid argument.\nLine: 5\nChar: 522664\nCode: 0\nURI: http://mxclient.jgraph.com/demo/mxgraph/src/js/mxclient.php?version=1.8.0.3

\n

Thanks in advance.

asked 29 Jan '12, 19:59

punithsn's gravatar image

punithsn
1248
accept rate: 41%


How many cells are in the graph? Can you provide a minimal example to reproduce this?

link

answered 31 Jan '12, 06:07

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

There are 6 cells in the Graph.

\n
$.getJSON("myservlet","", function(data){\n   for(var i=0; i<data.length, i++)\n      graph.insertVertex(parent, null, $(this).attr("id"),data[i].x,data[i].y,50,50);\n
\n

Further Info:\nSample json : {"x":100, "y":100}

\n

The graph disappears even when i drag a cell.

link

answered 31 Jan '12, 06:42

punithsn's gravatar image

punithsn
1248
accept rate: 41%

edited 31 Jan '12, 06:45

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×228
×9
×5
×4

Asked: 29 Jan '12, 19:59

Seen: 1,696 times

Last updated: 31 Jan '12, 06:45