| Page 1 of 1 | [ 3 posts ] |
JB Malatrasi
|
Hi,
In the previous release we could use the null value instead of an callback object in Asynchronous Transactions like that: YAHOO.util.Connect.asyncRequest('POST', 'php/post.php', null, "new=1&old=2"); But why that's not working anymore in YUI 2.8.0r4? Is there a way to make that working without changing all my scripts? Thanks. -- JB |
|
Using a local copy of connection.js, change line 396 to the following:
- else if (callback.xdr) { + else if (callback && callback.xdr) { If this fixes the problem, file a bug and I will check in an update to development master on GitHub. If not, please provide me with any additional code, or a link, that will allow me to reproduce what you are seeing. Regards, Thomas |
JB Malatrasi
|
I added a new ticket here: http://yuilibrary.com/projects/yui2/ticket/2528480
I applied what you told me, that works fine. You can see the bug here: http://jumbay.info/testjs/index.php And the bug fixed here: http://jumbay.info/testjs/index2.php Thanks |
| Page 1 of 1 | [ 3 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