Archive

Archive for the ‘JavaScript’ Category

NetBeans code templates

November 21st, 2008

I am so excited about new NetBeans 6.5. It’s definitely my number one choice when it comes to PHP development. Today I got carried around in playing with Code templates (Tools > Options > Editor > Code Templates). This is personal favorite of mine in NetBeans. If you are like me and you do a lot of Magento developement then you are most likely to use a lot of inline code. I also use a lot of

<?php echo ‘<pre>’; print_r($variable); echo ‘</pre>’; ?>
and
<?php echo ‘<pre>’; Zend_Debug::dump($$${variable}); echo ‘</pre>’; ?>

With code templates you can add a new template. If you add a new template with abbreviation “de” and add a content like

echo ‘<pre>’; print_r($$${variable}); echo ‘</pre>’; ?>

Then all you need to do while writting code is something like

<?php de+TAB

and you get

<?php echo ‘<pre>’; print_r($variable); echo ‘</pre>’; ?>

For me this is a huge time save. I use a lot of these during development.

This is my favorite

<?php echo ‘<pre>’; print_r($variable); echo ‘</pre>’; die; ?>

Bellow you can see a screenshot of NetBeans code templates.

NetBeans code templates

NetBeans code templates

I’m loving it :)

Interesting? Share it!
  • Digg
  • del.icio.us
  • Google
  • Technorati
  • Facebook
  • TwitThis
  • description

General, JavaScript

Building Ajax form with jQuery

August 3rd, 2008

The greatness of JavaScript is… damn, why do I even bother. We all know what JavaScript can do. It brings life to your web site. If done right it can make your site more user friendly, accessible, functional and so on. In this example I’m gonna show you how to add Ajax into your web forms. I’ll be using my favorite JavaScript framework, jQuery.

Ajax with jQuery is extremely simple. If you browse to this url, you will clearly see supported methods for Ajax Requests and Ajax Events. I really like jQuery documentation. Seems very good organized. If you click on one of the method names, let’s say jQuery.ajax you will see 3 main navigation tabs at the top: Overview, Options, Example. Read more…

Interesting? Share it!
  • Digg
  • del.icio.us
  • Google
  • Technorati
  • Facebook
  • TwitThis
  • description

JavaScript, jQuery , , ,

Intellisense support for jQuery

July 25th, 2008

Although most of my work these days is done in PHP, I’m not a shame to say that I’m a proud owner of Microsoft Visual Studio 2008. I use it mostly for playing around with C#. Since Visual Studio 2008 there is a intellisense support for JavaScript. Personally I’m a big fan of intellisense technology, not because I like machine writing my code but because I don’t like to spent hours and hours digging trough some bad documentation in order to hunt down some object properties and methods.

Recently I started playing around with jQuery. I love it, it’s simple yet powerful. However, intellisense support in Visual Studio simply did not work on jQuery. At least I thought so :)

Today I discovered, this post. I cannot describe how happy I was.

Just check out the screenshot I provided, and you will soon understand what am I talking about.

Interesting? Share it!
  • Digg
  • del.icio.us
  • Google
  • Technorati
  • Facebook
  • TwitThis
  • description

JavaScript, jQuery ,

jQuery, I’m loving it

June 21st, 2008

Recently, I discovered jQuery. For the last few weeks I’ve been extremely busy so I haven’t had a chance to play around with it. Since I had no plans for this weekend I decided to grab a cop of coffee, and give it a go with jQuery. First impressions; excellent.

One of the most interesting concepts of jQuery is that of unobtrusive JavaScript. So simple jet so powerful.

Doing my regular surf & research I’ve come across some forums where people complain how jQuery and the way it’s implemented is trying to reinvent the JavaScript language. True or not, I’m so grateful for this and/or any other open source framework out there. For all others not sharing my opinion, feel free to reinvent the well, said that with all the best intentions.

I specially liked the following article. Must say I agree with it, although I’m far from experienced user of both of them. I barely scratched the surface of using it.

Interesting? Share it!
  • Digg
  • del.icio.us
  • Google
  • Technorati
  • Facebook
  • TwitThis
  • description

JavaScript