Web Connection 5.0
Re: Java Script execution from SELECT tag (Custom Actions in Grid Columns)
03/11/2010
05:50:04 AM
2VW1FFMVC Show this entire thread in new window
Gratar Image based on email address
From:
Brett Carraway
To:
Rick Strahl 
Attachments:
None
Thank you for the CLUEs! I will post my experience once I am able to get back to this.


For the dynamic drop down editing check out this post:

http://www.west-wind.com/WebLog/posts/868775.aspx

which uses jQuery.

+++ Rick ---


I want to execute some Java script to call a method on the server to update a record, much like the DeleteCustomer example where the list is refreshed by using Java to fadeout the affected record and the entire page does not need posted back--this is very sweet (BTW).

However, instead of deleting the record via a link, I want the user to be able to select a status from a selection / list. If the status changed, I want to remove the record from the list using JS.

I've tried this for a couple of days now using the onchange event attribute. I am able to get this to work with a link, but not with a SELECT tag.

Please help.

In the snippet below, _2VG0F1QUF is the value of by record ID.

<SELECT WIDTH="25%" NAME="SelDisp_KCLOGSRDSS" SIZE="1" onchange="JavaScript:DispChange(_2VG0F1QUF,event);"><OPTION Value ="AGT " >Agt (agent contacted)</OPTION> </SELECT>


HTML Help Builder