Archive | Yahoo RSS for this section

Simple Ajax with YUI!!!

For those of you, who want to get started with YUI and Ajax, this would surely prove helpful.


<html><head>
<title>Lets learn YUI</title>

</head>

<body>
<div id="mydiv">

Add some Text or Images if you want to replace dynamically</div>
<a href="Loading.html" onclick="return YUI();">My first AJAX</a>
<script src="build/yahoo/yahoo-min.js" type="text/javascript"></script>

<script src="build/event/event-min.js" type="text/javascript"></script>

<script src="build/connection/connection-min.js" type="text/javascript"></script>

<script type="text/javascript">

//<!&#91;CDATA&#91;

function YUI(){

var loadUrl = "Loading.html";

var callback = {

success: function(o) {

document.getElementById('mydiv').innerHTML =  o.responseText;

},

failure: function(o) {

alert("AJAX doesn't work"); //FAILURE

}

}

var transaction = YAHOO.util.Connect.asyncRequest('GET', loadUrl, callback, null);

return false;

}

//&#93;&#93;>

</script>

</body>

</html>

This is how one can simply make AJAX calls using YUI. The code is simple and self explanatory. If you need any help with this, please drop in comments.

Cheerz
Shri

If you are reading article, you might also be interested in the PHP and Scriptaculous Book I have authored.

The book gives you insights about effects, drag-n-drop, slideshows, applications, auto-completion, in-place editing and more. Complete code snippets and explanations.

CHECK out and BUY the PHP and Script.aculo.us book at Packt official site
mybook

http://www.packtpub.com/php-and-script-aculo-us-web-2-0-application-interface/book

Advertisements

Yahoo Open Hackday: Awesome Event!!!!

In this post, I am only talking about the event, my experience and in the next post follows the actual details of the hack!!!! 

I started from my place at 13.00pm, reached Taj Residency @MG Road.

Went upstairs, and Met Joe Arnold, I met him during D-Camp as well. Bhosky was already there. Vibhash, Prashant Mishra, Shourya Sarcar, Yousuf, Bala, Alagu were all there.

Finally around 15:30pm it all started with talks from Chirstian Heilman, Shivku and other folks.

At 1700pm the Hackday began and everyone started working on their hacks.

We formed a team, Me, Bala, Vibhash and Yousuf and after a lot of brainstroming, we decided to work on Yahoo Search Mashup!!!!
<wink>The details follow in next post, with code and demo 🙂 </wink>

We@ Workingworking.jpgwith_heilman.jpgwith_bharat.jpg

While the hack, we even had fun on the IRC Channel. Ventat from Y! even helped us with Y! Answers API.

The arrangements were just perfect from wireless setups to bean bags to coffee to food to drinks to video games to just everything.

During break session, I even met Sidu and we shared some thoughts on Start-ups, Entrepreneurship etc etc. It was informative.

I got even chance to speak to Mr.Bharat Vijay, the man who started Yahoo India operations 🙂

We had to present our hack in 90 seconds, and everyone showcased the stuff they worked on. I must admit, every idea was brilliant, lot of thought process and hard work behind it. The best part was that everyone present were awake for more than 24 straight hrs and still charged!!!! Amazing, thanks to tons of cofee and Red Bull

We didnt get any prize , but some people appreciated the efforts. We were happy about it 🙂

During Dinner, I even got a chance to speak to Yahoo’s Co-founder David Fil0. Yusuf quickly catched the moment in the camera. Even, got a snap with Chirstian Heilman as well.

Finally, when the time came to say goodbye, we all got a bean bag from Yahoo as well.

The best part was the gathering of some many talented people under one roof, you interact, you learn so many things and the energy was just flowing all around!!!!

I will soon be updating the post with pictures as well. Next post is abt the Yahoo Search Mash-up we have hacked!!!! So stay tuned.

For complete coverage:
1. Loads of Flickr images
2. List of Winners
3. Developer Network post

One of the best weekend, I have ever spent in my life. Thanks to all the folks at Yahoo!!!!

CHeerz
Shri

PS: Photo courtesy from hackers who have uploaded in Flickr.

Yahoo SDK & YUI are simply awesome!!!!

I must appreciate the fact on how much Yahoo gives freedom and power to developers through libraries and toolkits.

I am currently using YUI and Yahoo SDK for building a small application and I am highly impressed with the libraries.

For sure Y! are doing great job, making our life lil more simpler 🙂

I have been using some libraries like Rico, scriptaculous, Dojo and trust me when I say, YUI stands tall here.

If you havent tried it yet, get yourself hooked on http://developer.yahoo.com. Loads of tutorials, code, demos. For FREE

Try it now…

Cheerz
Shri

If you are reading article, you might also be interested in the PHP and Scriptaculous Book I have authored.

The book gives you insights about effects, drag-n-drop, slideshows, applications, auto-completion, in-place editing and more. Complete code snippets and explanations.

CHECK out and BUY the PHP and Script.aculo.us book {My Book} at Packt official site
http://www.packtpub.com/php-and-script-aculo-us-web-2-0-application-interface/book