How to Debug Javascripts - Part2 (Firefox)

This is the part of the my How to debug Javascripts artical. This one will explain how to debug on Firefox using Firebug. See my previous artical on how to debug in Internet Explorer.

Firebug is not only a javascript debugger, it is a complete web debugging tool where you can explore the html DOM and much much more. And it is very easy to use. Once you install Firebug you will get a menu item in under the Tools menu. Using that you can enable and disable firebug for selected sites.



Once you open the Firebug you can inspect the javascripts under the Script tab and do the debugging. You can put breakpoints just by clicking the near the line number.



One special thing with Firebug is that you can put conditional break points. To add conditional break points just right click near the line number you want to put the break point and type your condition.



When there are Javascript errors in the page it is shown in the Firefox status bar. Once you click on that it will open all the errors in the console with possible reasons for that error. This will be very useful for you to find bugs in your application.



You can get more information on Firebug for Firebug site.



Technorati Tags: , ,
 

Happy Sinhala and Tamil New Year

 

Navantis Avurudu Festival

It's Sinhala and Tamil New Year time.....
Navantis had organized a wonderful New Year festival last Sunday (8th April) at Brows Beach Hotel Negambo. It was wonderful event. Almost all of the employees and their family members participated for this event.
Festival started with a traditional breakfast which included Kevum(Oil Cakes) and Kiribath(Milk Rice). We had lots of game on that day. I participated for Goni Race(Sack Race) and Kaba Adeema(Tag-o-War). It was very enjoyable day.





































See more photos in my Paccasa albem >>
 

How to get over the fear of public speaking

If you have problems in public speaking (like me), this is a good artical to read. It gives some simple methods to get rid of the fear of public speaking. Techniques described in the artical are;

  • Practice your speech in front of a mirror
  • Practice your speech facing a wall
  • Practice with a friend
  • Practice with a peer (non-friend)
  • Record yourself
  • Do a dry run
  • Don’t only practice in front of your family

How to get over your fear of public speaking - lifehack.org>>

 

Internet Explorer 7 Keyboard shortcuts

If you are using Internet Explorer 7, here are some useful keyboard shortcuts that will make your life easy.

Basic tasks

[F11]

Toggle full screen mode

[Alt]

Toggle display of menu bar (if it's not set to display)

[Ctrl]=

Zoom in

[Ctrl]-

Zoom out

[Ctrl]0

100 percent zoom

[Ctrl][F]

Search for selected text on page

[Ctrl]N

Open current page in new window

[Ctrl]A

Select everything on page

[F5]

Refresh current page

[Ctrl][F5]

Refresh cache and current page

[Esc]

Halt downloading page

[Alt]D

Select text in Address bar

[F4]

Display addresses you've typed

[Ctrl][Enter]

Add www and .com to the beginning and end of text entered in Address bar

[Ctrl][Shift][Enter]

Add http://www to the beginning of text entered in Address bar

Navigation

[Alt]Home

Go to your home page

[Alt] Left arrow (or [Backspace])

Go to previous page

[Alt] Right arrow

Go to next page

[Tab]

Move forward through items on page

[Shift][Tab]

Move backward through items on page

Tabs

[Ctrl] Click

Open a link in its own tab in background

[Ctrl][Shift] Click

Open a link in its own tab in foreground

[Ctrl]T

Open new tab in foreground

[Ctrl][Tab] (or [Ctrl][Shift][Tab] to reverse)

Cycle between tabs

[Ctrl]W (or [Alt][F4]

Close current tab

[Ctrl] number

Jump to specific tab by number (1 through 8)

[Ctrl]9

Jump to last tab

[Ctrl][Alt][F4]

Close all but current tab

[Ctrl][Shift]Q

Display Tabs list

[Ctrl]Q

Toggle Quick Tabs view

Searching

[Alt][Enter]

Open search results in new tab after typing search text in Search box or Address bar

[Ctrl]E

Jump to Search box

[Ctrl] Down arrow

Open Search Provider menu (when you're in Search box)

Printing

[Ctrl]P

Open Print dialog box

In print preview…

[Alt][P]

Open Print dialog box

[Alt]U

Open Page Setup dialog box

[Alt]O

Set to portrait orientation

[Alt]L

Set to landscape orientation

[Alt]E

Toggle headers and footers on and off

[Alt]S

Change print size

[Alt]N

Show multiple pages

[Alt]1

View full page

[Alt]W

View page width

[Alt]C

Close Print Preview

Menu access

[Alt]M

Open Home menu

[Alt]R

Open Print menu

[Alt]J

Open Tools menu

[Alt]O

Open RSS menu

[Alt]L

Open Help menu

Favorites, history, feeds

[Ctrl]D

Add current page to Favorites

[Ctrl]B

Open Organize Favorites dialog box

[Alt] Up arrow or Down arrow

Move selected item up or down list in Organize Favorites dialog box

[Alt]C

Open Favorites Center

[Ctrl]I

Open Favorites Center with favorites displayed (Add [Shift] to pin the list open)

[Ctrl]H

Open Favorites Center with history displayed (Add [Shift] to pin the list open)

[Ctrl]J

Open Favorites Center with feeds displayed (Add [Shift] to pin the list open)

[Alt]Z

Display Add To Favorites menu

[Alt]I

Display all feeds in feed view

[Alt]M

Mark feed as read in feed view

[Alt]S

Jump to Search box in feed view



 

Tribune to Heros

Tribune to Heros
We will never forget the sacrifices you made to protect our country....

Subscribe


Get Google Toolbar Button

Enter your email address:

Delivered by FeedBurner