Right now it's not necessarily very easy to do as the core and paper form 
elements aren't particularly designed to stand in for standard form 
elements. To make them submit like a standard form you'd likely need some 
onsubmit JavaScript that serialized the values into hidden fields.

My guess is that a future version of Polymer will ship with more 
"native-compatible" form elements.

On Saturday, December 13, 2014 8:45:37 AM UTC-8, [email protected] wrote:
>
> Hello Michael
> Your answer is useful but from other answers in all the web that I read.
> But steel I don't know  that how can I send a form that are include of 
> same polymer elements (like core-dropdown, paper-input etc.) to my server.
>
> Can you help me?
>
> در چهارشنبه 9 آوریل 2014، ساعت 12:48:09 (UTC+4:30)، Michael Bleigh نوشته:
>>
>> I don't know all the ins and outs, but this appears to work for me:
>>
>> <!doctype html>
>> <html>
>>   <head>
>>     <script src="platform/platform.js"></script>
>>     <link rel="import" href="polymer/polymer.html">
>>     <polymer-element name="super-input" extends="input" attributes="value 
>> name" noscript>
>>       <template>
>>         <style>:host{ border: 0; padding: 0; }</style>
>>         This is my <input value="{{value}}">
>>       </template>
>>     </polymer-element>
>>   </head>
>>   <body>
>>     <form method='get'>
>>       <input is="super-input" value="whatever" name='test'>
>>       <button type="submit">Submit</button>
>>     </form>
>>   </body>
>> </html>
>>
>> Hope that helps!
>>
>> On Wednesday, April 9, 2014 1:08:01 AM UTC-7, Günter Zöchbauer wrote:
>>>
>>> Is there a way to make a polymer element behave like a DOM input element
>>> - it's data gets sent on submit
>>> - participate in validation 
>>> - ...?
>>>
>>> I thought this was a common requirement but I only found one unanswered 
>>> SO question.
>>>
>>> Günter
>>>
>>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/5cd165e0-21e5-4f32-ab1f-28b0cc36bf5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to