Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic problems with clientside events in javaapplet mode (Read 2816 times)
lue
YaBB Newbies
*
Offline


I love NetDiagram!

Posts: 43
Location: Austria
Joined: Jan 9th, 2008
problems with clientside events in javaapplet mode
Jul 14th, 2008 at 6:36am
Print Post  
We use netdiagram 2.01 with vb.net.

But in Java Applet Mode we cannot  use client side events.

We would like make with a click on a node an event to open a popup window or make other events.

in the html body of page:
    <ndiag:diagramview id="diagramView" style="LEFT: 0px; WIDTH: 540px; POSITION: absolute; TOP: 100px; HEIGHT: 480px" runat="server" clientsidemode="JavaApplet" onnodeclicked="diagramView_NodeClicked" />

in the vb.net page_load:

Sub diagramView_NodeClicked(ByVal sender As Object, ByVal e As NodeEventArgs) Handles diagramView.NodeClicked
Session("Message") += "NC "
End Sub

The diagram is ok, but no reactions on click the node ...

whats wrong?
thanks & regards
chris
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: problems with clientside events in javaapplet
Reply #1 - Jul 14th, 2008 at 7:52am
Print Post  
You will have to code the event handler in JavaScript, and assign its name to the NodeClickedScript property. For example see the OrgBrowser and NetworkChart sample projects.

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


I love NetDiagram!

Posts: 43
Location: Austria
Joined: Jan 9th, 2008
Re: problems with clientside events in javaapplet
Reply #2 - Jul 14th, 2008 at 11:04am
Print Post  
Thanks Stoyan!

Is there any possibility in the java applet mode to transfer data from client side events to the server side f.e. to save this data in session variables?

regards chris
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: problems with clientside events in javaapplet
Reply #3 - Jul 14th, 2008 at 11:37am
Print Post  
I suppose you could add some Hidden fields to an UpdatePanel and post back just the panel when a client-side event is raised. You might also try passing the session id to a web service method, and let the method set the session variables.

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


I love NetDiagram!

Posts: 43
Location: Austria
Joined: Jan 9th, 2008
Re: problems with clientside events in javaapplet
Reply #4 - Jul 14th, 2008 at 12:02pm
Print Post  
Thanks Stoyan, that helps!

Another question: Are they any client side events for drag & drop related events. We have not found such events ...

best regards chris
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint