> I have a formular working with function. It check answer with the onChange
> condition.
>
> How can I get onChange with a button ?
> I try to get the parent change with another condition but tno results.
>
> The button fill yes or no as this :
>
> switchCategory = function () {
> var lv = new LoadVars();
> lv.ignoreWhite = true;
> lv.onLoad = function(s) {
> if (s) {
> var tmpXML = new XML();
> tmpXML.ignoreWhite = true;
> tmpXML.parseXML(this.xmlOutput);
> var list = XPathAPI.selectNodeList(tmpXML.firstChild,
> "list/image");
> showUpload(list.length);
> for (var i = 0; i<list.length; i++) {
> var uc = sp.content["uc"+(i+1)];
> uc.prix_txt.text = unescape(list[i].attributes["prix"]);
> uc.desc_txt.text = unescape(list[i].attributes["desc"]);
> uc.fileChanged = false;
> uc.desc_txt.onChanged=function () {
> this._parent.txtChanged = true;
> };
> if (uc.prix_txt.text!=="") {
> this._parent.txtChanged = true;
> };
> }
> }
> };
>
Thank you
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com