[ 3 posts ]

JB Malatrasi

  • Username: JumBay
  • Joined: Thu Sep 17, 2009 4:59 am
  • Posts: 23
  • Location: France
  • Twitter: JumBay
  • Offline
  • Profile

YUI 2.8.0r4 - Connection Manager & null callback

Post Posted: Thu Sep 17, 2009 5:14 am
+0-
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? :roll:

Thanks.

--
JB

Thomas S. Sha

YUI Contributor

  • Username: tsha
  • Joined: Thu Jan 08, 2009 10:16 am
  • Posts: 206
  • Offline
  • Profile
Tags:

Re: YUI 2.8.0r4 - Connection Manager & null callback

Post Posted: Thu Sep 17, 2009 8:58 am
+0-
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

  • Username: JumBay
  • Joined: Thu Sep 17, 2009 4:59 am
  • Posts: 23
  • Location: France
  • Twitter: JumBay
  • Offline
  • Profile

Re: YUI 2.8.0r4 - Connection Manager & null callback

Post Posted: Thu Sep 17, 2009 12:38 pm
+0-
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
  [ 3 posts ]
Display posts from previous:  Sort by  
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