Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic I have a problem of anxious (Read 3385 times)
wangzh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Apr 25th, 2009
I have a problem of anxious
Apr 27th, 2009 at 9:16am
Print Post  
I want to send diagram data to client.on client side,I would like to load through the DiagramView loadFromString mothod.
Code is as follows:
C#:
this.textbox1.value = dv.SaveToString(SaveToStringFormat.Xml, false);

JScript:
var resultstr = document.getElementById('textbox1').value;
document.getElementById('DiagramView1').getDiagramView().loadFromString(resultst
r);

I found that the client will load unsuccessful.Why?
what can i do?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: I have a problem of anxious
Reply #1 - Apr 27th, 2009 at 1:06pm
Print Post  
Could you copy the XML string and email it to support@mindfusion.eu? It would be strange if this does not work, since the control transfers the diagram to the applet in a similar manner, as an XML string that is loaded through loadFromString. Could you verify that the getElementById(...).getDiagram() call correctly returns a Diagram object?
  
Back to top
 
IP Logged
 
wangzh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Apr 25th, 2009
Re: I have a problem of anxious
Reply #2 - Apr 27th, 2009 at 3:16pm
Print Post  
hi,stoyan

On this issue, I have already made a message to you,Requests to receive your e-mail.
Look forward to your help.thanks a lot!

wangzh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: I have a problem of anxious
Reply #3 - Apr 27th, 2009 at 3:57pm
Print Post  
Seems ASP.NET automatically escapes the < and > characters in the hidden.Value. If you know of some JavaScript function that un-escapes them, call it before loadFromString. Otherwise, you might call dv1.SaveToString(SaveToStringFormat.CompressedXml, false); it returns a string that does not need escape/unescape.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
wangzh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Apr 25th, 2009
Re: I have a problem of anxious
Reply #4 - Apr 28th, 2009 at 3:01am
Print Post  
hi Stoyan
I do so in accordance with your method, but the diagramview will load still unsuccessful .
My test Page has been sent to your mailbox(support@mindfusion.eu).
Please help me solve this problem.
thanks a lot!
« Last Edit: Apr 28th, 2009 at 8:49am by wangzh »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint