Re: [FlexJS] Form component?

2016-10-17 Thread PKumar
your app running. - this can be achieved using "VerticalColumnLayout" & HTTPService call. No separate control should be required. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Form-component-tp55839p55868.html Sent from the Apache Fl

Re: [FlexJS] Form component?

2016-10-17 Thread Josh Tynjala
Other JS frameworks use a real HTML form to preserve semantics. You can call preventDefault() on the submit event to stop the browser from sending data to the server and navigating to a new page. - Josh On Mon, Oct 17, 2016 at 8:59 AM, Alex Harui wrote: > If I understand this

Re: [FlexJS] Form component?

2016-10-17 Thread Alex Harui
If I understand this thread, we actually need two kinds of Forms: 1) A low-level wrapper for HTMLFormElement. So what if it exits you out of the app to another HTML page. Maybe that's all you need. 2) A form-like thing for RIAs/single-page apps. We might need someone to research how other JS

Re: [FlexJS] Form component?

2016-10-17 Thread Peter Ent
I'm in the middle of trying to a FlexJS mobile example to look nice on both iOS and Android, but I will add this to my todo list! I'm sure we can collaborate on it along with anyone else familiar with forms and how they think it should go in the flex world. Personally, I like to do as little as

Re: [FlexJS] Form component?

2016-10-17 Thread Carlos Rovira
Hi Peter, makes perfect sense. Maybe this is a more advance component and will be better managed in your hands, since I'm still in the process of understand many things here. Moreover I'm making some progress in MDL branch, so If you want to grab it feel free to do it. I think a Form component is

Re: [FlexJS] Form component?

2016-10-17 Thread Peter Ent
When you do this in HTML, the action (eg, www.example.com?q=loc=miami=weather) sends all of the fields to the server which then sends back a new HTML page with the results. A lot of things happen automatically for you, such as pairing the values of the input fields with their IDs to form the

Re: [FlexJS] Form component?

2016-10-17 Thread Carlos Rovira
Hi Peter, makes sense. I was wrong with "action" property...is working ok right now (maybe some wrong compilation), and right now if you hit ENTER, it goes to www.example.com, so regarding what you say, you mean to add some controller/model to the implementation? 2016-10-17 14:28 GMT+02:00

Re: [FlexJS] Form component?

2016-10-17 Thread Peter Ent
Shouldn't it be possible for the action on a to trigger an event that the application code (or its main controller) could use that would then decide to either open a new URL or go to a different FlexJS view? Usually, I would think, an HTML Form's action takes you to another part of the web

Re: [FlexJS] Form component?

2016-10-17 Thread Carlos Rovira
I upload to develop a first working implementation of form, still no functionality, but is nesting elements inside and showing correctly in HTML while surrounded by tag. Only JS considerations (no SWF) My first question is how is managed properties in FlexJS. We don't have commitProperties, so

Re: [FlexJS] Form component?

2016-10-17 Thread Alex Harui
On 10/16/16, 11:31 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, > >maybe I could implement it. It needs few things, action(normal the url to >call when submit the form). the method (GET, POST). >And

Re: [FlexJS] Form component?

2016-10-17 Thread Carlos Rovira
Hi Alex, maybe I could implement it. It needs few things, action(normal the url to call when submit the form). the method (GET, POST). And we should allow to next input elements... I think to start something basic should be ok. To make it I would need some guidance about what component to

Re: [FlexJS] Form component?

2016-10-16 Thread Alex Harui
On 10/16/16, 7:46 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi, > >what about to deal with html forms? I think (as I searched) we have no >form >component yet in FlexJS, right? Correct. I don't think we've

[FlexJS] Form component?

2016-10-16 Thread Carlos Rovira
Hi, what about to deal with html forms? I think (as I searched) we have no form component yet in FlexJS, right? -- Carlos Rovira http://about.me/carlosrovira