Rev 837 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 837 | Rev 1265 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | ||
1 | function zirkel2wims(type,name){ |
2 | function zirkel2wims(type,name){ |
2 | var data |
3 | var data; |
3 | xmlString =document.getElementById("zirkel").getDrawing("\""+type+"\"","\""+name+"\""); |
- | |
4 | data=xmlString; |
- | |
5 |
|
4 | if(type != null && name != null){ |
6 |
|
5 | // get only the things we want... |
7 |
|
6 | data = document.getElementById("zirkel").getDrawing(type,name); |
8 | } |
7 | } |
9 | else |
8 | else |
10 |
|
9 | { |
- | 10 | // this function retreives all construction details |
|
- | 11 | // excluded objects with name prefix "my_" |
|
- | 12 | data = document.getElementById("zirkel").getAllObjects(); |
|
11 | } |
13 | } |
- | 14 | if(data.indexOf("error") != -1){alert(r19+"\n"+data); return "error";}else{return data;} |
|
12 | } |
15 | } |