Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Example needed for BoxTextEdited (Read 2255 times)
sjones665
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 10th, 2008
Example needed for BoxTextEdited
Mar 10th, 2008 at 3:53pm
Print Post  
Do you have any example code on how to use the BoxTextEdited event with ClientSideMode set to JavaApplet?

I am reviewing your trial version and can't seem to figure out how detect when the text in a box has been edited.

Thanks in advance!

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Example needed for BoxTextEdited
Reply #1 - Mar 10th, 2008 at 4:03pm
Print Post  
There aren't any server-side events raised from JavaApplet mode. You could detect that the box has been edited on the client side using the LeaveInplaceEditScript javascript event, e.g. create a function like this

function LeaveInplaceEdit(box, changeAccepted)
{
}

and assign its name to the FlowChart.LeaveInplaceEditScript property.

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


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 10th, 2008
Re: Example needed for BoxTextEdited
Reply #2 - Mar 10th, 2008 at 5:25pm
Print Post  
So, how then do I make the server side ASP.NET code aware of the Box text change? Sorry if I'm being dense.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Example needed for BoxTextEdited
Reply #3 - Mar 10th, 2008 at 5:39pm
Print Post  
You can call a web service and process the change on the server, as shown in the OrgBrowser sample project. Another option is to gather the IDs of all boxes modified on the client side in some hidden field, and inspect them upon postback.

We could also add a property that when enabled will make the control post the page and raise a server side event after the user edits some text.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint