| Page 1 of 1 | [ 2 posts ] |
|
After a day's worth of work I finally have my system partially working. A test drop section has been set up and is active, it identifies hits and drops correctly. However, I am now trying to get IO working.
For the YUI Instance, I have this set up: YUI().use('dd', function(Y) { Drag, and Drop / Hit Detection works. I have set up a script that identifies a specific variable needed for the system in the name of the node, and turns it into a JS variable. SnippetClick here to see the revision history on this Gist.Most of this is taken directly from the examples and modified slightly. However, the IO transfer fails to work. What needs to happen is this - when a user drops a dragged node on the drop target, it should trigger the IO to send the related variable to the page it's on through POST. The page will then read the variable in PHP and do something with it depending on what it actually says. Checking in Firebug, the debugger reports "Y.io is not a function" What am I doing wrong? |
|
You need to use IO:
Code: YUI().use('io', 'dd', function(Y) { This line will also fail: Code: data: "ID=dNum&first=yes", It should be this: Code: data: "ID=" + dNum + "&first=yes", Javascript is not like PHP, variables aren't parsed from strings. |
| Page 1 of 1 | [ 2 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