| Page 1 of 1 | [ 5 posts ] |
|
Using 3.5.0, primarily node, autocomplete and io-form.
I am trying to use the auto-complete to assist in filling out a search form. This works great except when I try to submit the form which I am trying to use io-form to complete. The issue is that io:complete triggers on every reply from the auto-complete fields. I can work up some public test code if necessary. thanks |
|
I'm not sure I completely understand the problem, but if you can share some working code that reproduces it, I'd be happy to take a look.
|
|
I think the real issue is using datasource-io and io-form on the same page is causing the conflict.
I put some test code up here trying to reduce the number of variables. Just type a "w" into the search or click the "search" button. I have an alert trigger on the io:complete code. I suspect IO:Complete does not care where the transaction was initiated. |
|
Woo Hoo! I figured it out.
I needed to create a new instance of IO() for use with the form: Code: var myFormIO = new Y.IO(); Then use my new object instead of the global Y object. So my send button does this Code: myFormIO.send(uri, cfg); instead of Code: var request = Y.io(uri, cfg); Seems to do what I need. Hopefully I am on the right track. |
|
Thank you JohnG! I had the same problem until I discovered your post.
|
| Page 1 of 1 | [ 5 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group