| Page 1 of 1 | [ 1 post ] |
|
Hi, im tring to make a conection using that function, when i execute my code trying to connecting to a local page, it works well, my problem occurs when i try to connect to a remote page for example google, or yahoo
here is the code im using: Code: <script src="http://yui.yahooapis.com/2.9.0/build/yahoo/yahoo-min.js"></script> <script src="http://yui.yahooapis.com/2.9.0/build/event/event-min.js"></script> <script src="http://yui.yahooapis.com/2.9.0/build/connection/connection_core-min.js"></script> <script src="http://yui.yahooapis.com/2.9.0/build/connection/connection-min.js"></script> <script> var args = ['Med','10061986']; var responseSuccess = function(o) { alert("salio bien" + o.responseText); /* Please see the Success Case section for more * details on the response object's properties. * o.tId * o.status * o.statusText * o.getResponseHeader[ ] * o.getAllResponseHeaders * o.responseText * o.responseXML * o.argument */ }; var responseFailure = function(o) { // Access the response object's properties in the // same manner as listed in responseSuccessss( ). // Please see the Failure Case section and // Communication Error sub-section for more details on the // response object's properties. alert("aca entro" + o.statusText ); }; var callback = { success:responseSuccess, failure:responseFailure, argument:args }; //Initiate an asynchronous transaction. var cObj = YAHOO.util.Connect.asyncRequest('GET','http://www.yahoo.com',callback); </script> the message error that appears its: comunication error. i hope someone can help me, Thanks! |
| Page 1 of 1 | [ 1 post ] |
| 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