forms - jQuery: Executing functions in previously saved data and online? -


i've been working little time jquery , can't figure out how this...

the thing in work i'm making lot of forms can reloaded different data , events width dependents controls. example (a simple example) have 3 radiobuttons select favorite food: meat, fish , another. when click radiobutton can specify other food in textbox (and other 2 disable textbox)

they can save data , can reopen form data loaded , same input status (disabled/enabled).

normally program in 2 parts, 1 executes when page loaded (this part enables/disables inputs according saved data - or lack of data 'if radiobutton selected enable specify textbox, else disable it') , 1 executes when click event triggered (if click radiobutton enable textbox, if click 1 disable - , onclick function every radiobutton)

i've been thinking lot , think way jquery in 1 time, haven't found way it... ideas?

i know think doing in 2 steps isn't lot of work, should know we're working forms more 200 different dependent inputs... that's reason because improve , reduce js code.

ah! work in asp.net (c#), if have idea asp.net controls instead of jquery, welcomed.

thanks lot, , sorry english -.-

json answer, why: 1.it can pack real parameters 1 options parameter : example: {"id":"me","opened":1,"used":{"user":"kiki","rights":"none"}} 2.this can sent server side code of choice , stored/interpreted/retransmited jvascript later

all need establish parameters wisely. (i've made "table" select box jquery can have multiple columns,predefined number of rows,paging (database linked, meaning requests page serverside when needed, parametrized fields searching (also linked server side) +++ keyboard navigation +++ lightspeed, json). there simple structured json code moves , forth between serverside , jquery.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -