I was reading an article and read about plugin. I came to know that plugin exists in YUI3. Then the question come to my mind what to do with plugins in YUI3. Widget are already there.
As I read here, Plugins are for atomic functionality and not for a set… (Continue)
Here is fourth post about YUI. It will result in Facebook like draggable floating div using YUI3. Earlier post about YUI3 were Learn YUI3, Learn YUI3: Playing with Events and Putting Callbacks, Learn YUI3: Attach Event to Dynamic Content.
This post is regarding Overlay using YUI3.
This a how the overlay look:… (Continue)
How would you attach event to dynamically generated content such as li, div? Many elements are dynamically created based on user action. Something like search result, carousel, or other kind of tool where you have next, prev button generally add content dynamically to the container.
Usually one may thing of adding… (Continue)
This is 2nd one in the series of YUI3 learning. Previous one in the tutorial was about node, how to access node and its properties in YUI3. I have also shown examples of domready events there.
Use of Events are very common in JavaScript programming. OnClick and Hover is the… (Continue)
I was thinking of writing few posts about YUI but not writing about it thinking I do not know much, so what can I write. Finally I thought to write about small things every developers face when jump into YUI first time.
YUI2 is deprecated and it is very different… (Continue)
We use global variable to share something across functions in JavaScript.
Here is an example script showing
- How the global variable behaves in JavaScript,
- How we can create global variable, and
- How we can use it?
<script>
// A global variable. It can be defined like this… (Continue)
I am reading the Book JavaScript: The Good Parts By Douglas Crockford. I read somewhere that it is good for those who already have some knowledge of JavaScript. I have found that feedback correct.
I have purchased the book because I thought that I have some knowledge of JavaScript and… (Continue)
I was looking for getting all words in uppercase in HTML text using Regex. After solving through Googling and trial and error, I thought to extend the code to return all lowercase words too.
It is a flexible regex code because it is written in three parts. For stripping HTML,… (Continue)
Here is a JavaScript, PHP and HTML written during experiment with stateful Ajax. The code provide stateful Ajax. It maintains the stateful Ajax as you traveled the path. file1 and file2 is separate PHP file that Ajax loads. +ve Counter is provided by one PHP file and -ve Counter is… (Continue)
Today I have written HTML tool for blogger. It was earlier in PHP and now it is in JavaScript. HTML encoding application written in PHP was converting converting &, “, ‘, for posting codes online. I intended to do that in JavaScript. It can be simple as just searching each… (Continue)