From: Christopher N. <ch...@ne...> - 2005-06-21 17:37:17
|
On Tue, 2005-06-21 at 10:01 +0300, Thanos Panousis wrote: > The thing is that if you pre-populate the text-boxes, which looks nicer > indeeed, you have no way of knowing which textbox was altered by the > user. So in iwsettings, where I must parse the textboxes to issue a > `iwconfig bla blah`, I want to shorten the last command to just the > needed directives, since prism drivers tend to be a little buggy with > too many iwconfig arguements. > > I'm sure there is a way to actually post only the user-changed > values(JS?), but I didn't decide to use one. Why not get the data again using `get_wireless_status()` before building the iwconfig argument list. Now you know the current state of the system and have the values entered by the user in the form. Then compare what the system settings are to the user input fields building an argument list for only the ones that changed? Cheers, Chris -- Wireless Group, McMaster University finger.localdomain 11:16:57 up 1 day, 20 min, 1 user, load average: 0.01, 0.01, 0.00 |