Comments (13)
Please provide a link to a live form where this can be reproduced so I can investigate further.
If an input element is exposed to the light dom, or a custom element with a name attribute and a value property, then ajax-form will send the value to the server. If there is something malfunctioning there, I will be sure to fix. However, if these paper elements don't follow that convention, then you'll have to file a request/issue in the proper polymer issue tracker as I don't plan to bake any further element-specific code into ajax-form.
On Sun, Nov 30, 2014 at 10:59 AM, Alejandro Navarro
[email protected] wrote:
Hello,
I'm doing some tests and it seems that this type of paper-input (usingpaper-input-decorator
directly) is not read by ajax-form. In addition, I'm using this element withpaper-autogrow-textarea
included. Can you please check this? A demo example of this element is on https://www.polymer-project.org/components/paper-input/demo.html , labeled aswith autogrowing text area + floatingLabel
All other fields are sent ok. Thanks for this awesome component :)
<textarea></textarea>
Reply to this email directly or view it on GitHub:
#30
from ajax-form.
Note that I am asking for a link to a live page where this can be reproduced as this will reduce the turnaround time on this issue.
On Sun, Nov 30, 2014 at 11:05 AM, Ray Nicholus [email protected]
wrote:
Please provide a link to a live form where this can be reproduced so I can investigate further.
If an input element is exposed to the light dom, or a custom element with a name attribute and a value property, then ajax-form will send the value to the server. If there is something malfunctioning there, I will be sure to fix. However, if these paper elements don't follow that convention, then you'll have to file a request/issue in the proper polymer issue tracker as I don't plan to bake any further element-specific code into ajax-form.
On Sun, Nov 30, 2014 at 10:59 AM, Alejandro Navarro
[email protected] wrote:Hello,
I'm doing some tests and it seems that this type of paper-input (usingpaper-input-decorator
directly) is not read by ajax-form. In addition, I'm using this element withpaper-autogrow-textarea
included. Can you please check this? A demo example of this element is on https://www.polymer-project.org/components/paper-input/demo.html , labeled aswith autogrowing text area + floatingLabel
All other fields are sent ok. Thanks for this awesome component :)
<textarea></textarea>
Reply to this email directly or view it on GitHub:
#30
from ajax-form.
Hello, thanks for your quick response.
I am looking for a CDN that hosts Polymer elements for making a demo for you in jsbin or jsfiddle, but can't find any. My website is local, so it is not public on Internet.
I will continue searching for a way to create a demo page for this issue...
from ajax-form.
Another option is to use cloud9 ide to build your example. A public url will be available on the c9 domain to access your page.
On Sun, Nov 30, 2014 at 11:48 AM, Alejandro Navarro
[email protected] wrote:
Hello, thanks for your quick response.
I am looking for a CDN that hosts Polymer elements for making a demo for you in jsbin or jsfiddle, but can't find any. My website is local, so it is not public on Internet.I will continue searching for a way to create a demo page for this issue...
Reply to this email directly or view it on GitHub:
#30 (comment)
from ajax-form.
If you don't get around to it, don't worry. I'll try to find some time over the next few days or so to reproduce in my environment.
On Sun, Nov 30, 2014 at 11:48 AM, Alejandro Navarro
[email protected] wrote:
Hello, thanks for your quick response.
I am looking for a CDN that hosts Polymer elements for making a demo for you in jsbin or jsfiddle, but can't find any. My website is local, so it is not public on Internet.I will continue searching for a way to create a demo page for this issue...
Reply to this email directly or view it on GitHub:
#30 (comment)
from ajax-form.
Hmm, you said that a component MUST have a name
property and a value
property to load its value from ajax-form. Is it right?
If yes, this is the problem. This component does not create a value
property containing the current value.
from ajax-form.
How does one access the value of the form field?
On Sun, Nov 30, 2014 at 11:58 AM, Alejandro Navarro
[email protected] wrote:
Hmm, you said that a component MUST have a name property and a value property to load its value from ajax-form. Is it right?
If yes, this is the problem. This component does not create a
value
property containing the current value.Reply to this email directly or view it on GitHub:
#30 (comment)
from ajax-form.
It does not populate the text-area content inside the element to a value
property in the element paper-input-decorator
.
For example, in paper-input
, when you change its content and click out of the box, it will populate that new content to a property value
in the paper-input
.
Maybe I am doing something wrong, but I am using the resources without changing or customizing anything.
from ajax-form.
I'm a bit unclear as to how you can access the value of the form field here (or what the form field is). Let's say you needed to programmatically grab the field's value for some other purpose. What property would you check to grab the field's value?
On Sun, Nov 30, 2014 at 12:06 PM, Alejandro Navarro
[email protected] wrote:
It does not populate the text-area content inside the element to a
value
property in the elementpaper-input-decorator
.
For example, inpaper-input
, when you change its content and click out of the box, it will populate that new content to a propertyvalue
in thepaper-input
.Maybe I am doing something wrong, but I am using the resources without changing or customizing anything.
Reply to this email directly or view it on GitHub:
#30 (comment)
from ajax-form.
Well, I tried to make an example, but can't load your resource because of a restriction:
"Imported resource from origin 'http://garstasio.github.io' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://fiddle.jshell.net' is therefore not allowed access."
Anyway, this is the jsfiddle (not finished, but you can look at the differences between both components): http://jsfiddle.net/xnxbkxzq/4/
Thanks!
from ajax-form.
Is the textarea element the one that actually holds the user inputted value? If so, and if the textarea is present in the light DOM, then adding a name attribute to that element instead of the paper-input-decorator should solve the issue for you.
On Sun, Nov 30, 2014 at 12:22 PM, Alejandro Navarro
[email protected] wrote:
Well, I tried to make an example, but can't load your resource because of a restriction:
"Imported resource from origin 'http://garstasio.github.io' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://fiddle.jshell.net' is therefore not allowed access."
Anyway, this is the jsfiddle (not finished, but you can look at the differences between both components): http://jsfiddle.net/xnxbkxzq/4/Thanks!
Reply to this email directly or view it on GitHub:
#30 (comment)
from ajax-form.
Nice catch! It does work perfectly when the name value is in the text-area instead of the paper-input element.
Thanks!
from ajax-form.
Cool. I may have caught it sooner if I was near a proper computer. Troubleshooting on an iPhone isn't ideal. Glad you're up and running again.
On Sun, Nov 30, 2014 at 1:01 PM, Alejandro Navarro
[email protected] wrote:
Closed #30.
Reply to this email directly or view it on GitHub:
#30 (comment)
from ajax-form.
Related Issues (20)
- multipart/form-data requests are missing a boundary ID in Content-Type HOT 1
- Ajax form 2.0.2 ignores tinyMCE HOT 12
- Got "Cannot read property 'addEventListener' of undefined" HOT 5
- Polymer 1.0 now requires webcomponents-lite, that change breaks firefox compatibility HOT 3
- Duplicate key/value pairs HOT 2
- Polymer 0.5 dependency left in index.html HOT 4
- Unexpected array values HOT 20
- paper-dropdown-menu still not submitting the values HOT 5
- DELETE method not available HOT 1
- NPM warning HOT 1
- paper-input values get submitted twice (-> as array) HOT 5
- Ajax-form ignores formaction attribute HOT 8
- Can not set "method" dynamically HOT 6
- Gradient has outdated direction syntax HOT 4
- Demo link fails HOT 5
- The polyfill 404's on the demo HOT 1
- <select> element value submitted as array HOT 12
- Make available via bower HOT 4
- Automate documentation/demo updates
- Multipart form data not working on Firefox HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ajax-form.