Category / Javascript

If you are using Nightwatch JS to test a website and you need to test an anchor nested in a unsorted list, be sure to add the name attribute in the anchor, otherwise, the click command will fail.

Read More

MorrisJS is a simple Javascript library used to draw simple beautiful charts. It is based on Raphael Javascript library.

Read More

Actions and filters are so awesome in WordPress. They provide a very simple and powerful way to customization the WordPress core. So, Plugins and themes can execute code before or after specified event or change the result of many core functions. On the web, I found few discussion about the Javascript porting of actions and […]

Read More

Have a look to the code below:

Also, you can use this tips in:

Double pipe is great, don’t you? However, you have to be careful, because this tips can be dangerous. See some example below:

 

Read More

As you know, you can insert some content in any HTML page. You can insert a content by using document.write() or by using the property innerHTML in a DOM object. Also, you can use an existing TAG in order to add/remove elements from its. For example, you can add a Javascript with:

Of course, […]

Read More