I have this code with me which looks like this when I run the apk in titanium emulator.
I have put a certain code below for change event where certain text fields and text areas show up.
newTF[i].addEventListener('change', function(e) { var j; Ti.API.info('e is'+JSON.stringify(e)); for(j=0; j<ids.length; j++){ if(e.source._id==ids[j]){ floor=floor_array[j]; ceiling=ceiling_array[j]; tempFloor=parseInt(newTF[j].getValue()); if((tempFloor>=floor && tempFloor<=ceiling)||e.source.getValue()==''){ issuelabel[j].height = 0; issuelabel[j].visible = false; issuetextarea[j].height = 0; issuetextarea[j].visible = false; correctivelabel[j].height = 0; correctivelabel[j].visible = false; correctivetextarea[j].height = 0; correctivetextarea[j].visible = false; } else { issuelabel[j].height = Ti.UI.SIZE; issuelabel[j].visible = true; issuetextarea[j].height = 100; issuetextarea[j].visible = true; correctivelabel[j].height = Ti.UI.SIZE; correctivelabel[j].visible = true; correctivetextarea[j].height = 100; correctivetextarea[j].visible = true; } } } });I have a submit button below and on its click I want to post the data entered in the text field and text area through the API calls.
Here is the pastebin link with code again.
Can someone please help me out here?