[Kss-devel] Changing a form selection

Balazs Ree ree at ree.hu
Fri Mar 23 09:17:54 CET 2007


Fri, 23 Mar 2007 08:50:57 +0100 keltezéssel Christian Klinger azt írta:
> Hi Rob,
> 
> if i understand you correct, you want change your options in your select
> box triggerd by an  KSS-Event, right?
> 
> If thats your usecase you can do something like this: (it´s not tested)
> 
> for x in YOUR_NEW_OPTIONS:
>               result.extend(['<option value="%s">%s</option>'
>               %(x[0],x[1])])
>               IKSSComands.replaceInnerHTML('licenseClass', '
>               '.join(result))

Now, this is what *won't* work, as I just outlined in my previous letter. 
You must replace the select tag as well, or IE will punish you. See the 
second kss demo pn how we solved this.

But I understood that Rob does not want to do this, he does not want to 
change the list of actions, but instead he wants to change the current 
selection. If this is not so, then sorry, I misunderstood.

The example that I brought was merely to demonstrate what terrible bugs 
we have to fight with in various browser implementations, just to be able 
to do even the most simple things in a cross compatible way. 

In other words, it seems that we have not tested this yet and since it is 
a new usecase, we cannot give any specific advice on it, besides that it 
needs to be tried, and even that if a solution works on one browser does 
not mean it will work on the others.

-- 
Balazs Ree



More information about the Kss-devel mailing list